summaryrefslogtreecommitdiffstats
path: root/kernel/dma/dummy.c
diff options
context:
space:
mode:
authorZenghui Yu <yuzenghui@huawei.com>2020-09-21 06:51:16 +0200
committerAlex Williamson <alex.williamson@redhat.com>2020-09-21 22:08:12 +0200
commit1c0f68252a6a8a793ff3352e3580664d18ec5955 (patch)
tree4972920a78c93715f454de45cbed0d4a2dd6051a /kernel/dma/dummy.c
parentLinux 5.9-rc6 (diff)
downloadlinux-1c0f68252a6a8a793ff3352e3580664d18ec5955.tar.xz
linux-1c0f68252a6a8a793ff3352e3580664d18ec5955.zip
vfio/pci: Don't regenerate vconfig for all BARs if !bardirty
Now we regenerate vconfig for all the BARs via vfio_bar_fixup(), every time any offset of any of them are read. Though BARs aren't re-read regularly, the regeneration can be avoided if no BARs had been written since they were last read, in which case vdev->bardirty is false. Let's return immediately in vfio_bar_fixup() if bardirty is false. Suggested-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'kernel/dma/dummy.c')
0 files changed, 0 insertions, 0 deletions