[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.4-testing] vmx: Do not modify global vmx_vm{entry, exit}_control fields in init_vmcs_config()
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1274298751 -3600 # Node ID a552edf3aadf19bb19b00b7c86e7bcb839ed16e4 # Parent 4b52d8aad101b7cafe60504dc5d733e15441d6a2 vmx: Do not modify global vmx_vm{entry,exit}_control fields in init_vmcs_config() The function shoudl only have single-domain effect. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> xen-unstable changeset: 21435:c414129c8e12 xen-unstable date: Wed May 19 20:46:05 2010 +0100 --- xen/arch/x86/hvm/vmx/vmcs.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff -r 4b52d8aad101 -r a552edf3aadf xen/arch/x86/hvm/vmx/vmcs.c --- a/xen/arch/x86/hvm/vmx/vmcs.c Wed May 19 20:50:37 2010 +0100 +++ b/xen/arch/x86/hvm/vmx/vmcs.c Wed May 19 20:52:31 2010 +0100 @@ -515,6 +515,8 @@ static int construct_vmcs(struct vcpu *v struct domain *d = v->domain; uint16_t sysenter_cs; unsigned long sysenter_eip; + u32 vmexit_ctl = vmx_vmexit_control; + u32 vmentry_ctl = vmx_vmentry_control; vmx_vmcs_enter(v); @@ -533,17 +535,17 @@ static int construct_vmcs(struct vcpu *v else { v->arch.hvm_vmx.secondary_exec_control &= ~SECONDARY_EXEC_ENABLE_EPT; - vmx_vmexit_control &= ~(VM_EXIT_SAVE_GUEST_PAT | - VM_EXIT_LOAD_HOST_PAT); - vmx_vmentry_control &= ~VM_ENTRY_LOAD_GUEST_PAT; + vmexit_ctl &= ~(VM_EXIT_SAVE_GUEST_PAT | + VM_EXIT_LOAD_HOST_PAT); + vmentry_ctl &= ~VM_ENTRY_LOAD_GUEST_PAT; } /* Do not enable Monitor Trap Flag unless start single step debug */ v->arch.hvm_vmx.exec_control &= ~CPU_BASED_MONITOR_TRAP_FLAG; __vmwrite(CPU_BASED_VM_EXEC_CONTROL, v->arch.hvm_vmx.exec_control); - __vmwrite(VM_EXIT_CONTROLS, vmx_vmexit_control); - __vmwrite(VM_ENTRY_CONTROLS, vmx_vmentry_control); + __vmwrite(VM_EXIT_CONTROLS, vmexit_ctl); + __vmwrite(VM_ENTRY_CONTROLS, vmentry_ctl); if ( cpu_has_vmx_secondary_exec_control ) __vmwrite(SECONDARY_VM_EXEC_CONTROL, _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |