kvm: use kernel-provided para_features instead of statically coming up with new capab...
authorGlauber Costa <glommer@redhat.com>
Thu, 17 Mar 2011 22:42:05 +0000 (19:42 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 2 May 2011 11:24:42 +0000 (08:24 -0300)
commit7a246f4024cf975695189be5cf59c2783f837c93
tree4a184eb4154d72d81d87032b1b5c5097a7cc68d6
parent29756103657c179bee832daa2b8edf068438db3d
kvm: use kernel-provided para_features instead of statically coming up with new capabilities

Use the features provided by KVM_GET_SUPPORTED_CPUID directly to
mask out features from guest-visible cpuid.

The old get_para_features() mechanism is kept for older kernels that do not implement it.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
target-i386/kvm.c