mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
ppc/pnv: Create BMC devices only when defaults are enabled
Commite2392d4395
("ppc/pnv: Create BMC devices at machine init") introduced default BMC devices which can be a problem when the same devices are defined on the command line with : -device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10 QEMU fails with : qemu-system-ppc64: error creating device tree: node: FDT_ERR_EXISTS Use defaults_enabled() when creating the default BMC devices to let the user provide its own BMC devices using '-nodefaults'. If no BMC device are provided, output a warning but let QEMU run as this is a supported configuration. However, when multiple BMC devices are defined, stop QEMU with a clear error as the results are unexpected. Fixes:e2392d4395
("ppc/pnv: Create BMC devices at machine init") Reported-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20200404153655.166834-1-clg@kaod.org> Tested-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a872e4328b
commit
25f3170b06
3 changed files with 74 additions and 5 deletions
|
@ -241,6 +241,8 @@ struct PnvMachineState {
|
|||
void pnv_dt_bmc_sensors(IPMIBmc *bmc, void *fdt);
|
||||
void pnv_bmc_powerdown(IPMIBmc *bmc);
|
||||
IPMIBmc *pnv_bmc_create(PnvPnor *pnor);
|
||||
IPMIBmc *pnv_bmc_find(Error **errp);
|
||||
void pnv_bmc_set_pnor(IPMIBmc *bmc, PnvPnor *pnor);
|
||||
|
||||
/*
|
||||
* POWER8 MMIO base addresses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue