<div dir="ltr"><div dir="ltr"><div><div dir="rtl" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="background-color:rgb(255,255,255)"><div style="font-family:Arial,Verdana,sans-serif">Hi,</div></span></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 1, 2019 at 5:04 PM Daniel P. Berrangé <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Feb 01, 2019 at 04:56:23PM +0200, Hetz Ben Hamo wrote:<br>
> Hi,<br>
> <br>
> I hope I'm asking in the right place.<br>
> <br>
> First question: I'm using AMD Ryzen 2700 CPU, and the VM's were running<br>
> super slow. Checking on the net, most of the docs shows that I should look<br>
> at lscpu output which indeed shows that my CPU has SVM. However, it took me<br>
> a bit more time to figure out that the kvm_amd module was not loaded<br>
> because SVM was disabled in the BIOS, so my question is: Could the VMM team<br>
> add a simple check before starting a VM if kvm-intel or kvm_amd modules are<br>
> loaded and if not - show a warning message to enable VT-X/SVM on the<br>
> BIOS/UEFI please?<br>
<br>
FWIW,  virt-host-validate command line tool should report on this problem,<br>
but of course you have to know it exists first, so wouldn't have helped<br>
your situation.<br></blockquote><div><br></div><div>Yes, that's the utility that helped me to diagnose the issue. My idea was thinking about an end-user who doesn't have much experience with Linux, just to notify him with a warning window to go set it in the BIOS. Just an idea ;)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> Second question: After enabling the SVM in the BIOS and restarting the VMM,<br>
> the previously configured VM was still running super-slow. I recreated the<br>
> VM and only the new VM was running fast, so I assume that a parameter not<br>
> to use the SVM is written in the VM configuration? if so, where can I<br>
> change it in the VM configuration GUI? (I thought it was related to the<br>
> copy/mode of the CPU, which doesn't change things)<br>
<br>
Whether to use TCG (emulation) or KVM (hardware acceleration) is in the<br>
guest XML configuration.<br></blockquote><div><br></div><div>Is it possible to change "TGC" in the virt-manager to "TCG (emulation)"? that could help.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I don't think its changable in the GUI.<br>
<br>
If you use the command line tool 'virsh edit $GUESTNAME' as root you will<br>
see<br>
<br>
  <domain type='qemu'><br>
  ....<br>
<br>
Just change that to 'kvm' instead.<br></blockquote><div><br></div><div>Oh, thanks!</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
Regards,<br>
Daniel<br>
-- <br>
|: <a href="https://berrange.com" rel="noreferrer" target="_blank">https://berrange.com</a>      -o-    <a href="https://www.flickr.com/photos/dberrange" rel="noreferrer" target="_blank">https://www.flickr.com/photos/dberrange</a> :|<br>
|: <a href="https://libvirt.org" rel="noreferrer" target="_blank">https://libvirt.org</a>         -o-            <a href="https://fstop138.berrange.com" rel="noreferrer" target="_blank">https://fstop138.berrange.com</a> :|<br>
|: <a href="https://entangle-photo.org" rel="noreferrer" target="_blank">https://entangle-photo.org</a>    -o-    <a href="https://www.instagram.com/dberrange" rel="noreferrer" target="_blank">https://www.instagram.com/dberrange</a> :|<br>
</blockquote></div></div>