Skip to content

KVM: x86: Fix VM-Entry fail due to stale CR8 intercept

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 1 replyApplied

v2 from the cover letter

- https://lore.kernel.org/all/[email protected]
- Call kvm_lapic_update_cr8_intercept() from apic_update_ppr() instead of issuing KVM_REQ_EVENTS from handle_tpr_below_threshold().

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: VMX: Grab vmcs12 on CR8 interception update iff vCPU is in guest modearch/x86/kvm/vmx/vmx.c+1 -20 replies
2/2KVM: x86: Unconditionally recompute CR8 intercept on PPR updatearch/x86/kvm/lapic.c arch/x86/kvm/x86.c+3 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchStefano Garzarella
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] KVM: x86: Fix VM-Entry fail due to stale CR8 intercept

Carlos' fix for a bug where KVM neglects to update TPR_THRESHOLD and runs afoul of VMX's consistency check that the current TPR won't immediately generate a VM-Exit.

v3: Call get_vmcs12() iff is_guest_mode() is true to workaround a lockdep
false positive. [syzbot]

v2:
- https://lore.kernel.org/all/[email protected]
- Call kvm_lapic_update_cr8_intercept() from apic_update_ppr() instead of issuing KVM_REQ_EVENTS from handle_tpr_below_threshold().

Carlos López (1):
KVM: x86: Unconditionally recompute CR8 intercept on PPR update

Sean Christopherson (1):
KVM: VMX: Grab vmcs12 on CR8 interception update iff vCPU is in guest
mode

 arch/x86/kvm/lapic.c   | 2 ++
 arch/x86/kvm/vmx/vmx.c | 3 +--
 arch/x86/kvm/x86.c     | 5 +----
 3 files changed, 4 insertions(+), 6 deletions(-)

base-commit: 9d4853b044beefa21c4ee3e18c40653601a64ced

Signature · 1 line
2.55.0.rc0.738.g0c8ab3ebcc-goog