Skip to content

vpci/msi: fix updating already bound MSI interrupts

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. v2 Latest3 patches 4 repliesIn review
  2. v12 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vpci/msi: fix unbind loopxen/arch/x86/hvm/vmsi.c+1 -12 replies
2/3vpci/msi: split code to bind pirqxen/arch/x86/hvm/vmsi.c+45 -281 reply
3/3vpci/msi: fix update of bound MSI interruptsxen/arch/x86/hvm/vmsi.c xen/drivers/vpci/msi.c xen/include/xen/vpci.h+26 -21 reply

Reviews trailers per patch

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

PatchJan BeulichJuergen Gross
1/3R-b Release-acked-by
2/3R-b
3/3A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] vpci/msi: fix updating already bound MSI interrupts

Hello,

There's a bug in current vpci code for MSI emulation when updating an already bound interrupt. The code will disable and enable the interrupt in order to update the binding, which calls unmap_domain_pirq that disables the global MSI enable flag in the control register.

In order to fix this incorrect behavior introduce a new update helper that should be used to update the bindings of an already enabled group of MSI interrupts.

Thanks, Roger.

Roger Pau Monne (3):
vpci/msi: fix unbind loop
vpci/msi: split code to bind pirq
vpci/msi: fix update of bound MSI interrupts

 xen/arch/x86/hvm/vmsi.c | 96 +++++++++++++++++++++++++++++------------
 xen/drivers/vpci/msi.c  |  3 +-
 xen/include/xen/vpci.h  |  2 +
 3 files changed, 71 insertions(+), 30 deletions(-)
Signature · 7 lines
2.17.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel