Skip to content

x86/MSI: XSA-120, 126, 128-131 follow-up

Jan Beulich xen-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 2 repliesIn review
  2. v4 RFC6 patches 13 repliesSuperseded
  3. v310 patches 29 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches16 repliesSuperseded
v14 patches10 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/PCI: add config space abstract write intercept logicxen/arch/x86/msi.c xen/arch/x86/pci.c xen/arch/x86/traps.c +1 more+94 -120 replies
2/7x86/MSI-X: track host and guest mask-all requests separatelyxen/arch/x86/msi.c xen/include/asm-x86/msi.h+70 -00 replies
3/7x86/MSI-X: be more careful during teardownxen/arch/x86/irq.c xen/arch/x86/msi.c+238 -580 replies
4/7x86/MSI-X: access MSI-X table only after having enabled MSI-Xxen/arch/x86/msi.c+242 -680 replies
5/7x86/MSI-X: reduce fiddling with control register during restorexen/arch/x86/msi.c+42 -240 replies
6/7x86/MSI: properly track guest masking requestsxen/arch/x86/msi.c+62 -01 reply
7/7x86/PCI: intercept all PV Dom0 MMCFG writesxen/arch/x86/mm.c xen/arch/x86/x86_64/mmconfig_64.c xen/drivers/passthrough/pci.c +2 more+280 -741 reply

Reviews trailers per patch

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

PatchAndrew Cooper
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b
7/7R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/7] x86/MSI: XSA-120, 126, 128-131 follow-up

RFCs dropped (with some debugging code removed). Everything except for patch 7 has been submitted before.

1: PCI: add config space write abstract intercept logic 2: MSI-X: track host and guest mask-all requests separately 3: MSI-X: be more careful during teardown
4: MSI-X: access MSI-X table only after having enabled MSI-X 5: MSI-X: reduce fiddling with control register during restore 6: MSI: properly track guest masking requests
7: PCI: intercept all PV Dom0 MMCFG writes

The remaining missing piece (PVH Dom0 support) is not being considered important to be dealt with before this can go in (as there are more issues in that area anyway). Hooking up pci_conf_write_intercept() to the nested page fault handler shouldn't be very difficult to implement as long as MMIO MFNs get mapped 1:1 in PVH Dom0's P2M. Enforcing the transition of the respective pages to r/o could probably be done by (ab)using p2m_memory_type_changed().