From: "Cédric Le Goater" <clg@kaod.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: "Cédric Le Goater" <clg@kaod.org>,
qemu-ppc@nongnu.org, "Greg Kurz" <groug@kaod.org>,
qemu-devel@nongnu.org
Subject: [PATCH v3 00/12] ppc/pnv: remove the use of qdev_get_machine()
Date: Mon, 6 Jan 2020 15:56:33 +0100 [thread overview]
Message-ID: <20200106145645.4539-1-clg@kaod.org> (raw)
Hello,
The PowerNV and sPAPR machine use qdev_get_machine() in some places.
This is not a good modeling pratice and it should be avoided. This
series replaces the use of this routine with a set of QOM properties
and aliases.
Thanks,
C.
Changes since v2:
- rebase on latest ppc tree
- dropped get_system_memory() removal
- addition of a couple of cleanup patches of the PSI model from Greg
Changes since v1:
- fixed a missing assert(chip->system_memory)
- introduced a XivePresenter link under XiveTCTX
Cédric Le Goater (3):
ppc/pnv: Introduce a "xics" property alias under the PSI model
ppc/pnv: Introduce a "xics" property under the POWER8 chip
xive: Add a "presenter" link property to the TCTX object
Greg Kurz (9):
pnv/xive: Use device_class_set_parent_realize()
spapr, pnv, xive: Add a "xive-fabric" link to the XIVE router
xive: Use the XIVE fabric link under the XIVE router
ppc/pnv: Add an "nr-threads" property to the base chip class
ppc/pnv: Add a "pnor" const link property to the BMC internal
simulator
spapr/xive: Deduce the SpaprXive pointer from XiveTCTX::xptr
pnv/xive: Deduce the PnvXive pointer from XiveTCTX::xptr
pnv/psi: Add device reset hook
pnv/psi: Consolidate some duplicated code in pnv_psi_realize()
include/hw/ppc/pnv.h | 7 +++--
include/hw/ppc/pnv_xive.h | 10 +++++++
include/hw/ppc/xive.h | 13 +++++----
hw/intc/pnv_xive.c | 18 ++++++++----
hw/intc/spapr_xive.c | 2 +-
hw/intc/spapr_xive_kvm.c | 9 +++---
hw/intc/xive.c | 28 ++++++++++++++++---
hw/ppc/pnv.c | 59 ++++++++++++++++++++++-----------------
hw/ppc/pnv_bmc.c | 8 ++++--
hw/ppc/pnv_psi.c | 43 ++++++++++++++++------------
hw/ppc/spapr_irq.c | 2 ++
11 files changed, 129 insertions(+), 70 deletions(-)
--
2.21.1
next reply other threads:[~2020-01-06 15:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-06 14:56 Cédric Le Goater [this message]
2020-01-06 14:56 ` [PATCH v3 01/12] ppc/pnv: Introduce a "xics" property alias under the PSI model Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 02/12] ppc/pnv: Introduce a "xics" property under the POWER8 chip Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 03/12] pnv/xive: Use device_class_set_parent_realize() Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 04/12] spapr, pnv, xive: Add a "xive-fabric" link to the XIVE router Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 05/12] xive: Use the XIVE fabric link under " Cédric Le Goater
2020-01-07 0:11 ` David Gibson
2020-01-06 14:56 ` [PATCH v3 06/12] ppc/pnv: Add an "nr-threads" property to the base chip class Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 07/12] ppc/pnv: Add a "pnor" const link property to the BMC internal simulator Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 08/12] xive: Add a "presenter" link property to the TCTX object Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 09/12] spapr/xive: Deduce the SpaprXive pointer from XiveTCTX::xptr Cédric Le Goater
2020-01-06 14:56 ` [PATCH v3 10/12] pnv/xive: Deduce the PnvXive " Cédric Le Goater
2020-01-07 0:16 ` David Gibson
2020-01-06 14:56 ` [PATCH v3 11/12] pnv/psi: Add device reset hook Cédric Le Goater
2020-01-07 0:23 ` David Gibson
2020-01-07 8:00 ` Greg Kurz
2020-01-06 14:56 ` [PATCH v3 12/12] pnv/psi: Consolidate some duplicated code in pnv_psi_realize() Cédric Le Goater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200106145645.4539-1-clg@kaod.org \
--to=clg@kaod.org \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).