pcie: implement slot power control for pcie root ports
commitd5daff7d312653b92f23c7a8e198090b32b8dae6
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 11 Nov 2021 13:08:55 +0000 (11 14:08 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 15 Nov 2021 16:10:11 +0000 (15 11:10 -0500)
treea534acd89bd622a14e7921be3c2e371118c92896
parent23786d13441d36e0efcfee94ba8ff218746bed6c
pcie: implement slot power control for pcie root ports

With this patch hot-plugged pci devices will only be visible to the
guest if the guests hotplug driver has enabled slot power.

This should fix the hot-plug race which one can hit when hot-plugging
a pci device at boot, while the guest is in the middle of the pci bus
scan.

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