[PATCH 0/2] KVM: x86: Snapshot host MSR_IA32_ARCH_CAPABILITIES

Sean Christopherson posted 2 patches 2 years, 8 months ago
arch/x86/kvm/vmx/vmx.c | 33 ++++++---------------------------
arch/x86/kvm/x86.c     | 13 +++++++------
arch/x86/kvm/x86.h     |  1 +
3 files changed, 14 insertions(+), 33 deletions(-)
[PATCH 0/2] KVM: x86: Snapshot host MSR_IA32_ARCH_CAPABILITIES
Posted by Sean Christopherson 2 years, 8 months ago
Snapshot the host's MSR_IA32_ARCH_CAPABILITIES to avoid repeated RDMSRs
at runtime, and cleanup the pseudo-cache vmx_fb_clear_ctrl_available.

Sean Christopherson (2):
  KVM: x86: Snapshot host's MSR_IA32_ARCH_CAPABILITIES
  KVM: VMX: Drop unnecessary vmx_fb_clear_ctrl_available "cache"

 arch/x86/kvm/vmx/vmx.c | 33 ++++++---------------------------
 arch/x86/kvm/x86.c     | 13 +++++++------
 arch/x86/kvm/x86.h     |  1 +
 3 files changed, 14 insertions(+), 33 deletions(-)


base-commit: 02f1b0b736606f9870595b3089d9c124f9da8be9
-- 
2.41.0.162.gfafddb0af9-goog
Re: [PATCH 0/2] KVM: x86: Snapshot host MSR_IA32_ARCH_CAPABILITIES
Posted by Sean Christopherson 2 years, 6 months ago
On Tue, 06 Jun 2023 17:43:08 -0700, Sean Christopherson wrote:
> Snapshot the host's MSR_IA32_ARCH_CAPABILITIES to avoid repeated RDMSRs
> at runtime, and cleanup the pseudo-cache vmx_fb_clear_ctrl_available.
> 
> Sean Christopherson (2):
>   KVM: x86: Snapshot host's MSR_IA32_ARCH_CAPABILITIES
>   KVM: VMX: Drop unnecessary vmx_fb_clear_ctrl_available "cache"
> 
> [...]

Applied to kvm-x86 misc, with a fixup for the ARCH_CAPABILITIES.FB_CLEAR_CTRL vs.
MSR_IA32_MCU_OPT_CTRL.FB_CLEAR_DIS confusion in patch 2's changelog.

Thanks!

[1/2] KVM: x86: Snapshot host's MSR_IA32_ARCH_CAPABILITIES
      https://github.com/kvm-x86/linux/commit/a2fd5d02bad6
[2/2] KVM: VMX: Drop unnecessary vmx_fb_clear_ctrl_available "cache"
      https://github.com/kvm-x86/linux/commit/550ba57faa04

--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes