KVM: Sanitize cpuid
authorAvi Kivity <avi@redhat.com>
Wed, 18 May 2011 09:56:07 +0000 (05:56 -0400)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:07 +0000 (11:45 +0300)
commit24c82e576b7860a4f02a21103e9df39e11e97006
tree2b16caf22244df1611c168472e9f8e2108673095
parentbcdd9a93c57571652c887cb522176db741893581
KVM: Sanitize cpuid

Instead of blacklisting known-unsupported cpuid leaves, whitelist known-
supported leaves.  This is more conservative and prevents us from reporting
features we don't support.  Also whitelist a few more leaves while at it.

Signed-off-by: Avi Kivity <avi@redhat.com>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c