Re: [Qemu-devel] [PATCH v4 04/11] pci/pcie: stop plug/unplug if the slot is locked

2019-01-07 Thread Michael S. Tsirkin
On Mon, Jan 07, 2019 at 01:13:58PM +0100, David Hildenbrand wrote: > On 12.12.18 10:16, David Hildenbrand wrote: > > We better stop right away. For now, errors would be partially ignored > > (so the guest might get informed or the device might get unplugged), > > although actual plug/unplug will be

Re: [Qemu-devel] [PATCH v4 04/11] pci/pcie: stop plug/unplug if the slot is locked

2019-01-07 Thread David Hildenbrand
On 12.12.18 10:16, David Hildenbrand wrote: > We better stop right away. For now, errors would be partially ignored > (so the guest might get informed or the device might get unplugged), > although actual plug/unplug will be reported as failed to the user. > > While at it, properly move the check

[Qemu-devel] [PATCH v4 04/11] pci/pcie: stop plug/unplug if the slot is locked

2018-12-12 Thread David Hildenbrand
We better stop right away. For now, errors would be partially ignored (so the guest might get informed or the device might get unplugged), although actual plug/unplug will be reported as failed to the user. While at it, properly move the check to the pre_plug handler for the plug case, as we can t