From patchwork Sat Aug 14 00:19:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Gamal X-Patchwork-Id: 119535 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7E0KBUU002790 for ; Sat, 14 Aug 2010 00:20:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932269Ab0HNAUI (ORCPT ); Fri, 13 Aug 2010 20:20:08 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=TVb7D8D/Sc4cnuq/Mk2Vpn7hMcPxczZCAslDSVxEsIQ=; b=nFZRRiWonicGDw6alcrXi1JfmBjSOq1Mx3dXVjUC1nv3yr1UBnMqNlM/xonAhOUWws zwSZxmvkEwJGKT7DFyWp1VrhZwW9UwFpgrQ51J4qKjtFoZD1B81qCYUxECM3yHP67I5q fO3xX31o+DCmASEfyPswWS5i6hpEnb6qtVYnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=XxVo21nRamPs/UZppV5HThoRnI658hFJlY/UIkBs5AsRcpoEO5K0MfvR7AHauBcDNU dBEuUT+1EGKJ9qx7X8mfQdrAufUzr72ZeU4m/sIKUnGVdWGO4qHjJh20J20njmNX4Jte VBDcida+yBBUgh09UebSc/zfg+/LIs9OY8oUA= Received: by 10.216.48.146 with SMTP id v18mr1903069web.56.1281745205979; Fri, 13 Aug 2010 17:20:05 -0700 (PDT) Received: from localhost.localdomain ([188.55.88.49]) by mx.google.com with ESMTPS id v44sm1915180weq.28.2010.08.13.17.20.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 13 Aug 2010 17:20:05 -0700 (PDT) From: Mohammed Gamal To: avi@redhat.com Cc: mtosatti@redhat.com, kvm@vger.kernel.org, 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> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1281745181-4426-1-git-send-email-m.gamal005@gmail.com> References: <1281745181-4426-1-git-send-email-m.gamal005@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 14 Aug 2010 00:20:11 +0000 (UTC) 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; }