Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202373
b: refs/heads/master
c: 529df65
h: refs/heads/master
i:
  202371: 8eaed5e
v: v3
  • Loading branch information
Chris Lalancette authored and Avi Kivity committed Aug 1, 2010
1 parent 67d0fc2 commit 47f51fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 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: 979586e0b5809c46ebe5d784794a9f6d859b665e
refs/heads/master: 529df65e394e30a78f2633b575fd81fa5b973e30
17 changes: 13 additions & 4 deletions trunk/arch/x86/kvm/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,25 @@ static void pic_unlock(struct kvm_pic *s)
__releases(&s->lock)
{
bool wakeup = s->wakeup_needed;
struct kvm_vcpu *vcpu;
struct kvm_vcpu *vcpu, *found = NULL;
int i;

s->wakeup_needed = false;

raw_spin_unlock(&s->lock);

if (wakeup) {
vcpu = s->kvm->bsp_vcpu;
if (vcpu)
kvm_vcpu_kick(vcpu);
kvm_for_each_vcpu(i, vcpu, s->kvm) {
if (kvm_apic_accept_pic_intr(vcpu)) {
found = vcpu;
break;
}
}

if (!found)
found = s->kvm->bsp_vcpu;

kvm_vcpu_kick(found);
}
}

Expand Down

0 comments on commit 47f51fd

Please sign in to comment.