This implements GET_SUPPORTED_CPUID support using an explicit option for it: "allow-emulation". We don't want any emulated feature to be enabled by accident, so they will be enabled only if the user explicitly wants to allow them.
References to previous patch and discussions: Message-Id: <1379861095-628-7-git-send-email...@alien8.de> http://marc.info/?l=kvm&m=137986116331560&w=2 Message-ID: <20140604204448.gg4...@pd.tnic> http://marc.info/?l=kvm&m=140191471903819 This requires a few fixes to the qom-cpu tree which haven't been merged yet. Git tree: git://github.com/ehabkost/qemu-hacks.git work/get-emulated-cpuid Cc: Borislav Petkov <b...@alien8.de> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Alexander Graf <ag...@suse.de> Cc: "Gabriel L. Somlo" <gso...@gmail.com> Cc: k...@vger.kernel.org Cc: "Michael S. Tsirkin" <m...@redhat.com> Cc: Michael Mueller <m...@linux.vnet.ibm.com> Cc: Christian Borntraeger <borntrae...@de.ibm.com> Cc: "Jason J. Herne" <jjhe...@linux.vnet.ibm.com> Cc: Andreas Färber <afaer...@suse.de> Cc: "Jason J. Herne" <jjhe...@linux.vnet.ibm.com> Borislav Petkov (1): kvm: Implement kvm_arch_get_emulated_cpuid() Eduardo Habkost (1): target-i386: Add "allow-emulation" X86CPU property include/sysemu/kvm.h | 3 +++ target-i386/cpu-qom.h | 3 +++ target-i386/cpu.c | 18 ++++++++++++++---- target-i386/kvm.c | 38 ++++++++++++++++++++++++++++++++++---- 4 files changed, 54 insertions(+), 8 deletions(-) -- 1.9.0