Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vfio/pci: Disable qword access to the VGA region

Seems no reason to allow qword access to the old VGA resource. Better
restrict it to dword access as before.

Suggested-by: Alex Williamson <alex@shazbot.org>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20251218081650.555015-3-kevin.tian@intel.com
Signed-off-by: Alex Williamson <alex@shazbot.org>

authored by

Kevin Tian and committed by
Alex Williamson
8bb808ce dc85a469

+1 -1
+1 -1
drivers/vfio/pci/vfio_pci_rdwr.c
··· 363 363 * to the memory enable bit in the command register. 364 364 */ 365 365 done = vfio_pci_core_do_io_rw(vdev, false, iomem, buf, off, count, 366 - 0, 0, iswrite, VFIO_PCI_IO_WIDTH_8); 366 + 0, 0, iswrite, VFIO_PCI_IO_WIDTH_4); 367 367 368 368 vga_put(vdev->pdev, rsrc); 369 369