mbox series

[0/3] KVM: VMX: MSR intercept/passthrough cleanup and simplification

Message ID 20240217014513.7853-1-dongli.zhang@oracle.com (mailing list archive)
Headers show
Series KVM: VMX: MSR intercept/passthrough cleanup and simplification | expand

Message

Dongli Zhang Feb. 17, 2024, 1:45 a.m. UTC
The 1st patch is to fix a comment.

The 2nd patch is to avoid running into many vmx_enable_intercept_for_msr() or
vmx_disable_intercept_for_msr() that may return immediately, when
vmx_msr_bitmap is not supported.

The 3rd patch is to simplify vmx_enable_intercept_for_msr() and
vmx_disable_intercept_for_msr(), to avoid calling
possible_passthrough_msr_slot() twice.

Thank you very much!

Dongli Zhang (3):
  KVM: VMX: fix comment to add LBR to passthrough MSRs
  KVM: VMX: return early if msr_bitmap is not supported
  KVM: VMX: simplify MSR interception enable/disable

 arch/x86/kvm/vmx/vmx.c | 60 ++++++++++++++++++++++++---------------------
 1 file changed, 32 insertions(+), 28 deletions(-)

base-commit: 7455665a3521aa7b56245c0a2810f748adc5fdd4