]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Expose XSAVEERPTR to the guest
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 25 Sep 2019 21:37:21 +0000 (23:37 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Sep 2019 11:20:55 +0000 (13:20 +0200)
commitc1296c17be119360959895616056990ceff7fc95
treedb518fe49d637b5730ba70f41bb1e28af3e415bc
parentfb93d015c2152602c41d8528fa91fff2b1a725de
KVM: x86: Expose XSAVEERPTR to the guest

I was surprised to see that the guest reported `fxsave_leak' while the
host did not. After digging deeper I noticed that the bits are simply
masked out during enumeration.

The XSAVEERPTR feature is actually a bug fix on AMD which means the
kernel can disable a workaround.

Pass XSAVEERPTR to the guest if available on the host.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c