Skip to content

RFC GET_EMULATED_CPUID support with "allow-emulation" option

Eduardo Habkost kvm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kvm: Implement kvm_arch_get_emulated_cpuid()include/sysemu/kvm.h target-i386/kvm.c+37 -40 replies
2/2target-i386: Add "allow-emulation" X86CPU propertytarget-i386/cpu-qom.h target-i386/cpu.c+17 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] GET_EMULATED_CPUID support with "allow-emulation" option

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: <[email protected]>
    http://marc.info/?l=kvm&m=137986116331560&w=2

    Message-ID: <[email protected]>
    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 <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Alexander Graf <[email protected]>
Cc "Gabriel L. Somlo" <[email protected]>
Cc "Michael S. Tsirkin" <[email protected]>
Cc Michael Mueller <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc "Jason J. Herne" <[email protected]>
Cc Andreas Färber <[email protected]>
Cc "Jason J. Herne" <[email protected]>

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(-)
Signature · 1 line
1.9.0