Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115268
b: refs/heads/master
c: 85428ac
h: refs/heads/master
v: v3
  • Loading branch information
Marcelo Tosatti authored and Avi Kivity committed Oct 15, 2008
1 parent 9dbce01 commit f398a56
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 8ceed34744f81c4a33d68ab825fd9ad3dd5f5505
refs/heads/master: 85428ac7c39ab5fff23b5d14ccb32941e9401285
16 changes: 11 additions & 5 deletions trunk/arch/x86/kvm/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,19 @@ int kvm_pic_read_irq(struct kvm *kvm)

void kvm_pic_reset(struct kvm_kpic_state *s)
{
int irq;
int irq, irqbase;
struct kvm *kvm = s->pics_state->irq_request_opaque;
struct kvm_vcpu *vcpu0 = kvm->vcpus[0];

for (irq = 0; irq < PIC_NUM_PINS; irq++) {
if (!(s->imr & (1 << irq)) && (s->irr & (1 << irq) ||
s->isr & (1 << irq)))
kvm_notify_acked_irq(kvm, irq);
if (s == &s->pics_state->pics[0])
irqbase = 0;
else
irqbase = 8;

for (irq = 0; irq < PIC_NUM_PINS/2; irq++) {
if (vcpu0 && kvm_apic_accept_pic_intr(vcpu0))
if (s->irr & (1 << irq) || s->isr & (1 << irq))
kvm_notify_acked_irq(kvm, irq+irqbase);
}
s->last_irr = 0;
s->irr = 0;
Expand Down

0 comments on commit f398a56

Please sign in to comment.