]> git.proxmox.com Git - mirror_qemu.git/commit
ppc/pnv: Introduce PnvMachineClass::dt_power_mgt()
authorGreg Kurz <groug@kaod.org>
Fri, 13 Dec 2019 11:59:56 +0000 (12:59 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:59:10 +0000 (10:59 +1100)
commit7a90c6a1b650e3cd6391543cdf6587c5bc9f28c1
tree204262444461cf0ff94de8f541fc11e657d0d27a
parentd76f2da7a5b6330fba70f2c14f209de92e26abab
ppc/pnv: Introduce PnvMachineClass::dt_power_mgt()

We add an extra node to advertise power management on some machines,
namely powernv9 and powernv10. This is achieved by using the
pnv_is_power9() and pnv_is_power10() helpers.

This can be achieved with QOM. Add a method to the base class for
powernv machines and have it implemented by machine types that
support power management instead.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157623839642.360005.9243510140436689941.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
include/hw/ppc/pnv.h