ppc/pnv: Discard internal BMC initialization when BMC is external
commit50ae2452b5ae9659d8ec85c6d34a190474e429d1
authorCédric Le Goater <clg@kaod.org>
Tue, 26 Jan 2021 17:10:57 +0000 (26 18:10 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 9 Feb 2021 23:43:50 +0000 (10 10:43 +1100)
treedb7a5f2eace6484473aeec297d3a036fc4f54deb
parent60ef80101e3764f40a6b96c67b407a44e0b9330d
ppc/pnv: Discard internal BMC initialization when BMC is external

The PowerNV machine can be run with an external IPMI BMC device
connected to a remote QEMU machine acting as BMC, using these options :

  -chardev socket,id=ipmi0,host=localhost,port=9002,reconnect=10 \
  -device ipmi-bmc-extern,id=bmc0,chardev=ipmi0 \
  -device isa-ipmi-bt,bmc=bmc0,irq=10 \
  -nodefaults

In that case, some aspects of the BMC initialization should be
skipped, since they rely on the simulator interface.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20210126171059.307867-6-clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv_bmc.c