]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: mask unsupported XSAVE entries from leaf 0Dh index 0
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Oct 2013 14:06:14 +0000 (16:06 +0200)
committerGleb Natapov <gleb@redhat.com>
Thu, 3 Oct 2013 09:29:04 +0000 (12:29 +0300)
commitfc04cf9dbbe769e5b691c0d7b7d38fe6b0653b0c
treea71cae213807d51e30ad5e942281dfdfd55db99f
parentb712f1300b738a0931bb287459e18f2a917452dc
KVM: x86: mask unsupported XSAVE entries from leaf 0Dh index 0

XSAVE entries that KVM does not support are reported by
KVM_GET_SUPPORTED_CPUID for leaf 0Dh index 0 if the host supports them;
they should be left out unless there is also hypervisor support for them.

Sub-leafs are correctly handled in supported_xcr0_bit, fix index 0
to match.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/x86.h