Skip to content

Type-safe ioport callbacks

Avi Kivity kvm qemu-devel 3 versions – Applied

Status from this message: Applied all. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 21 repliesSuperseded

Changes in v3 from the cover letter

- define a common IORange that can also be used for mmio
- move start/length into IORange
- make access width a parameter of the access functions instead of having a callback per access size

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2Type-safe ioport callbacksioport.c ioport.h iorange.h+96 -00 replies
2/2piix4 acpi: convert io BAR to type-safe ioport callbackshw/acpi_piix4.c+22 -330 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAnthony Liguori
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Type-safe ioport callbacks

A not-so-recent qemu -> qemu-kvm merge broke cpu hotplug without the compiler complaining because of the type-unsafeness of the ioport callbacks. This patchset adds a type-safe variant of ioport callbacks and coverts a sample ioport. Converting the other 300-odd registrations is left as an excercise to the community.

v3:
- define a common IORange that can also be used for mmio
- move start/length into IORange
- make access width a parameter of the access functions instead of having a callback per access size

v2:
- const correctness
- avoid return void

Avi Kivity (2):
Type-safe ioport callbacks
piix4 acpi: convert io BAR to type-safe ioport callbacks

 hw/acpi_piix4.c |   55 +++++++++++++++++++----------------------------
 ioport.c        |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ioport.h        |    2 +
 iorange.h       |   30 +++++++++++++++++++++++++
 4 files changed, 118 insertions(+), 33 deletions(-)
 create mode 100644 iorange.h
Signature · 1 line
1.7.3.1