]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Introduce vcpu->arch.xsaves_enabled
authorAaron Lewis <aaronlewis@google.com>
Mon, 21 Oct 2019 23:30:20 +0000 (16:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 13:42:48 +0000 (15:42 +0200)
commit5a1b07e55df19fc1fa1db39ea5878fea5687b3d2
tree51721dd622a5e7e985071a6ff5f0bd1eecafcd24
parent36a7b2f82718ffed3ae1371b990a32473b2cb699
KVM: x86: Introduce vcpu->arch.xsaves_enabled

Cache whether XSAVES is enabled in the guest by adding xsaves_enabled to
vcpu->arch.

Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Change-Id: If4638e0901c28a4494dad2e103e2c075e8ab5d68
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx/vmx.c