mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: VMX: Revert back to refreshing HOST_CR3 at ->run
@ 2022-02-24 19:19 Sean Christopherson
  2022-02-24 19:19 ` [PATCH 1/2] Revert "KVM: VMX: Save HOST_CR3 in vmx_set_host_fs_gs()" Sean Christopherson
  2022-02-24 19:19 ` [PATCH 2/2] Revert "KVM: VMX: Save HOST_CR3 in vmx_prepare_switch_to_guest()" Sean Christopherson
  0 siblings, 2 replies; 5+ messages in thread
From: Sean Christopherson @ 2022-02-24 19:19 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Sean Christopherson, Vitaly Kuznetsov, Wanpeng Li, Jim Mattson,
	Joerg Roedel, kvm, linux-kernel, Wanpeng Li, Lai Jiangshan

Revert back to refreshing vmcs.HOST_CR3 in vmx_vcpu_run(), the PCID in
CR3 can be bumped in KVM context if KVM triggers code patching of any
kind, e.g. when updating the apic_hw_disabled static key in response to
a WRMSR(APIC_BASE).

Sean Christopherson (2):
  Revert "KVM: VMX: Save HOST_CR3 in vmx_set_host_fs_gs()"
  Revert "KVM: VMX: Save HOST_CR3 in vmx_prepare_switch_to_guest()"

 arch/x86/kvm/vmx/nested.c | 11 ++++++++---
 arch/x86/kvm/vmx/vmx.c    | 28 +++++++++++++++++-----------
 arch/x86/kvm/vmx/vmx.h    |  5 ++---
 3 files changed, 27 insertions(+), 17 deletions(-)


base-commit: 8b9c948fd3c1cbd8fed00646e11651cf3d4c86cc
-- 
2.35.1.574.g5d30c73bfb-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] KVM: VMX: Revert back to refreshing HOST_CR3 at ->run
@ 2022-02-25 10:29 Paolo Bonzini
  0 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2022-02-25 10:29 UTC (permalink / raw)
  To: Sean Christopherson
  Cc: Vitaly Kuznetsov, Wanpeng Li, Jim Mattson, Joerg Roedel, kvm,
	linux-kernel, Wanpeng Li, Lai Jiangshan

Queued, thanks.

Paolo



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-25 10:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24 19:19 [PATCH 0/2] KVM: VMX: Revert back to refreshing HOST_CR3 at ->run Sean Christopherson
2022-02-24 19:19 ` [PATCH 1/2] Revert "KVM: VMX: Save HOST_CR3 in vmx_set_host_fs_gs()" Sean Christopherson
2022-02-24 19:19 ` [PATCH 2/2] Revert "KVM: VMX: Save HOST_CR3 in vmx_prepare_switch_to_guest()" Sean Christopherson
2022-02-25  2:39   ` Lai Jiangshan
2022-02-25 10:29 [PATCH 0/2] KVM: VMX: Revert back to refreshing HOST_CR3 at ->run Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®