public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] vfio/pci: Fix issues with qword access
@ 2025-12-18  8:16 Kevin Tian
  2025-12-18  8:16 ` [PATCH v2 1/2] vfio/pci: Disable qword access to the PCI ROM bar Kevin Tian
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kevin Tian @ 2025-12-18  8:16 UTC (permalink / raw)
  To: Alex Williamson, Ankit Agrawal
  Cc: Jason Gunthorpe, Yishai Hadas, Shameer Kolothum, Kevin Tian,
	Ramesh Thomas, Yunxiang Li, kvm, linux-kernel

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/20251212020941.338355-1-kevin.tian@intel.com/

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-23 23:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18  8:16 [PATCH v2 0/2] vfio/pci: Fix issues with qword access Kevin Tian
2025-12-18  8:16 ` [PATCH v2 1/2] vfio/pci: Disable qword access to the PCI ROM bar Kevin Tian
2025-12-18  9:20   ` Chen, Farrah
2025-12-18  8:16 ` [PATCH v2 2/2] vfio/pci: Disable qword access to the VGA region Kevin Tian
2025-12-23 23:41 ` [PATCH v2 0/2] vfio/pci: Fix issues with qword access Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox