target-i386: Disable SVM by default in KVM mode
commit75d373ef9729bd22fbc46bfd8dcd158cbf6d9777
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 3 Oct 2014 19:39:51 +0000 (3 16:39 -0300)
committerAndreas Färber <afaerber@suse.de>
Tue, 4 Nov 2014 14:49:05 +0000 (4 15:49 +0100)
treee16f2535c672136c7d3006f7fa1fe5985dba5cb5
parente93abc147fa628650bdbe7fd57f27462ca40a3c2
target-i386: Disable SVM by default in KVM mode

Make SVM be disabled by default on all CPU models when in KVM mode.
Nested SVM is enabled by default in the KVM kernel module, but it is
probably less stable than nested VMX (which is already disabled by
default).

Add a new compat function, x86_cpu_compat_kvm_no_autodisable(), to keep
compatibility on previous machine-types.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/i386/pc_piix.c
hw/i386/pc_q35.c
target-i386/cpu.c
target-i386/cpu.h