Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115265
b: refs/heads/master
c: 29415c3
h: refs/heads/master
i:
  115263: 34a9d92
v: v3
  • Loading branch information
Marcelo Tosatti authored and Avi Kivity committed Oct 15, 2008
1 parent d1cc56b commit b418e18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8349b5cd816adf102c078553ec8ca63b3beb457c
refs/heads/master: 29415c37f043d1d54dcf356601d738ff6633b72b
9 changes: 4 additions & 5 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3113,10 +3113,6 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
down_read(&vcpu->kvm->slots_lock);
vapic_enter(vcpu);

preempted:
if (vcpu->guest_debug.enabled)
kvm_x86_ops->guest_debug_pre(vcpu);

again:
if (vcpu->requests)
if (test_and_clear_bit(KVM_REQ_MMU_RELOAD, &vcpu->requests))
Expand Down Expand Up @@ -3170,6 +3166,9 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
goto out;
}

if (vcpu->guest_debug.enabled)
kvm_x86_ops->guest_debug_pre(vcpu);

vcpu->guest_mode = 1;
/*
* Make sure that guest_mode assignment won't happen after
Expand Down Expand Up @@ -3244,7 +3243,7 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
if (r > 0) {
kvm_resched(vcpu);
down_read(&vcpu->kvm->slots_lock);
goto preempted;
goto again;
}

post_kvm_run_save(vcpu, kvm_run);
Expand Down

0 comments on commit b418e18

Please sign in to comment.