From: Dongxiao Xu <dongxiao.xu@intel.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH 1/3] nested vmx: emulate IA32_VMX_MISC MSR
Date: Thu, 27 Dec 2012 14:16:11 +0800 [thread overview]
Message-ID: <1356588973-13106-2-git-send-email-dongxiao.xu@intel.com> (raw)
In-Reply-To: <1356588973-13106-1-git-send-email-dongxiao.xu@intel.com>
Use the host value to emulate IA32_VMX_MISC MSR for L1 VMM.
For CR3-target value, we don't support this feature currently and
set the number to zero.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
xen/arch/x86/hvm/vmx/vvmx.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c
index 7b27d2d..0a876b0 100644
--- a/xen/arch/x86/hvm/vmx/vvmx.c
+++ b/xen/arch/x86/hvm/vmx/vvmx.c
@@ -1462,7 +1462,8 @@ int nvmx_msr_read_intercept(unsigned int msr, u64 *msr_content)
data = 0x267ff & ~X86_CR4_SMXE;
break;
case MSR_IA32_VMX_MISC:
- gdprintk(XENLOG_WARNING, "VMX MSR %x not fully supported yet.\n", msr);
+ /* Do not support CR3-target feature now */
+ data = host_data & ~(0x1ff << 16);
break;
default:
r = 0;
--
1.7.1
next prev parent reply other threads:[~2012-12-27 6:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-27 6:16 [PATCH 0/3] nested vmx bug fixes Dongxiao Xu
2012-12-27 6:16 ` Dongxiao Xu [this message]
2013-01-03 11:49 ` [PATCH 1/3] nested vmx: emulate IA32_VMX_MISC MSR Jan Beulich
2012-12-27 6:16 ` [PATCH 2/3] nested vmx: synchronize page fault error code match and mask Dongxiao Xu
2012-12-27 6:16 ` [PATCH 3/3] nested vmx: fix CR0/CR4 emulation Dongxiao Xu
2013-01-03 11:53 ` [PATCH 0/3] nested vmx bug fixes Jan Beulich
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=1356588973-13106-2-git-send-email-dongxiao.xu@intel.com \
--to=dongxiao.xu@intel.com \
--cc=xen-devel@lists.xensource.com \
/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).