[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] nested vmx: emulate IA32_VMX_MISC MSR
# HG changeset patch # User Dongxiao Xu <dongxiao.xu@xxxxxxxxx> # Date 1357638139 -3600 # Node ID d5eb414fb0fbaece49b5040dba7df23fe3cb7b12 # Parent 5e105c5c036dedc21aa62e2c847371839c253cf1 nested vmx: emulate IA32_VMX_MISC MSR 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@xxxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 5e105c5c036d -r d5eb414fb0fb xen/arch/x86/hvm/vmx/vvmx.c --- a/xen/arch/x86/hvm/vmx/vvmx.c Tue Jan 08 10:37:38 2013 +0100 +++ b/xen/arch/x86/hvm/vmx/vvmx.c Tue Jan 08 10:42:19 2013 +0100 @@ -1462,7 +1462,8 @@ int nvmx_msr_read_intercept(unsigned int 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 & ~VMX_MISC_CR3_TARGET; break; default: r = 0; diff -r 5e105c5c036d -r d5eb414fb0fb xen/include/asm-x86/hvm/vmx/vmcs.h --- a/xen/include/asm-x86/hvm/vmx/vmcs.h Tue Jan 08 10:37:38 2013 +0100 +++ b/xen/include/asm-x86/hvm/vmx/vmcs.h Tue Jan 08 10:42:19 2013 +0100 @@ -209,6 +209,8 @@ extern bool_t cpu_has_vmx_ins_outs_instr #define VMX_VPID_INVVPID_ALL_CONTEXT 0x40000000000ULL #define VMX_VPID_INVVPID_SINGLE_CONTEXT_RETAINING_GLOBAL 0x80000000000ULL +#define VMX_MISC_CR3_TARGET 0x1ff0000 + #define cpu_has_wbinvd_exiting \ (vmx_secondary_exec_control & SECONDARY_EXEC_WBINVD_EXITING) #define cpu_has_vmx_virtualize_apic_accesses \ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |