qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC for-2.7 00/11] A new infrastructure for guest device trees
@ 2016-04-20  2:33 David Gibson
  2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 01/11] qdt: IEEE1275-style device tree utility code David Gibson
                   ` (10 more replies)
  0 siblings, 11 replies; 44+ messages in thread
From: David Gibson @ 2016-04-20  2:33 UTC (permalink / raw)
  To: agraf, crosthwaite.peter; +Cc: aik, qemu-ppc, qemu-devel, David Gibson

This RFC series suggests a new approach to constructing IEE1275 or
"fdt" style device trees for use by guests.  At the moment we
generally do that with libfdt which works, but as the amount of device
tree manipulation we need in qemu grows, it becomes an increasingly
poor choice.

This introduces a new "qdt" mini-library for manipulating device trees
in an internal format, then flattening them to fdt.  It makes a start
on converting the pseries machine type (probably the heaviest user of
device trees) to this approach.

David Gibson (11):
  qdt: IEEE1275-style device tree utility code
  pseries: Split device tree construction from device tree load
  pseries: Remove rtas_addr and fdt_addr fields from machinestate
  pseries: Make spapr_create_fdt_skel() get information from machine
    state
  pseries: Build device tree only at reset time
  pseries: Consolidate RTAS loading
  pseries: Move adding of fdt reserve map entries
  pseries: Start using qdt library for building device tree
  pseries: Consolidate construction of /chosen device tree node
  pseries: Consolidate construction of /rtas device tree node
  pseries: Remove unused callbacks from sPAPR VIO bus state

 hw/ppc/spapr.c             | 567 ++++++++++++++++++++++-----------------------
 hw/ppc/spapr_events.c      |  19 --
 hw/ppc/spapr_rtas.c        |  82 +++----
 hw/ppc/spapr_vio.c         |  16 +-
 include/hw/ppc/spapr.h     |  12 +-
 include/hw/ppc/spapr_vio.h |   4 +-
 include/qemu/qdt.h         | 102 ++++++++
 util/Makefile.objs         |   1 +
 util/qdt.c                 | 262 +++++++++++++++++++++
 9 files changed, 679 insertions(+), 386 deletions(-)
 create mode 100644 include/qemu/qdt.h
 create mode 100644 util/qdt.c

-- 
2.5.5

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

end of thread, other threads:[~2016-04-28  0:03 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-20  2:33 [Qemu-devel] [RFC for-2.7 00/11] A new infrastructure for guest device trees David Gibson
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 01/11] qdt: IEEE1275-style device tree utility code David Gibson
2016-04-21  6:01   ` Alexey Kardashevskiy
2016-04-22  4:15     ` David Gibson
2016-04-26 11:00   ` Thomas Huth
2016-04-27  6:02     ` David Gibson
2016-04-27  6:43       ` Markus Armbruster
2016-04-27  7:06         ` Thomas Huth
2016-04-27  7:28           ` Markus Armbruster
2016-04-27  7:56             ` Thomas Huth
2016-04-27  8:36               ` Markus Armbruster
2016-04-27 23:49             ` David Gibson
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 02/11] pseries: Split device tree construction from device tree load David Gibson
2016-04-20 18:15   ` Thomas Huth
2016-04-21  5:31   ` Alexey Kardashevskiy
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 03/11] pseries: Remove rtas_addr and fdt_addr fields from machinestate David Gibson
2016-04-20 18:19   ` Thomas Huth
2016-04-21  5:32   ` Alexey Kardashevskiy
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 04/11] pseries: Make spapr_create_fdt_skel() get information from machine state David Gibson
2016-04-21  5:32   ` Alexey Kardashevskiy
2016-04-26 17:41   ` Thomas Huth
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 05/11] pseries: Build device tree only at reset time David Gibson
2016-04-21  5:32   ` Alexey Kardashevskiy
2016-04-26 18:13   ` Thomas Huth
2016-04-27  6:07     ` David Gibson
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 06/11] pseries: Consolidate RTAS loading David Gibson
2016-04-21  5:32   ` Alexey Kardashevskiy
2016-04-27  9:12   ` Thomas Huth
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 07/11] pseries: Move adding of fdt reserve map entries David Gibson
2016-04-21  5:14   ` Alexey Kardashevskiy
2016-04-21  5:52     ` David Gibson
2016-04-21  6:03       ` Alexey Kardashevskiy
2016-04-22  4:22         ` David Gibson
2016-04-27  9:19   ` Thomas Huth
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 08/11] pseries: Start using qdt library for building device tree David Gibson
2016-04-21  4:04   ` Alexey Kardashevskiy
2016-04-27  6:13     ` David Gibson
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 09/11] pseries: Consolidate construction of /chosen device tree node David Gibson
2016-04-21  5:32   ` Alexey Kardashevskiy
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 10/11] pseries: Consolidate construction of /rtas " David Gibson
2016-04-21  5:32   ` Alexey Kardashevskiy
2016-04-20  2:33 ` [Qemu-devel] [RFC for-2.7 11/11] pseries: Remove unused callbacks from sPAPR VIO bus state David Gibson
2016-04-21  5:31   ` Alexey Kardashevskiy
2016-04-27  6:22     ` David Gibson

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).