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