All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] spapr: Drop some users of qdev_get_machine()
@ 2020-12-09 17:00 Greg Kurz
  2020-12-09 17:00 ` [PATCH 1/6] spapr: Add an "spapr" property to sPAPR CPU core Greg Kurz
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Greg Kurz @ 2020-12-09 17:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-ppc, Greg Kurz, David Gibson

Accessing the machine state using the global qdev_get_machine() function
isn't generally recommended. In a bunch of places in the sPAPR code, the
machine state can be obtained from the caller actually.

Greg Kurz (6):
  spapr: Add an "spapr" property to sPAPR CPU core
  spapr: Add an "spapr" property to sPAPR PHB
  spapr: Pass sPAPR machine state down to spapr_pci_switch_vga()
  spapr: Don't use qdev_get_machine() in spapr_msi_write()
  spapr: Pass sPAPR machine state to some RTAS events handling functions
  target/ppc: Add mce_req_event() handler to PPCVirtualHypervisorClass

 include/hw/pci-host/spapr.h     |  1 +
 include/hw/ppc/spapr.h          |  5 +++--
 include/hw/ppc/spapr_cpu_core.h |  2 ++
 target/ppc/cpu.h                |  2 ++
 hw/ppc/spapr.c                  |  9 +++++++++
 hw/ppc/spapr_cpu_core.c         | 17 +++++++----------
 hw/ppc/spapr_events.c           | 26 +++++++++++++-------------
 hw/ppc/spapr_hcall.c            |  7 ++++---
 hw/ppc/spapr_pci.c              | 22 +++++++++-------------
 hw/ppc/spapr_pci_nvlink2.c      |  2 +-
 target/ppc/kvm.c                |  9 +++++++--
 11 files changed, 58 insertions(+), 44 deletions(-)

-- 
2.26.2




^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2020-12-10  9:57 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 17:00 [PATCH 0/6] spapr: Drop some users of qdev_get_machine() Greg Kurz
2020-12-09 17:00 ` [PATCH 1/6] spapr: Add an "spapr" property to sPAPR CPU core Greg Kurz
2020-12-09 17:34   ` Philippe Mathieu-Daudé
2020-12-09 17:42     ` Greg Kurz
2020-12-09 17:53       ` Philippe Mathieu-Daudé
2020-12-09 18:11         ` Philippe Mathieu-Daudé
2020-12-09 18:26           ` Eduardo Habkost
2020-12-09 20:24             ` Greg Kurz
2020-12-09 20:54               ` Eduardo Habkost
2020-12-10  8:23                 ` Cédric Le Goater
2020-12-10  3:53             ` David Gibson
2020-12-10  8:54               ` Greg Kurz
2020-12-09 17:00 ` [PATCH 2/6] spapr: Add an "spapr" property to sPAPR PHB Greg Kurz
2020-12-09 17:00 ` [PATCH 3/6] spapr: Pass sPAPR machine state down to spapr_pci_switch_vga() Greg Kurz
2020-12-10  3:28   ` David Gibson
2020-12-09 17:00 ` [PATCH 4/6] spapr: Don't use qdev_get_machine() in spapr_msi_write() Greg Kurz
2020-12-10  3:30   ` David Gibson
2020-12-09 17:00 ` [PATCH 5/6] spapr: Pass sPAPR machine state to some RTAS events handling functions Greg Kurz
2020-12-10  3:31   ` David Gibson
2020-12-09 17:00 ` [PATCH 6/6] target/ppc: Add mce_req_event() handler to PPCVirtualHypervisorClass Greg Kurz
2020-12-10  3:54   ` David Gibson
2020-12-10  9:37     ` Greg Kurz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.