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

Message ID 20230607004311.1420507-1-seanjc@google.com
Headers
Series KVM: x86: Snapshot host MSR_IA32_ARCH_CAPABILITIES |

Message

Sean Christopherson June 7, 2023, 12:43 a.m. UTC
  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
  

Comments

Sean Christopherson Aug. 3, 2023, 12:04 a.m. UTC | #1
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