Skip to content

Commit 8bb808c

Browse files
ktian1awilliam
authored andcommitted
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>
1 parent dc85a46 commit 8bb808c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/vfio/pci/vfio_pci_rdwr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ ssize_t vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, char __user *buf,
363363
* to the memory enable bit in the command register.
364364
*/
365365
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);
367367

368368
vga_put(vdev->pdev, rsrc);
369369

0 commit comments

Comments
 (0)