Re: [Qemu-devel] [PATCH] spapr_pci: fail gracefully with non-pseries machine types

2017-10-11 Thread David Gibson
On Wed, Oct 11, 2017 at 09:29:08AM +0200, Greg Kurz wrote: > On Sat, 7 Oct 2017 16:19:25 +1100 > David Gibson wrote: > > > On Fri, Oct 06, 2017 at 05:09:04PM +0200, Greg Kurz wrote: > > > QEMU currently crashes when the user tries to add a spapr-pci-host-bridge > > >

Re: [Qemu-devel] [PATCH] spapr_pci: fail gracefully with non-pseries machine types

2017-10-11 Thread Greg Kurz
On Sat, 7 Oct 2017 16:19:25 +1100 David Gibson wrote: > On Fri, Oct 06, 2017 at 05:09:04PM +0200, Greg Kurz wrote: > > QEMU currently crashes when the user tries to add a spapr-pci-host-bridge > > on a non-pseries machine: > > > > $ qemu-system-ppc64 -M ppce500

Re: [Qemu-devel] [PATCH] spapr_pci: fail gracefully with non-pseries machine types

2017-10-07 Thread Greg Kurz
On Sat, 7 Oct 2017 16:19:25 +1100 David Gibson wrote: > On Fri, Oct 06, 2017 at 05:09:04PM +0200, Greg Kurz wrote: > > QEMU currently crashes when the user tries to add a spapr-pci-host-bridge > > on a non-pseries machine: > > > > $ qemu-system-ppc64 -M ppce500

Re: [Qemu-devel] [PATCH] spapr_pci: fail gracefully with non-pseries machine types

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 05:09:04PM +0200, Greg Kurz wrote: > QEMU currently crashes when the user tries to add a spapr-pci-host-bridge > on a non-pseries machine: > > $ qemu-system-ppc64 -M ppce500 -device spapr-pci-host-bridge,index=1 > hw/ppc/spapr_pci.c:1535:spapr_phb_realize: > Object

[Qemu-devel] [PATCH] spapr_pci: fail gracefully with non-pseries machine types

2017-10-06 Thread Greg Kurz
QEMU currently crashes when the user tries to add a spapr-pci-host-bridge on a non-pseries machine: $ qemu-system-ppc64 -M ppce500 -device spapr-pci-host-bridge,index=1 hw/ppc/spapr_pci.c:1535:spapr_phb_realize: Object 0x1003dacae60 is not an instance of type spapr-machine Aborted (core dumped)