]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Add a helper and macros to reduce boilerplate for sec exec ctls
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 25 Sep 2020 00:30:11 +0000 (17:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:31 +0000 (07:57 -0400)
commit56dd073b5347d28bf3409a91c3a9494bcae933b5
tree287f6ba31c79e4cd7760a43fc38c6e9d316b8cde
parent1b5d4de48112d96b2e7561c0d23c2b0e152a9722
KVM: VMX: Add a helper and macros to reduce boilerplate for sec exec ctls

Add a helper function and several wrapping macros to consolidate the
copy-paste code in vmx_compute_secondary_exec_control() for adjusting
controls that are dependent on guest CPUID bits.

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200925003011.21016-1-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c