Skip to content

Remove old_portio users for memory region PIO mapping

Alexander Graf qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14ac97: convert PIO to new memory api read/writehw/ac97.c+89 -200 replies
2/14virtio-pci: convert PIO to new memory api read/writehw/virtio-pci.c+49 -770 replies
3/14es1370: convert PIO to new memory api read/writehw/es1370.c+36 -100 replies
4/14i8254: convert PIO to new memory api read/writehw/i8254.c+11 -90 replies
5/14m48t59: convert PIO to new memory api read/writehw/m48t59.c+14 -100 replies
6/14mc146818rtc: convert PIO to new memory api read/writehw/mc146818rtc.c+11 -80 replies
7/14pc port92: convert PIO to new memory api read/writehw/pc.c+11 -80 replies
8/14pckbd: convert PIO to new memory api read/writehw/pckbd.c+27 -210 replies
9/14rtl8139: convert PIO to new memory api read/writehw/rtl8139.c+36 -420 replies
10/14serial: convert PIO to new memory api read/writehw/serial.c+18 -130 replies
11/14vmport: convert PIO to new memory api read/writehw/vmport.c+12 -90 replies
12/14xen_platform: convert PIO to new memory api read/writehw/xen_platform.c+38 -100 replies
13/14PPC: e500: Map PIO space into core memory regionhw/ppc/e500.c hw/ppce500_pci.c+8 -45 replies
14/14PPC: pseries: Remove hack for PIO windowhw/spapr_pci.c hw/spapr_pci.h+2 -440 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/14] Remove old_portio users for memory region PIO mapping

When running on PowerPC, we don't have native PIO support. There are a few hacks around to enable PIO access on PowerPC nevertheless.

The most typical one is the isa-mmio device. It takes MMIO requests and converts them to PIO requests on the (QEMU internal) PIO bus.

This however is not how real hardware works and it limits us in the ability to spawn eventfd's on PIO ports which doesn't work with this approach. Instead, let's model it more easily. Let's just map the PIO memory region into MMIO space.

For this to work, we need to get rid of all old_portio struct users, as they break with this approach. This is what this patch set does. It also converts the e500 machines and sPAPR to the new memory region model.

Alex

Alexander Graf (14):
ac97: convert PIO to new memory api read/write
virtio-pci: convert PIO to new memory api read/write
es1370: convert PIO to new memory api read/write
i8254: convert PIO to new memory api read/write
m48t59: convert PIO to new memory api read/write
mc146818rtc: convert PIO to new memory api read/write pc port92: convert PIO to new memory api read/write
pckbd: convert PIO to new memory api read/write
rtl8139: convert PIO to new memory api read/write
serial: convert PIO to new memory api read/write
vmport: convert PIO to new memory api read/write
xen_platform: convert PIO to new memory api read/write
PPC: e500: Map PIO space into core memory region
PPC: pseries: Remove hack for PIO window

 hw/ac97.c         |  109 +++++++++++++++++++++++++++++++++++++--------
 hw/es1370.c       |   46 +++++++++++++++----
 hw/i8254.c        |   20 +++++----
 hw/m48t59.c       |   24 ++++++----
 hw/mc146818rtc.c  |   19 +++++---
 hw/pc.c           |   19 +++++---
 hw/pckbd.c        |   48 +++++++++++---------
 hw/ppc/e500.c     |    3 +-
 hw/ppce500_pci.c  |    9 +++-
 hw/rtl8139.c      |   78 +++++++++++++++------------------
 hw/serial.c       |   31 ++++++++-----
 hw/spapr_pci.c    |   44 +------------------
 hw/spapr_pci.h    |    2 +-
 hw/virtio-pci.c   |  126 ++++++++++++++++++++--------------------------------
 hw/vmport.c       |   21 +++++----
 hw/xen_platform.c |   48 ++++++++++++++++----
 16 files changed, 362 insertions(+), 285 deletions(-)