Re: [Qemu-devel] [PATCH] vfio/pci: fix out-of-sync BAR information on reset

2016-10-21 Thread Ido Yariv
Hi Alex, On Fri, Oct 21, 2016 at 2:03 PM, Alex Williamson wrote: > On Fri, 21 Oct 2016 13:00:33 -0400 > Ido Yariv wrote: > > > 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 untou

Re: [Qemu-devel] [PATCH] vfio/pci: fix out-of-sync BAR information on reset

2016-10-21 Thread Alex Williamson
On Fri, 21 Oct 2016 13:00:33 -0400 Ido Yariv wrote: > 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 w

[Qemu-devel] [PATCH] vfio/pci: fix out-of-sync BAR information on reset

2016-10-21 Thread Ido Yariv
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. On