diff options
author | Daniel Henrique Barboza <danielhb413@gmail.com> | 2021-02-26 13:33:00 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-03-10 09:07:09 +1100 |
commit | e35dfbd22780aafbcd4b6da5130a00fc085fd5de (patch) | |
tree | 51511db5e9b9efe46ed4cd8a9ace3b046674ce5b /hw/ppc | |
parent | 7420033ec460e7b9906bf05fbe1a0d3830536657 (diff) | |
download | qemu-e35dfbd22780aafbcd4b6da5130a00fc085fd5de.zip qemu-e35dfbd22780aafbcd4b6da5130a00fc085fd5de.tar.gz qemu-e35dfbd22780aafbcd4b6da5130a00fc085fd5de.tar.bz2 |
spapr_pci.c: add 'unplug already in progress' message for PCI unplug
Hotunplug for all other devices are warning the user when the hotunplug
is already in progress. Do the same for PCI devices in
spapr_pci_unplug_request().
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210226163301.419727-5-danielhb413@gmail.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index b00e960..feba18c 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -1743,6 +1743,10 @@ static void spapr_pci_unplug_request(HotplugHandler *plug_handler, } } } + } else { + error_setg(errp, + "PCI device unplug already in progress for device %s", + drc->dev->id); } } |