pcie: fast unplug when slot power is off
commit0d33415a4eafe532f3beef8272811d927236a353
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 11 Nov 2021 13:08:58 +0000 (11 14:08 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 15 Nov 2021 16:10:11 +0000 (15 11:10 -0500)
treeae65f05cbfb33da512f753dbf7e1f5cd7fde8518
parent44242d4d3d082a28200fdbecaed5398122682e6e
pcie: fast unplug when slot power is off

In case the slot is powered off (and the power indicator turned off too)
we can unplug right away, without round-trip to the guest.

Also clear pending attention button press, there is nothing to care
about any more.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20211111130859.1171890-6-kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie.c