]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
vfio/pci: Virtualize Maximum Read Request Size
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 16 Jan 2018 23:40:40 +0000 (17:40 -0600)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 16 Feb 2018 17:42:01 +0000 (12:42 -0500)
commit5861601cf87cae0832d54f5f3a7b69250bb5432a
tree580934373f66829fa9e4beaa5965fef479fff0d2
parentf96f53d5753eae64346c6bdb30a557380d8fcb48
vfio/pci: Virtualize Maximum Read Request Size

BugLink: https://launchpad.net/bugs/1732804
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>
(cherry picked from commit cf0d53ba4947aad6e471491d5b20a567cbe92e56)
Acked-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/vfio/pci/vfio_pci_config.c