Skip to content

x86/intr: HVM guest interrupt handling fixes/cleanup

Roger Pau Monne xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 10 repliesIn review
  2. v24 patches 10 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/vioapic: top word redir entry writes don't trigger interruptsxen/arch/x86/hvm/vioapic.c+2 -01 reply
2/6x86/vioapic: issue EOI to dpci when switching pin to edge trigger modexen/arch/x86/hvm/vioapic.c+17 -01 reply
3/6x86/vpic: force int output to low when in init modexen/arch/x86/hvm/vpic.c+6 -31 reply
4/6x86/vpic: don't trigger unmask event until end of initxen/arch/x86/hvm/vpic.c+6 -21 reply
5/6x86/vpic: issue dpci EOI for cleared pins at ICW1xen/arch/x86/hvm/vpic.c+20 -04 replies
6/6x86/dpci: remove the dpci EOI timerxen/drivers/passthrough/vtd/x86/hvm.c xen/drivers/passthrough/x86/hvm.c xen/include/asm-x86/hvm/irq.h +1 more+2 -1040 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/6Requested-by A-b
2/6R-b
3/6Requested-by A-b
4/6Requested-by A-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] x86/intr: HVM guest interrupt handling fixes/cleanup

Hello,

The following series aims to fix some shortcomings of guest interrupt handling when using passthrough devices. The first 5 patches are bugfixes or cleanups, which I think should solve the issue(s) that caused the dpci EOI timer to be introduced. However neither me nor others seem to be able to reproduce the original issue, so it's hard to tell.

It's my opinion that we should remove the timer and see what explodes (if anything). That's the only way we will be able to figure out what the original issue was, and how to fix it without introducing yet another per-guest-irq related timer.

Thanks, Roger.

Roger Pau Monne (6):
x86/vioapic: top word redir entry writes don't trigger interrupts x86/vioapic: issue EOI to dpci when switching pin to edge trigger mode x86/vpic: force int output to low when in init mode x86/vpic: don't trigger unmask event until end of init x86/vpic: issue dpci EOI for cleared pins at ICW1 x86/dpci: remove the dpci EOI timer

 xen/arch/x86/hvm/vioapic.c            | 19 ++++++
 xen/arch/x86/hvm/vpic.c               | 36 ++++++++--
 xen/drivers/passthrough/vtd/x86/hvm.c |  3 -
 xen/drivers/passthrough/x86/hvm.c     | 95 +--------------------------
 xen/include/asm-x86/hvm/irq.h         |  3 -
 xen/include/xen/iommu.h               |  5 --
 6 files changed, 52 insertions(+), 109 deletions(-)
Signature · 1 line
2.29.2