Skip to content

Fix #GP at wrong rip for mov cr instructions

Avi Kivity kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: Fix mov cr0 #GP at wrong instructionarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm.c arch/x86/kvm/vmx.c +1 more+16 -130 replies
2/3KVM: Fix mov cr4 #GP at wrong instructionarch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx.c arch/x86/kvm/x86.c+5 -110 replies
3/3KVM: Fix mov cr3 #GP at wrong instructionarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.c arch/x86/kvm/svm.c +2 more+8 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fix #GP at wrong rip for mov cr instructions

Three mov cr instructions fail in a similar way when they fault: the fault rip points at the next instead of faulting instructions. This patch set fixes the problem.

Avi Kivity (3):
KVM: Fix mov cr0 #GP at wrong instruction
KVM: Fix mov cr4 #GP at wrong instruction
KVM: Fix mov cr3 #GP at wrong instruction

 arch/x86/include/asm/kvm_host.h |    6 +++---
 arch/x86/kvm/mmu.c              |    2 +-
 arch/x86/kvm/svm.c              |    6 +++---
 arch/x86/kvm/vmx.c              |   21 +++++++++++++++------
 arch/x86/kvm/x86.c              |   32 +++++++-------------------------
 5 files changed, 29 insertions(+), 38 deletions(-)