diff options
| author | Kunkun Jiang | 2021-10-27 11:04:05 +0200 |
|---|---|---|
| committer | Alex Williamson | 2021-11-01 19:17:51 +0100 |
| commit | f36d4fb85f41604038386e1eb4295acd7d372d86 (patch) | |
| tree | a011c8a5774a6ee32c27b393c9ac3312a7e1e1af /include | |
| parent | Merge remote-tracking branch 'remotes/philmd/tags/renesas-20211030' into staging (diff) | |
| download | qemu-f36d4fb85f41604038386e1eb4295acd7d372d86.tar.gz qemu-f36d4fb85f41604038386e1eb4295acd7d372d86.tar.xz qemu-f36d4fb85f41604038386e1eb4295acd7d372d86.zip | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
