pci: do not respond config requests after PCI device eject
authorYuri Benditovich <yuri.benditovich@daynix.com>
Fri, 28 Jul 2023 08:40:49 +0000 (11:40 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 3 Aug 2023 20:06:49 +0000 (16:06 -0400)
commit348e354417b64c484877354ee7cc66f29fa6c7df
treeee624e8da5dfbc028796b26ad7500dd621fb4fd7
parentc92f4fcafa14890524945073b494937e97112677
pci: do not respond config requests after PCI device eject

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2224964
In migration with VF failover, Windows guest and ACPI hot
unplug we do not need to satisfy config requests, otherwise
the guest immediately detects the device and brings up its
driver. Many network VF's are stuck on the guest PCI bus after
the migration.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Message-Id: <20230728084049.191454-1-yuri.benditovich@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci_host.c