Skip to content

KVM: x86: avoid using stale x86_emulate_ctxt->intercept value

Vitaly Kuznetsov kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: x86: clear stale x86_emulate_ctxt->intercept valuearch/x86/kvm/emulate.c+1 -04 replies
2/2KVM: x86: remove stale comment from struct x86_emulate_ctxtarch/x86/include/asm/kvm_emulate.h+0 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSean Christopherson
1/2R-b
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86: avoid using stale x86_emulate_ctxt->intercept value

After commit 07721feee46b ("KVM: nVMX: Don't emulate instructions in guest mode") Hyper-V guests on KVM stopped booting and tracing shows that we're trying to emulate an instruction which shouldn't be intercepted. Turns out, x86_emulate_ctxt may hold a stale 'intercept' value.

This is a regression in 5.6-rc4 and I'm marking PATCH1 for stable@. The commit 07721feee46b ("KVM: nVMX: Don't emulate instructions in guest mode") is, however, correct, it just seems to reveal a pre-existing condition.

Vitaly Kuznetsov (2):
KVM: x86: clear stale x86_emulate_ctxt->intercept value
KVM: x86: remove stale comment from struct x86_emulate_ctxt

 arch/x86/include/asm/kvm_emulate.h | 1 -
 arch/x86/kvm/emulate.c             | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.24.1