]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/pci: Virtualize Maximum Read Request Size
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Oct 2017 18:39:10 +0000 (12:39 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Oct 2017 18:39:10 +0000 (12:39 -0600)
commit6f9a7502b3db38db232c388ebbd42d64ea56c2e8
tree105b2cb2be076480a5a9c024990451cc2bb9182d
parent16765356baba5bc7a769d1dfbe1d47ff3e07ef57
vfio/pci: Virtualize Maximum Read Request Size

MRRS defines the maximum read request size a device is allowed to
make.  Drivers will often increase this to allow more data transfer
with a single request.  Completions to this request are bound by the
MPS setting for the bus.  Aside from device quirks (none known), it
doesn't seem to make sense to set an MRRS value less than MPS, yet
this is a likely scenario given that user drivers do not have a
system-wide view of the PCI topology.  Virtualize MRRS such that the
user can set MRRS >= MPS, but use MPS as the floor value that we'll
write to hardware.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_config.c