Files
qemu/hw
Kunkun Jiang f36d4fb85f vfio/pci: Add support for mmapping sub-page MMIO BARs after live migration
We can expand MemoryRegions of sub-page MMIO BARs in
vfio_pci_write_config() to improve IO performance for some
devices. However, the MemoryRegions of destination VM are
not expanded any more after live migration. Because their
addresses have been updated in vmstate_load_state()
(vfio_pci_load_config) and vfio_sub_page_bar_update_mapping()
will not be called.

This may result in poor performance after live migration.
So iterate BARs in vfio_pci_load_config() and try to update
sub-page BARs.

Reported-by: Nianyao Tang <tangnianyao@huawei.com>
Reported-by: Qixin Gan <ganqixin@huawei.com>
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
Link: https://lore.kernel.org/r/20211027090406.761-2-jiangkunkun@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2021-11-01 12:17:51 -06:00
..
2021-10-27 14:45:22 +02:00
2021-10-21 08:03:58 -07:00
2021-10-12 08:20:08 +02:00
2021-10-12 08:20:08 +02:00
2021-10-18 00:41:36 +02:00
2021-10-18 00:41:36 +02:00
2021-10-20 16:18:40 +02:00
2021-10-22 09:52:17 +02:00
2021-10-20 04:44:05 -04:00
2021-10-12 08:20:08 +02:00