KVM: x86/mmu: Use KVM-governed feature framework to track "GBPAGES enabled"
authorSean Christopherson <seanjc@google.com>
Tue, 15 Aug 2023 20:36:40 +0000 (13:36 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Aug 2023 18:38:27 +0000 (11:38 -0700)
commitccf31d6e6cc53e50cc42845061174082fd229c79
tree897c6203c7b1eb636b13fec237772ff0ba480afc
parent42764413d19585caff1321823b376c0bd0a597af
KVM: x86/mmu: Use KVM-governed feature framework to track "GBPAGES enabled"

Use the governed feature framework to track whether or not the guest can
use 1GiB pages, and drop the one-off helper that wraps the surprisingly
non-trivial logic surrounding 1GiB page usage in the guest.

No functional change intended.

Reviewed-by: Yuan Yao <yuan.yao@intel.com>
Link: https://lore.kernel.org/r/20230815203653.519297-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/governed_features.h
arch/x86/kvm/mmu/mmu.c