[CentOS] How to enable the svm cpu flag inside a vm?
Leonard den Ottolander
leonard at den.ottolander.nl
Sun Sep 25 14:38:39 UTC 2016
Hi,
On Fri, 2016-09-23 at 15:05 +0200, Leonard den Ottolander wrote:
> So the question is: How do I enable the svm flag in the guest?
The qemu-kvm option "-enable-nesting" that I dug up in the source looks
promising. No mention in the man page on either C6 or C7 but it is
mentioned here:
https://www.redhat.com/archives/libvir-list/2012-October/msg01138.html
How do I pass the "-enable-nesting" option to qemu-kvm using either
virt-manager.py, virsh or the domain xml?
Hoping to avoid having to patch the source a such:
--- qemu-kvm-0.12.1.2.000/target-i386/helper.c 2009-12-29 21:46:34.000000000 +0100
+++ qemu-kvm-0.12.1.2/target-i386/helper.c 2016-09-25 16:35:02.984334623 +0200
@@ -1811,8 +1811,10 @@ void cpu_x86_cpuid(CPUX86State *env, uin
/* disable CPU features that KVM cannot support */
/* svm */
+/*
if (!kvm_nested)
*ecx &= ~CPUID_EXT3_SVM;
+*/
/* 3dnow */
*edx &= ~0xc0000000;
} else {
Regards,
Leonard.
--
mount -t life -o ro /dev/dna /genetic/research
More information about the CentOS
mailing list