Skip to content

vfio/pci: Fix issues with qword access

Kevin Tian kvm lkml stable 2 versions – Applied

Status from this message: Applied to vfio for-linus branch for v6.19. Thanks,

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Rebase to 6.19-rc1
- Use enum to avoid adding another bool arg (Alex)
- Elaborate the commit msg (Alex)
- New patch to disallow qword access to legacy VGA (Alex)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2vfio/pci: Disable qword access to the PCI ROM bardrivers/vfio/pci/nvgrace-gpu/main.c drivers/vfio/pci/vfio_pci_rdwr.c include/linux/vfio_pci_core.h+29 -101 reply
2/2vfio/pci: Disable qword access to the VGA regiondrivers/vfio/pci/vfio_pci_rdwr.c+1 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchFarrah Chen
1/2T-b
2/2

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/2] vfio/pci: Fix issues with qword access

Certain devices (e.g. Intel X710) don't support qword access to the rom bar, otherwise PCI aer errors are observed. Fix it by disabling the qword access to the rom bar.

While at it, also restrict accesses to the legacy VGA resource to dword. More for paranoia so stable kernel is not CC-ed.

v2:
- Rebase to 6.19-rc1
- Use enum to avoid adding another bool arg (Alex)
- Elaborate the commit msg (Alex)
- New patch to disallow qword access to legacy VGA (Alex)

v1:
https://lore.kernel.org/all/[email protected]/

Kevin Tian (2):
vfio/pci: Disable qword access to the PCI ROM bar vfio/pci: Disable qword access to the VGA region

 drivers/vfio/pci/nvgrace-gpu/main.c |  4 ++--
 drivers/vfio/pci/vfio_pci_rdwr.c    | 25 ++++++++++++++++++-------
 include/linux/vfio_pci_core.h       | 10 +++++++++-
 3 files changed, 29 insertions(+), 10 deletions(-)
Signature · 1 line
2.43.0