KVM: nSVM: Use KVM-governed feature framework to track "vVM{SAVE,LOAD} enabled"
authorSean Christopherson <seanjc@google.com>
Tue, 15 Aug 2023 20:36:48 +0000 (13:36 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Aug 2023 18:43:29 +0000 (11:43 -0700)
commit4d2a1560ffc29525493829ee31dc069c00c52c69
tree503e449a49e5ab21490a415c4cdb2f7d7b09b96c
parent4365a45571c791a2fbeb81cf27738960c5456f57
KVM: nSVM: Use KVM-governed feature framework to track "vVM{SAVE,LOAD} enabled"

Track "virtual VMSAVE/VMLOAD exposed to L1" via a governed feature flag
instead of using a dedicated bit/flag in vcpu_svm.

Opportunistically add a comment explaining why KVM disallows virtual
VMLOAD/VMSAVE when the vCPU model is Intel.

No functional change intended.

Link: https://lore.kernel.org/r/20230815203653.519297-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/governed_features.h
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h