Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343457
b: refs/heads/master
c: d69c643
h: refs/heads/master
i:
  343455: f68960b
v: v3
  • Loading branch information
Alexander Graf committed Oct 5, 2012
1 parent 5c0677a commit c633d57
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 4ffc6356ec690f77f65b7b78e0047a3fe8316371
refs/heads/master: d69c6436443c05a64452054f51a79316297755f4
11 changes: 11 additions & 0 deletions trunk/arch/powerpc/kvm/booke.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,15 @@ static int kvmppc_prepare_to_enter(struct kvm_vcpu *vcpu)
continue;
}

if (vcpu->mode == EXITING_GUEST_MODE) {
r = 1;
break;
}

/* Going into guest context! Yay! */
vcpu->mode = IN_GUEST_MODE;
smp_wmb();

break;
}

Expand Down Expand Up @@ -572,6 +581,8 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
kvm_guest_exit();

out:
vcpu->mode = OUTSIDE_GUEST_MODE;
smp_wmb();
local_irq_enable();
return ret;
}
Expand Down

0 comments on commit c633d57

Please sign in to comment.