summaryrefslogtreecommitdiffstats
path: root/linux-user/linux_loop.h
diff options
context:
space:
mode:
authorIdo Yariv2016-10-31 16:53:04 +0100
committerAlex Williamson2016-10-31 16:53:04 +0100
commita52a4c471703e995ceb06f6157d70747823e8a0d (patch)
tree0c839897e5cb026620cc5715dbc97109fe7145b8 /linux-user/linux_loop.h
parentvfio: Handle zero-length sparse mmap ranges (diff)
downloadqemu-a52a4c471703e995ceb06f6157d70747823e8a0d.tar.gz
qemu-a52a4c471703e995ceb06f6157d70747823e8a0d.tar.xz
qemu-a52a4c471703e995ceb06f6157d70747823e8a0d.zip
vfio/pci: fix out-of-sync BAR information on reset
When a PCI device is reset, pci_do_device_reset resets all BAR addresses in the relevant PCIDevice's config buffer. The VFIO configuration space stays untouched, so the guest OS may choose to skip restoring the BAR addresses as they would seem intact. The PCI device may be left non-operational. One example of such a scenario is when the guest exits S3. Fix this by resetting the BAR addresses in the VFIO configuration space as well. Signed-off-by: Ido Yariv <ido@wizery.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions