* [PULL 0/1] ppc queue
@ 2022-11-11 10:05 Daniel Henrique Barboza
2022-11-11 10:05 ` [PULL 1/1] hw/pci-host/pnv_phb: Avoid quitting QEMU if hotplug of pnv-phb-root-port fails Daniel Henrique Barboza
2022-11-12 2:32 ` [PULL 0/1] ppc queue Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Henrique Barboza @ 2022-11-11 10:05 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-ppc, stefanha, Daniel Henrique Barboza
The following changes since commit 2ccad61746ca7de5dd3e25146062264387e43bd4:
Merge tag 'pull-tcg-20221109' of https://gitlab.com/rth7680/qemu into staging (2022-11-09 13:26:45 -0500)
are available in the Git repository at:
https://gitlab.com/danielhb/qemu.git tags/pull-ppc-20221111
for you to fetch changes up to ec5651340d445f009db1c2dc507da8cb4df85ad0:
hw/pci-host/pnv_phb: Avoid quitting QEMU if hotplug of pnv-phb-root-port fails (2022-11-10 18:22:10 -0300)
----------------------------------------------------------------
ppc patch queue for 2022-11-11:
Short queue with just a single pnv-phb fix from Thomas Huth.
----------------------------------------------------------------
Thomas Huth (1):
hw/pci-host/pnv_phb: Avoid quitting QEMU if hotplug of pnv-phb-root-port fails
hw/pci-host/pnv_phb.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL 1/1] hw/pci-host/pnv_phb: Avoid quitting QEMU if hotplug of pnv-phb-root-port fails
2022-11-11 10:05 [PULL 0/1] ppc queue Daniel Henrique Barboza
@ 2022-11-11 10:05 ` Daniel Henrique Barboza
2022-11-12 2:32 ` [PULL 0/1] ppc queue Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Henrique Barboza @ 2022-11-11 10:05 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-ppc, stefanha, Thomas Huth, Cédric Le Goater,
Daniel Henrique Barboza
From: Thomas Huth <thuth@redhat.com>
Currently QEMU terminates if you try to hotplug pnv-phb-root-port in
an environment where it is not supported, e.g. if doing this:
echo "device_add pnv-phb-root-port" | \
./qemu-system-ppc64 -monitor stdio -M powernv9
To avoid this problem, the pnv_phb_root_port_realize() function should
not use error_fatal when trying to set the properties which might not
be available.
Fixes: c2f3f78af5 ("ppc/pnv: set root port chassis and slot using Bus properties")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20221109122210.115667-1-thuth@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
hw/pci-host/pnv_phb.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/hw/pci-host/pnv_phb.c b/hw/pci-host/pnv_phb.c
index 7b11f1e8dd..0b26b43736 100644
--- a/hw/pci-host/pnv_phb.c
+++ b/hw/pci-host/pnv_phb.c
@@ -241,8 +241,16 @@ static void pnv_phb_root_port_realize(DeviceState *dev, Error **errp)
* QOM id. 'chip_id' is going to be used as PCIE chassis for the
* root port.
*/
- chip_id = object_property_get_int(OBJECT(bus), "chip-id", &error_fatal);
- index = object_property_get_int(OBJECT(bus), "phb-id", &error_fatal);
+ chip_id = object_property_get_int(OBJECT(bus), "chip-id", &local_err);
+ if (local_err) {
+ error_propagate(errp, local_err);
+ return;
+ }
+ index = object_property_get_int(OBJECT(bus), "phb-id", &local_err);
+ if (local_err) {
+ error_propagate(errp, local_err);
+ return;
+ }
/* Set unique chassis/slot values for the root port */
qdev_prop_set_uint8(dev, "chassis", chip_id);
--
2.37.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL 0/1] ppc queue
2022-11-11 10:05 [PULL 0/1] ppc queue Daniel Henrique Barboza
2022-11-11 10:05 ` [PULL 1/1] hw/pci-host/pnv_phb: Avoid quitting QEMU if hotplug of pnv-phb-root-port fails Daniel Henrique Barboza
@ 2022-11-12 2:32 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2022-11-12 2:32 UTC (permalink / raw)
To: Daniel Henrique Barboza
Cc: qemu-devel, qemu-ppc, stefanha, Daniel Henrique Barboza
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-12 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-11 10:05 [PULL 0/1] ppc queue Daniel Henrique Barboza
2022-11-11 10:05 ` [PULL 1/1] hw/pci-host/pnv_phb: Avoid quitting QEMU if hotplug of pnv-phb-root-port fails Daniel Henrique Barboza
2022-11-12 2:32 ` [PULL 0/1] ppc queue Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).