Skip to content

RFC softmmu: Restrict CPU I/O instructions

Philippe Mathieu-Daudé qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8softmmu/physmem: Rename io_mem_unassigned -> unassigned_mrsoftmmu/physmem.c+6 -60 replies
2/8exec: Extract CPU I/O instructions to "cpu-io.h"hw/i386/xen/xen-hvm.c include/exec/cpu-io.h include/exec/ioport.h +6 more+125 -700 replies
3/8target: Introduce TARGET_HAS_IOPORTdefault-configs/targets/avr-softmmu.mak default-configs/targets/i386-softmmu.mak default-configs/targets/x86_64-softmmu.mak+3 -00 replies
4/8qtest/fuzz: Restrict CPU I/O instructionstests/qtest/fuzz/generic_fuzz.c tests/qtest/fuzz/qtest_wrappers.c+14 -64 replies
5/8qtest/libqos: Restrict CPU I/O instructionstests/qtest/libqos/fw_cfg.c tests/qtest/libqos/fw_cfg.h+5 -06 replies
6/8qtest: Restrict CPU I/O instructionssoftmmu/qtest.c+8 -20 replies
7/8monitor: Restrict CPU I/O instructionshmp-commands.hx monitor/misc.c+6 -00 replies
8/8softmmu: Restrict CPU I/O instructionssoftmmu/meson.build+1 -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 0/8] softmmu: Restrict CPU I/O instructions

An attempt to restrict CPU I/O instructions to targets where it makes sense. If it does, I'll send the next series which restrict the I/O address space to X86/AVR.

Based-on: <[email protected]>

Philippe Mathieu-Daudé (8):
softmmu/physmem: Rename io_mem_unassigned -> unassigned_mr
exec: Extract CPU I/O instructions to "cpu-io.h"
target: Introduce TARGET_HAS_IOPORT
qtest/fuzz: Restrict CPU I/O instructions qtest/libqos: Restrict CPU I/O instructions
qtest: Restrict CPU I/O instructions
monitor: Restrict CPU I/O instructions
softmmu: Restrict CPU I/O instructions

 default-configs/targets/avr-softmmu.mak    |  1 +
 default-configs/targets/i386-softmmu.mak   |  1 +
 default-configs/targets/x86_64-softmmu.mak |  1 +
 include/exec/cpu-io.h                      | 30 ++++++++
 include/exec/ioport.h                      |  7 --
 tests/qtest/libqos/fw_cfg.h                |  3 +
 hw/i386/xen/xen-hvm.c                      |  1 +
 monitor/misc.c                             |  6 +-
 softmmu/cpu-io.c                           | 88 ++++++++++++++++++++++
 softmmu/ioport.c                           | 60 ---------------
 softmmu/physmem.c                          | 12 +--
 softmmu/qtest.c                            | 11 ++-
 tests/qtest/fuzz/generic_fuzz.c            | 16 ++--
 tests/qtest/fuzz/qtest_wrappers.c          |  7 +-
 tests/qtest/libqos/fw_cfg.c                |  2 +
 hmp-commands.hx                            |  2 +
 softmmu/meson.build                        |  3 +-
 17 files changed, 167 insertions(+), 84 deletions(-)
 create mode 100644 include/exec/cpu-io.h
 create mode 100644 softmmu/cpu-io.c
Signature · 1 line
2.26.2