]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Extend BUILD_CONTROLS_SHADOW macro to support 64-bit variation
authorRobert Hoo <robert.hu@linux.intel.com>
Tue, 19 Apr 2022 15:33:18 +0000 (23:33 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:47:15 +0000 (04:47 -0400)
commit0d305c4a1a4aeba48c98a79945c5185c772635dc
treed6f13ba4004da1c48e018395a4cb22b51f1c6d82
parentd333500d1b19ee839b052ef1679b324e8cb49751
KVM: VMX: Extend BUILD_CONTROLS_SHADOW macro to support 64-bit variation

The Tertiary VM-Exec Control, different from previous control fields, is 64
bit. So extend BUILD_CONTROLS_SHADOW() by adding a 'bit' parameter, to
support both 32 bit and 64 bit fields' auxiliary functions building.

Suggested-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Robert Hoo <robert.hu@linux.intel.com>
Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Message-Id: <20220419153318.11595-1-guang.zeng@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.h