]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: mask CPUID(0xD,0x1).EAX against host value
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2016 11:33:00 +0000 (12:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 10 Apr 2016 19:53:50 +0000 (21:53 +0200)
commite0e98357fa57355f200eac3b65f34c6f62c4a4ac
tree7ee2d450b5d8972971d17542410890d8559e7a05
parent0a3f6290e1f56a5680777aa4fefc925738c715fa
KVM: x86: mask CPUID(0xD,0x1).EAX against host value

This ensures that the guest doesn't see XSAVE extensions
(e.g. xgetbv1 or xsavec) that the host lacks.

Cc: stable@vger.kernel.org
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c