public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix #GP at wrong rip for mov cr instructions
@ 2010-06-10 14:02 Avi Kivity
  2010-06-10 14:02 ` [PATCH 1/3] KVM: Fix mov cr0 #GP at wrong instruction Avi Kivity
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Avi Kivity @ 2010-06-10 14:02 UTC (permalink / raw)
  To: Marcelo Tosatti, Sheng Yang; +Cc: kvm

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(-)


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

end of thread, other threads:[~2010-06-11 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10 14:02 [PATCH 0/3] Fix #GP at wrong rip for mov cr instructions Avi Kivity
2010-06-10 14:02 ` [PATCH 1/3] KVM: Fix mov cr0 #GP at wrong instruction Avi Kivity
2010-06-10 14:02 ` [PATCH 2/3] KVM: Fix mov cr4 " Avi Kivity
2010-06-10 14:02 ` [PATCH 3/3] KVM: Fix mov cr3 " Avi Kivity
2010-06-11 17:09 ` [PATCH 0/3] Fix #GP at wrong rip for mov cr instructions Marcelo Tosatti

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