From: Avi Kivity Subject: [PATCH 1/6] Load flags register before running real-mode test Date: Sun, 22 Aug 2010 15:18:39 +0300 Message-ID: <1282479524-3791-2-git-send-email-avi@redhat.com> References: <1282479524-3791-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:13873 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752299Ab0HVMSp (ORCPT ); Sun, 22 Aug 2010 08:18:45 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7MCIjmw022357 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 22 Aug 2010 08:18:45 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7MCIiLp031857 for ; Sun, 22 Aug 2010 08:18:45 -0400 In-Reply-To: <1282479524-3791-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Avi Kivity --- x86/realmode.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/x86/realmode.c b/x86/realmode.c index ccf3645..c15e532 100644 --- a/x86/realmode.c +++ b/x86/realmode.c @@ -78,6 +78,7 @@ static void exec_in_big_real_mode(const struct regs *inregs, "and $-2, %[tmp] \n\t" "mov %[tmp], %%cr0 \n\t" + "pushw %[save]+36; popfw \n\t" "xchg %%eax, %[save]+0 \n\t" "xchg %%ebx, %[save]+4 \n\t" "xchg %%ecx, %[save]+8 \n\t" -- 1.7.1