[PATCH 0/4] Fix kvm cpuid reporting

Avi Kivity
2009-05-03T14:04:13Z

kvm supports an interface for reporting which cpuid features are supported.
Use it for trimming the cpu feature set reported to the guest. This prevents,
for example, reporting NX to a guest when in fact we do not support it.

Avi Kivity (4):
kvm: Add support for querying supported cpu features
Make x86 cpuid feature names available in file scope
Fix x86 feature modifications for features that set multiple bits
kvm: Trim cpu features not supported by kvm

kvm.h | 3 ++
target-i386/helper.c | 98 +++++++++++++++++++++++++++++++++----------------
target-i386/kvm.c | 80 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 149 insertions(+), 32 deletions(-)