From: Mohammed Gamal Subject: [RFC PATCH v2 4/4] x86 emulator: Eagerly commit emulation ctxt eip in emulate_int_real() Date: Sat, 14 Aug 2010 03:19:41 +0300 Message-ID: <1281745181-4426-3-git-send-email-m.gamal005@gmail.com> References: <1281745181-4426-1-git-send-email-m.gamal005@gmail.com> Cc: mtosatti@redhat.com, kvm@vger.kernel.org, Mohammed Gamal To: avi@redhat.com Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:42078 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932220Ab0HNAUH (ORCPT ); Fri, 13 Aug 2010 20:20:07 -0400 Received: by wwj40 with SMTP id 40so3647907wwj.1 for ; Fri, 13 Aug 2010 17:20:06 -0700 (PDT) In-Reply-To: <1281745181-4426-1-git-send-email-m.gamal005@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: emulate_int_real() is to be used outside the emulator. Hence, we shouldn't wait for writeback to write the eip value stored in the decode cache. Save it in emulation context eagerly instead. Signed-off-by: Mohammed Gamal --- arch/x86/kvm/emulate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 32498e3..ae45b04 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -1245,7 +1245,7 @@ int emulate_int_real(struct x86_emulate_ctxt *ctxt, if (rc != X86EMUL_CONTINUE) return rc; - c->eip = eip; + ctxt->eip = eip; return rc; } -- 1.7.0.4