13 May, 2010

1 commit


01 Mar, 2010

2 commits

  • If we fail to init ioapic device or the fail to setup the default irq
    routing, the device register by kvm_create_pic() and kvm_ioapic_init()
    remain unregister. This patch fixed to do this.

    Signed-off-by: Wei Yongjun
    Signed-off-by: Avi Kivity

    Wei Yongjun
     
  • When the guest acknowledges an interrupt, it sends an EOI message to the local
    apic, which broadcasts it to the ioapic. To handle the EOI, we need to take
    the ioapic mutex.

    On large guests, this causes a lot of contention on this mutex. Since large
    guests usually don't route interrupts via the ioapic (they use msi instead),
    this is completely unnecessary.

    Avoid taking the mutex by introducing a handled_vectors bitmap. Before taking
    the mutex, check if the ioapic was actually responsible for the acked vector.
    If not, we can return early.

    Signed-off-by: Avi Kivity
    Signed-off-by: Marcelo Tosatti

    Avi Kivity
     

03 Dec, 2009

2 commits


10 Jun, 2009

8 commits


24 Mar, 2009

1 commit

  • IRQ injection status is either -1 (if there was no CPU found
    that should except the interrupt because IRQ was masked or
    ioapic was misconfigured or ...) or >= 0 in that case the
    number indicates to how many CPUs interrupt was injected.
    If the value is 0 it means that the interrupt was coalesced
    and probably should be reinjected.

    Signed-off-by: Gleb Natapov
    Signed-off-by: Avi Kivity

    Gleb Natapov
     

31 Dec, 2008

1 commit


15 Oct, 2008

2 commits

  • Moving irqchip_in_kernel() from ioapic.h to irq.h.

    Signed-off-by: Xiantao Zhang
    Signed-off-by: Avi Kivity

    Xiantao Zhang
     
  • Based on a patch from: Ben-Ami Yassour
    which was based on a patch from: Amit Shah

    Notify IRQ acking on PIC/APIC emulation. The previous patch missed two things:

    - Edge triggered interrupts on IOAPIC
    - PIC reset with IRR/ISR set should be equivalent to ack (LAPIC probably
    needs something similar).

    Signed-off-by: Marcelo Tosatti
    CC: Amit Shah
    CC: Ben-Ami Yassour
    Signed-off-by: Avi Kivity

    Marcelo Tosatti
     

31 Jan, 2008

1 commit