aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-02-21 04:55:44 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2014-03-11 05:46:01 -0400
commitc845f9c646e646e6a5fe416c2e835342984249f7 (patch)
treee00acf03deed045b0a182851f28b2ec48c012040
parentc9a7953f09bbe2b66050ebf97e0532eaeefbc9f3 (diff)
KVM: vmx: we do rely on loading DR7 on entry
Currently, this works even if the bit is not in "min", because the bit is always set in MSR_IA32_VMX_ENTRY_CTLS. Mention it for the sake of documentation, and to avoid surprises if we later switch to MSR_IA32_VMX_TRUE_ENTRY_CTLS. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index fcc1947db296..b2a913bb07e0 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2871,7 +2871,7 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf)
2871 !(_vmexit_control & VM_EXIT_ACK_INTR_ON_EXIT)) 2871 !(_vmexit_control & VM_EXIT_ACK_INTR_ON_EXIT))
2872 _pin_based_exec_control &= ~PIN_BASED_POSTED_INTR; 2872 _pin_based_exec_control &= ~PIN_BASED_POSTED_INTR;
2873 2873
2874 min = 0; 2874 min = VM_ENTRY_LOAD_DEBUG_CONTROLS;
2875 opt = VM_ENTRY_LOAD_IA32_PAT | VM_ENTRY_LOAD_BNDCFGS; 2875 opt = VM_ENTRY_LOAD_IA32_PAT | VM_ENTRY_LOAD_BNDCFGS;
2876 if (adjust_vmx_controls(min, opt, MSR_IA32_VMX_ENTRY_CTLS, 2876 if (adjust_vmx_controls(min, opt, MSR_IA32_VMX_ENTRY_CTLS,
2877 &_vmentry_control) < 0) 2877 &_vmentry_control) < 0)