qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH for-1.2 0/3] prep: QOM'ify Super I/O


From: Andreas Färber
Subject: [Qemu-devel] [PATCH for-1.2 0/3] prep: QOM'ify Super I/O
Date: Wed, 15 Aug 2012 16:24:22 +0200

Hello,

This mini-series updates a patch by Hervé (that didn't make it into v1.1)
to clean up the PReP device emulation and allowing it to be shared with a
future 40P machine.

History: Hervé was original author of the 40P patches and provided them to me,
I sent up to v5 (issue: ISABus not being hotplug-capable),
then Hervé sent up to v2, so
this is actually v8. ;)

For v1.1 I deferred Hervé's v1 due to a hack wrt NULL chr handlers in initfn.
v2 moved the logic from the machine into the device, avoiding this for now.
This version of mine fixes an error in case of no -serial options through use
of qemu_chr_new() and applies some more QOM sugar and adds a header.

Prepended is a fix requested by Markus to allow using the -M prep machine
with qemu-system-ppc64 (it would conflict with the changes here if sent alone).

Since this only affects the PReP machine and has mostly been around for a while,
I feel this is still acceptable for v1.2 at this late stage unless Alex objects.

Regards,
Andreas

Cc: Anthony Liguori <address@hidden>
Cc: Blue Swirl <address@hidden>
Cc: Alexander Graf <address@hidden>
Cc: Hervé Poussineau <address@hidden>

Changes from Hervé's v2 (04/2012):
* Introduce TYPE_PC87312 constant.
* Make TypeInfo static const, rename to ..._type_info.
* Introduce PC87312() cast macro, use QOM casts consistently.
* Change field types from DeviceState to ISADevice to avoid ->qdev accesses.
* ppc_prep: Reuse TYPE_PC87312 constant from header.
* MAINTAINERS: Add to PReP machine.
* Avoid "Can't create serial device, empty char device" error by creating
  char devs if absent, so that the 'prep' machine still works out of the box.

Andreas Färber (1):
  prep: Include devices for ppc64 as well

Hervé Poussineau (2):
  prep: Add pc87312 Super I/O emulation
  prep: Use pc87312 device instead of collection of random ISA devices

 MAINTAINERS                       |    1 +
 default-configs/ppc-softmmu.mak   |    2 +
 default-configs/ppc64-softmmu.mak |    5 +
 hw/Makefile.objs                  |    1 +
 hw/pc87312.c                      |  386 +++++++++++++++++++++++++++++++++++++
 hw/pc87312.h                      |   66 +++++++
 hw/ppc_prep.c                     |   39 +---
 trace-events                      |    8 +
 8 files changed, 476 insertions(+), 32 deletions(-)
 create mode 100644 hw/pc87312.c
 create mode 100644 hw/pc87312.h

-- 
1.7.7




reply via email to

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