hw/pci/pcie: Forbid hot-plug if it's disabled on the slot
commit0501e1aa1d32a6e02dd06a79bba97fbe9d557cb5
authorJulia Suvorova <jusual@redhat.com>
Mon, 27 Apr 2020 18:24:39 +0000 (27 20:24 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 May 2020 14:25:02 +0000 (4 10:25 -0400)
tree74665c7a9928eac0ea0e9e971e65b8c7f33225c8
parent9af638cc1f665712522608c5d6b8c03d8fa67666
hw/pci/pcie: Forbid hot-plug if it's disabled on the slot

Raise an error when trying to hot-plug/unplug a device through QMP to a device
with disabled hot-plug capability. This makes the device behaviour more
consistent and provides an explanation of the failure in the case of
asynchronous unplug.

Signed-off-by: Julia Suvorova <jusual@redhat.com>
Message-Id: <20200427182440.92433-2-jusual@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/pci/pcie.c