Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329857
b: refs/heads/master
c: 2a7921b
h: refs/heads/master
i:
  329855: abc1142
v: v3
  • Loading branch information
Gleb Natapov authored and Marcelo Tosatti committed Aug 13, 2012
1 parent d570c7c commit 976aa6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6024f1a4dd066d54213cc17f821e19e3062298ca
refs/heads/master: 2a7921b7a033d5cfc176690d6297c82846c582b2
6 changes: 6 additions & 0 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -6222,6 +6222,7 @@ static void atomic_switch_perf_msrs(struct vcpu_vmx *vmx)
static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
{
struct vcpu_vmx *vmx = to_vmx(vcpu);
unsigned long debugctlmsr;

if (is_guest_mode(vcpu) && !vmx->nested.nested_run_pending) {
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
Expand Down Expand Up @@ -6261,6 +6262,7 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
vmx_set_interrupt_shadow(vcpu, 0);

atomic_switch_perf_msrs(vmx);
debugctlmsr = get_debugctlmsr();

vmx->__launched = vmx->loaded_vmcs->launched;
asm(
Expand Down Expand Up @@ -6362,6 +6364,10 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
#endif
);

/* MSR_IA32_DEBUGCTLMSR is zeroed on vmexit. Restore it if needed */
if (debugctlmsr)
update_debugctlmsr(debugctlmsr);

#ifndef CONFIG_X86_64
/*
* The sysexit path does not restore ds/es, so we must set them to
Expand Down

0 comments on commit 976aa6c

Please sign in to comment.