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)
commit7204160eb7809345d10c983d9d1dfbd98060a56d
tree51721dd622a5e7e985071a6ff5f0bd1eecafcd24
parent1b84292bea00c042afc2f950c61b2c027bd36ff7
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