Skip to content

RFC kvm tools: allow ioport emulation to be used on ARM

Will Deacon kvm 1 version Applied

Status from this message: I applied the series. Thanks guys!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11kvm tools: makefile: factor out libfdt inclusiontools/kvm/Makefile+19 -120 replies
2/11kvm tools: virtio: move fdt node generation into core mmio codetools/kvm/arm/fdt.c tools/kvm/virtio/mmio.c+47 -210 replies
3/11kvm tools: arm: add ioport window to virtual memory maptools/kvm/arm/include/arm-common/kvm-arch.h tools/kvm/arm/kvm-cpu.c+17 -40 replies
4/11kvm tools: console: unconditionally output to any consoletools/kvm/hw/serial.c tools/kvm/powerpc/spapr_hvcons.c tools/kvm/powerpc/spapr_rtas.c +1 more+4 -126 replies
5/11kvm tools: allow ioports to be offset from 0tools/kvm/arm/include/arm-common/kvm-arch.h tools/kvm/powerpc/include/kvm/kvm-arch.h tools/kvm/x86/include/kvm/kvm-arch.h+5 -20 replies
6/11kvm tools: ioport: add arch callback to remap IRQ lines for ioport devicestools/kvm/arm/ioport.c tools/kvm/hw/serial.c tools/kvm/include/kvm/ioport.h +2 more+17 -00 replies
7/11kvm tools: ioport: allow ioport devices to generate fdt nodestools/kvm/devices.c tools/kvm/include/kvm/devices.h tools/kvm/include/kvm/ioport.h +1 more+43 -30 replies
8/11kvm tools: 8250: add fdt node generationtools/kvm/hw/serial.c+29 -260 replies
9/11kvm tools: 8250: add address qualifier to uart name in fdt nodetools/kvm/hw/serial.c+7 -20 replies
10/11kvm tools: ARM: generate fdt nodes for ioport devicestools/kvm/arm/fdt.c+8 -00 replies
11/11kvm tools: ARM: add 8250 console callback to periodic polltools/kvm/arm/kvm.c+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 00/11] kvm tools: allow ioport emulation to be used on ARM

Hi guys,

This RFC series does a number of things, but the main goal is to allow re-use of the emulation code under hw/ on architectures other than x86. It also comes about after discussions concerning virtio-console for earlyprintk:

http://lists.infradead.org/pipermail/linux-arm-kernel/2013-April/165605.html

The first 5 patches in this series allow the 8250 emulation to be used for earlyprintk (i.e. output only) on aarch64 platforms. The remaining 7 patches generalise this to potentially any ioport devices, with DT node generation and interrupt routing.

All comments welcome,

Will

Marc Zyngier (2):
kvm tools: console: unconditionally output to any console kvm tools: 8250: add address qualifier to uart name in fdt node

Will Deacon (9):
kvm tools: makefile: factor out libfdt inclusion
kvm tools: virtio: move fdt node generation into core mmio code kvm tools: arm: add ioport window to virtual memory map kvm tools: allow ioports to be offset from 0
kvm tools: ioport: add arch callback to remap IRQ lines for ioport
devices
kvm tools: ioport: allow ioport devices to generate fdt nodes kvm tools: 8250: add fdt node generation
kvm tools: ARM: generate fdt nodes for ioport devices kvm tools: ARM: add 8250 console callback to periodic poll

 tools/kvm/Makefile                          | 31 ++++++++------
 tools/kvm/arm/fdt.c                         | 38 ++++++++---------
 tools/kvm/arm/include/arm-common/kvm-arch.h | 13 +++++-
 tools/kvm/arm/ioport.c                      |  7 ++++
 tools/kvm/arm/kvm-cpu.c                     |  9 +++-
 tools/kvm/arm/kvm.c                         |  5 ++-
 tools/kvm/devices.c                         |  6 +++
 tools/kvm/hw/serial.c                       | 64 ++++++++++++++++-------------
 tools/kvm/include/kvm/devices.h             |  2 +
 tools/kvm/include/kvm/ioport.h              |  5 +++
 tools/kvm/ioport.c                          | 34 +++++++++++++--
 tools/kvm/powerpc/include/kvm/kvm-arch.h    |  1 +
 tools/kvm/powerpc/ioport.c                  |  4 ++
 tools/kvm/powerpc/spapr_hvcons.c            |  5 +--
 tools/kvm/powerpc/spapr_rtas.c              |  3 +-
 tools/kvm/virtio/console.c                  |  5 +--
 tools/kvm/virtio/mmio.c                     | 38 ++++++++++++++++-
 tools/kvm/x86/include/kvm/kvm-arch.h        |  1 +
 tools/kvm/x86/ioport.c                      |  4 ++
 19 files changed, 196 insertions(+), 79 deletions(-)
Signature · 1 line
1.8.0