kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH non-atomic-injection] KVM: Initialize rip for real mode interrupt injection
@ 2010-08-18  7:36 Avi Kivity
  2010-08-18  8:14 ` Avi Kivity
  2010-08-18 12:46 ` Mohammed Gamal
  0 siblings, 2 replies; 9+ messages in thread
From: Avi Kivity @ 2010-08-18  7:36 UTC (permalink / raw)
  To: Mohammed Gamal; +Cc: kvm

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 arch/x86/kvm/x86.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index f6a31a1..e2b0e36 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3967,6 +3967,7 @@ int kvm_inject_realmode_interrupt(struct kvm_vcpu *vcpu, int irq)
 
 	vcpu->arch.emulate_ctxt.decode.op_bytes = 2;
 	vcpu->arch.emulate_ctxt.decode.ad_bytes = 2;
+	vcpu->arch.emulate_ctxt.decode.eip = kvm_rip_read(vcpu);
 	ret = emulate_int_real(&vcpu->arch.emulate_ctxt, &emulate_ops, irq);
 
 	if (ret != X86EMUL_CONTINUE)
-- 
1.7.1


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

end of thread, other threads:[~2010-08-18 15:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18  7:36 [PATCH non-atomic-injection] KVM: Initialize rip for real mode interrupt injection Avi Kivity
2010-08-18  8:14 ` Avi Kivity
2010-08-18 12:46 ` Mohammed Gamal
2010-08-18 14:09   ` Avi Kivity
2010-08-18 14:11     ` Avi Kivity
2010-08-18 14:32       ` Mohammed Gamal
2010-08-18 14:46         ` Avi Kivity
2010-08-18 15:32           ` Mohammed Gamal
2010-08-18 15:45             ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).