Skip to content

: Fixes to IRQ routing

Chris Lalancette kvm 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 19 repliesApplied
  2. v23 patches 3 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Fix up the reinjection logic thanks to review from Gleb and Marcelo Tested with -no-kvm-pit-reinjection on a RHEL-3 guest

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3Introduce a workqueue to deliver PIT timer interrupts.arch/x86/kvm/i8254.c arch/x86/kvm/i8254.h arch/x86/kvm/irq.c+88 -5818 replies
2/3Allow any LAPIC to accept PIC interrupts.arch/x86/kvm/lapic.c+5 -70 replies
3/3In DM_LOWEST, only deliver interrupts to vcpus with enabled LAPIC'svirt/kvm/irq_comm.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3]: Fixes to IRQ routing

As we've discussed previously, here is a series of patches to fix some of the IRQ routing issues we have in KVM. With this series in place I was able to successfully kdump a RHEL-5 64-bit, and RHEL-6 32- and 64-bit guest on CPU's other than the BSP. RHEL-5 32-bit kdump still does not work; it gets stuck on "Checking 'hlt' instruction". However, it does that both before and after this series, so there is something else going on there that I still have to debug.

I also need to change the "kvm_migrate_pit_timer" function to migrate the timer over to the last CPU that handled the timer interrupt, on the theory that that particlar CPU is likely to handle the timer interrupt again in the near future. However, this is an optimization and shouldn't delay the inclusion of the rest of the series for correctness.

Changes since RFC:
- Changed ps->inject_lock from raw_spinlock_t to spinlock_t
- Fixed up some formatting issues
- Changed to have one PIT workqueue per-guest
- Remember to cancel_work_sync when destroying the PIT

Changes since v1:
- Call cancel_work_sync everywhere we call hrtimer_cancel
- Bring back the reinjection logic
- Fix up formatting issues from checkpatch

Changes since v2:
- Fix up the reinjection logic thanks to review from Gleb and Marcelo Tested with -no-kvm-pit-reinjection on a RHEL-3 guest