diff options
-rw-r--r-- | arch/x86/kvm/vmx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 58fb7c27e3b5..097f5d662275 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -6978,7 +6978,7 @@ static void prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) | |||
6978 | vmcs12->guest_interruptibility_info); | 6978 | vmcs12->guest_interruptibility_info); |
6979 | vmcs_write32(GUEST_ACTIVITY_STATE, vmcs12->guest_activity_state); | 6979 | vmcs_write32(GUEST_ACTIVITY_STATE, vmcs12->guest_activity_state); |
6980 | vmcs_write32(GUEST_SYSENTER_CS, vmcs12->guest_sysenter_cs); | 6980 | vmcs_write32(GUEST_SYSENTER_CS, vmcs12->guest_sysenter_cs); |
6981 | vmcs_writel(GUEST_DR7, vmcs12->guest_dr7); | 6981 | kvm_set_dr(vcpu, 7, vmcs12->guest_dr7); |
6982 | vmcs_writel(GUEST_RFLAGS, vmcs12->guest_rflags); | 6982 | vmcs_writel(GUEST_RFLAGS, vmcs12->guest_rflags); |
6983 | vmcs_writel(GUEST_PENDING_DBG_EXCEPTIONS, | 6983 | vmcs_writel(GUEST_PENDING_DBG_EXCEPTIONS, |
6984 | vmcs12->guest_pending_dbg_exceptions); | 6984 | vmcs12->guest_pending_dbg_exceptions); |
@@ -7492,6 +7492,9 @@ static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, | |||
7492 | if (vmcs12->vm_exit_controls & VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL) | 7492 | if (vmcs12->vm_exit_controls & VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL) |
7493 | vmcs_write64(GUEST_IA32_PERF_GLOBAL_CTRL, | 7493 | vmcs_write64(GUEST_IA32_PERF_GLOBAL_CTRL, |
7494 | vmcs12->host_ia32_perf_global_ctrl); | 7494 | vmcs12->host_ia32_perf_global_ctrl); |
7495 | |||
7496 | kvm_set_dr(vcpu, 7, 0x400); | ||
7497 | vmcs_write64(GUEST_IA32_DEBUGCTL, 0); | ||
7495 | } | 7498 | } |
7496 | 7499 | ||
7497 | /* | 7500 | /* |