qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC for-2.7 00/11] A new infrastructure for guest device t


From: David Gibson
Subject: [Qemu-devel] [RFC for-2.7 00/11] A new infrastructure for guest device trees
Date: Wed, 20 Apr 2016 12:33:10 +1000

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]