<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br>I am confused by the behaviour of the CPU description in my VM. I have a host with an AMD CPU with<br>SVM feature and I want to try nested virtualization on a Fedora22 guest. The host is Fedora22 as well.<br><br>libvirtd (libvirt) 1.2.13.1<br>kernel 4.1.6-200.fc22.x86_64<br><br>1.<br>I tried 'custom' mode with model qemu64 with required feature 'SVM' but '/proc/cpuinfo' in the guest<br>doesn't show SVM.<br><br>2.<br>However, if I forbid the SVM feature, the guest can't be created and libvirt complains that the host CPU<br>has SVM.<br><br>3.<br>The only way to have SVM reported in '/proc/cpuinfo' inside the guest VM is using 'host-passthrough'<br>mode, but I want to avoid it to allow migration of the VM.<br><br><br>Is this an issue with AMD<br><br><br><br>This is part of the description of the guest:<br><br><domain type='kvm'><br> <name>vagrant-fedora-libvirt-nested_default</name><br> <uuid>4a379890-b891-4971-aad6-12fad45eaebc</uuid><br> <memory unit='KiB'>8388608</memory><br> <currentMemory unit='KiB'>8388608</currentMemory><br> <vcpu placement='static'>4</vcpu><br> <os><br> <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type><br> <boot dev='hd'/><br> </os><br> <features><br> <acpi/><br> <apic/><br> <pae/><br> </features><br> <cpu mode='custom' match='exact'><br> <model fallback='allow'>qemu64</model><br> <feature policy='require' name='svm'/><br> </cpu><br><br><br>Regards,<br>Sladjan<br> </div></body>
</html>