[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] nested vmx: enable load and save IA32_EFER feature for L1 VMM
# HG changeset patch # User Dongxiao Xu <dongxiao.xu@xxxxxxxxx> # Date 1354267561 0 # Node ID 8208ac732f6851d2be8b816ccbab548f0cc70303 # Parent 9108c44f2535840960086e7a1255f50b275c83db nested vmx: enable load and save IA32_EFER feature for L1 VMM Signed-off-by: Dongxiao Xu <dongxiao.xu@xxxxxxxxx> Acked-by: Jun Nakajima <jun.nakajima@xxxxxxxxx> Committed-by: Keir Fraser <keir@xxxxxxx> --- diff -r 9108c44f2535 -r 8208ac732f68 xen/arch/x86/hvm/vmx/vvmx.c --- a/xen/arch/x86/hvm/vmx/vvmx.c Fri Nov 30 09:25:34 2012 +0000 +++ b/xen/arch/x86/hvm/vmx/vvmx.c Fri Nov 30 09:26:01 2012 +0000 @@ -530,7 +530,7 @@ static void nvmx_update_exit_control(str shadow_cntrl = __get_vvmcs(nvcpu->nv_vvmcx, VM_EXIT_CONTROLS); shadow_cntrl &= ~(VM_EXIT_SAVE_DEBUG_CNTRLS | VM_EXIT_LOAD_HOST_PAT - | VM_EXIT_SAVE_GUEST_EFER); + | VM_EXIT_LOAD_HOST_EFER); shadow_cntrl |= host_cntrl; __vmwrite(VM_EXIT_CONTROLS, shadow_cntrl); } @@ -625,6 +625,7 @@ static const u16 vmcs_gstate_field[] = { VMCS_LINK_POINTER, GUEST_IA32_DEBUGCTL, GUEST_PAT, + GUEST_EFER, /* 32 BITS */ GUEST_ES_LIMIT, GUEST_CS_LIMIT, @@ -1332,14 +1333,17 @@ int nvmx_msr_read_intercept(unsigned int VM_EXIT_IA32E_MODE | VM_EXIT_SAVE_PREEMPT_TIMER | VM_EXIT_SAVE_GUEST_PAT | - VM_EXIT_LOAD_HOST_PAT; + VM_EXIT_LOAD_HOST_PAT | + VM_EXIT_SAVE_GUEST_EFER | + VM_EXIT_LOAD_HOST_EFER; /* 0-settings */ data = ((data | tmp) << 32) | tmp; break; case MSR_IA32_VMX_ENTRY_CTLS: /* bit 0-8, and 12 must be 1 (refer G5 of SDM) */ tmp = 0x11ff; - data = VM_ENTRY_LOAD_GUEST_PAT; + data = VM_ENTRY_LOAD_GUEST_PAT | + VM_ENTRY_LOAD_GUEST_EFER; data = ((data | tmp) << 32) | tmp; break; diff -r 9108c44f2535 -r 8208ac732f68 xen/include/asm-x86/hvm/vmx/vmcs.h --- a/xen/include/asm-x86/hvm/vmx/vmcs.h Fri Nov 30 09:25:34 2012 +0000 +++ b/xen/include/asm-x86/hvm/vmx/vmcs.h Fri Nov 30 09:26:01 2012 +0000 @@ -300,6 +300,8 @@ enum vmcs_field { GUEST_IA32_DEBUGCTL_HIGH = 0x00002803, GUEST_PAT = 0x00002804, GUEST_PAT_HIGH = 0x00002805, + GUEST_EFER = 0x00002806, + GUEST_EFER_HIGH = 0x00002807, GUEST_PDPTR0 = 0x0000280a, GUEST_PDPTR0_HIGH = 0x0000280b, GUEST_PDPTR1 = 0x0000280c, @@ -310,6 +312,8 @@ enum vmcs_field { GUEST_PDPTR3_HIGH = 0x00002811, HOST_PAT = 0x00002c00, HOST_PAT_HIGH = 0x00002c01, + HOST_EFER = 0x00002c02, + HOST_EFER_HIGH = 0x00002c03, PIN_BASED_VM_EXEC_CONTROL = 0x00004000, CPU_BASED_VM_EXEC_CONTROL = 0x00004002, EXCEPTION_BITMAP = 0x00004004, _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |