From patchwork Wed Apr 7 20:24:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 91164 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o37KOISW007440 for ; Wed, 7 Apr 2010 20:24:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751965Ab0DGUYO (ORCPT ); Wed, 7 Apr 2010 16:24:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30817 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871Ab0DGUYN (ORCPT ); Wed, 7 Apr 2010 16:24:13 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o37KOBBY009831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 7 Apr 2010 16:24:11 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o37KOAOi026114; Wed, 7 Apr 2010 16:24:10 -0400 Received: from amt.cnet (vpn-9-74.rdu.redhat.com [10.11.9.74]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o37KO8Pl001347; Wed, 7 Apr 2010 16:24:09 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 2085168A0D5; Wed, 7 Apr 2010 17:24:03 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o37KO1GE030025; Wed, 7 Apr 2010 17:24:01 -0300 Date: Wed, 7 Apr 2010 17:24:00 -0300 From: Marcelo Tosatti To: kvm Cc: Avi Kivity , Jan Kiszka , Gleb Natapov Subject: VMX and save/restore guest in virtual-8086 mode Message-ID: <20100407202400.GA29595@amt.cnet> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 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]); Wed, 07 Apr 2010 20:24:18 +0000 (UTC) diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 748ff69..9821653 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -956,6 +956,7 @@ void kvm_arch_load_regs(CPUState *env, int level) sregs.efer = env->efer; kvm_set_sregs(env, &sregs); + kvm_set_regs(env, ®s); /* msrs */ n = 0;