2024-02-17 01:42:35

by Dongli Zhang

[permalink] [raw]
Subject: [PATCH 0/3] KVM: VMX: MSR intercept/passthrough cleanup and simplification

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