From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUPSZ-0003Zn-W9 for qemu-devel@nongnu.org; Wed, 27 Feb 2008 11:48:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUPSV-0003ZB-Ec for qemu-devel@nongnu.org; Wed, 27 Feb 2008 11:48:47 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUPSV-0003Z7-BA for qemu-devel@nongnu.org; Wed, 27 Feb 2008 11:48:43 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUPSU-0001rd-VK for qemu-devel@nongnu.org; Wed, 27 Feb 2008 11:48:43 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=chrom.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1JUPSS-0004eE-PI for qemu-devel@nongnu.org; Wed, 27 Feb 2008 17:48:40 +0100 Received: from kauer by chrom.inf.tu-dresden.de with local (Exim 4.69) (envelope-from ) id 1JUOoO-0004lY-9E for qemu-devel@nongnu.org; Wed, 27 Feb 2008 17:07:16 +0100 Date: Wed, 27 Feb 2008 17:07:16 +0100 From: Bernhard Kauer Message-ID: <20080227160716.GA9305@chrom.inf.tu-dresden.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] allow update of MSR_EFER_SVM Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The wrmsr_helper should allow to set the SVM flag in EFER. Bernhard Kauer --ReaqsoxgOBHFXBhH Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="qemu_efer.diff" Index: target-i386/helper.c =================================================================== RCS file: /sources/qemu/qemu/target-i386/helper.c,v retrieving revision 1.101 diff -u -r1.101 helper.c --- target-i386/helper.c 3 Feb 2008 03:26:30 -0000 1.101 +++ target-i386/helper.c 27 Feb 2008 16:05:33 -0000 @@ -2802,6 +2802,8 @@ update_mask |= MSR_EFER_FFXSR; if (env->cpuid_ext2_features & CPUID_EXT2_NX) update_mask |= MSR_EFER_NXE; + if (env->cpuid_ext3_features & CPUID_EXT3_SVM) + update_mask |= MSR_EFER_SVM; env->efer = (env->efer & ~update_mask) | (val & update_mask); } --ReaqsoxgOBHFXBhH--