From: Bernhard Kauer <kauer@os.inf.tu-dresden.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] allow update of MSR_EFER_SVM
Date: Wed, 27 Feb 2008 17:07:16 +0100 [thread overview]
Message-ID: <20080227160716.GA9305@chrom.inf.tu-dresden.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
The wrmsr_helper should allow to set the SVM flag in EFER.
Bernhard Kauer
[-- Attachment #2: qemu_efer.diff --]
[-- Type: text/x-diff, Size: 674 bytes --]
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);
}
next reply other threads:[~2008-02-27 16:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-27 16:07 Bernhard Kauer [this message]
2008-02-27 17:03 ` [Qemu-devel] [PATCH] allow update of MSR_EFER_SVM Alexander Graf
2008-02-29 9:41 ` Bernhard Kauer
2008-02-29 10:20 ` Alexander Graf
2008-02-29 15:43 ` Bernhard Kauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080227160716.GA9305@chrom.inf.tu-dresden.de \
--to=kauer@os.inf.tu-dresden.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).