exec: Restrict various system emulation specific headers (to sysemu)
Subsystems (8)
cover exec: Restrict various system emulation specific headers (to sysemu)
Hi,
This series restricts various system emulation specific headers by moving them under sysemu/ and adding #error if included from user emulation.
We could avoid the sysemu/ rename if too much churn, but enforcing error of headers that must not be included in user emulation allows further cleanups (to be sent later).
I had to split the ioport.c file to cpu-io (generic to any target having access to I/O bus, but I haven't checked the TCG implementation details for user emulation) VS ioport (system specific, access to hardware).
Many files are changed, but this is mostly one-line mechanical updates of old path to new path using sed.
Regards,
Phil.
Philippe Mathieu-Daudé (11):
NOTFORMERGE target/arm: Restrict KVM files to softmmu
exec: Restrict hwaddr.h to sysemu/
exec: Restrict cputlb.h to sysemu/
exec: Restrict memory.h to sysemu/
exec: Restrict memory-internal.h to sysemu/
exec: Restrict address-spaces.h to sysemu/
exec: Extract CPU I/O instructions to "cpu-io.h"
exec: Restrict ioport.h to sysemu/
exec: Restrict ram_addr.h to sysemu/
exec: Restrict ramblock.h to sysemu/
exec: Restrict confidential-guest-support.h to sysemu/
docs/devel/memory.rst | 2 +-
hw/arm/strongarm.h | 2 +-
hw/audio/lm4549.h | 2 +-
hw/display/framebuffer.h | 2 +-
hw/display/vga_int.h | 4 +-
hw/net/can/can_sja1000.h | 2 +-
hw/net/can/ctucan_core.h | 2 +-
hw/net/i82596.h | 4 +-
hw/net/net_tx_pkt.h | 2 +-
hw/net/pcnet.h | 2 +-
hw/ppc/mac.h | 2 +-
hw/s390x/ipl.h | 2 +-
hw/tpm/tpm_ppi.h | 2 +-
hw/usb/hcd-uhci.h | 2 +-
hw/vfio/pci.h | 2 +-
include/disas/disas.h | 4 +-
include/exec/cpu-all.h | 6 +-
include/exec/cpu-common.h | 2 +-
include/exec/cpu-defs.h | 2 +-
include/exec/cpu-io.h | 30 +++++++
include/exec/{ => sysemu}/address-spaces.h | 14 +--
include/exec/{ => sysemu}/cputlb.h | 11 ++-
include/exec/{ => sysemu}/hwaddr.h | 7 +-
include/exec/{ => sysemu}/memory-internal.h | 7 +-
include/exec/{ => sysemu}/memory.h | 8 +-
include/hw/acpi/acpi.h | 2 +-
include/hw/acpi/tco.h | 2 +-
include/hw/arm/fsl-imx25.h | 2 +-
include/hw/arm/fsl-imx31.h | 2 +-
include/hw/arm/fsl-imx6.h | 2 +-
include/hw/arm/fsl-imx6ul.h | 2 +-
include/hw/arm/omap.h | 2 +-
include/hw/arm/pxa.h | 2 +-
include/hw/arm/sharpsl.h | 2 +-
include/hw/arm/soc_dma.h | 2 +-
include/hw/arm/sysbus-fdt.h | 2 +-
include/hw/arm/virt.h | 2 +-
include/hw/block/block.h | 2 +-
include/hw/block/fdc.h | 2 +-
include/hw/block/flash.h | 2 +-
include/hw/boards.h | 2 +-
include/hw/char/riscv_htif.h | 2 +-
include/hw/char/serial.h | 2 +-
include/hw/core/cpu.h | 4 +-
include/hw/cris/etraxfs_dma.h | 2 +-
include/hw/display/macfb.h | 2 +-
include/hw/display/vga.h | 2 +-
include/hw/dma/i8257.h | 2 +-
include/hw/gpio/npcm7xx_gpio.h | 2 +-
include/hw/i2c/npcm7xx_smbus.h | 2 +-
include/hw/i2c/pm_smbus.h | 2 +-
include/hw/i386/apic_internal.h | 2 +-
include/hw/i386/ioapic_internal.h | 2 +-
include/hw/i386/microvm.h | 2 +-
include/hw/i386/x86.h | 2 +-
include/hw/ide.h | 2 +-
include/hw/input/lasips2.h | 2 +-
include/hw/ipmi/ipmi.h | 2 +-
include/hw/isa/apm.h | 2 +-
include/hw/isa/isa.h | 4 +-
include/hw/loader-fit.h | 2 +-
include/hw/mem/npcm7xx_mc.h | 2 +-
include/hw/mem/pc-dimm.h | 2 +-
include/hw/mips/mips.h | 2 +-
include/hw/misc/allwinner-h3-dramc.h | 2 +-
include/hw/misc/auxbus.h | 2 +-
include/hw/misc/empty_slot.h | 2 +-
include/hw/misc/mac_via.h | 2 +-
include/hw/misc/mos6522.h | 2 +-
include/hw/misc/npcm7xx_clk.h | 2 +-
include/hw/misc/npcm7xx_gcr.h | 2 +-
include/hw/misc/npcm7xx_mft.h | 2 +-
include/hw/net/msf2-emac.h | 2 +-
include/hw/nubus/nubus.h | 2 +-
include/hw/nvram/fw_cfg.h | 2 +-
include/hw/nvram/npcm7xx_otp.h | 2 +-
include/hw/pci-host/gpex.h | 2 +-
include/hw/pci-host/pam.h | 2 +-
include/hw/pci-host/remote.h | 2 +-
include/hw/pci/pci.h | 2 +-
include/hw/pci/pcie_host.h | 2 +-
include/hw/pci/shpc.h | 2 +-
include/hw/ppc/mac_dbdma.h | 2 +-
include/hw/ppc/ppc4xx.h | 2 +-
include/hw/ppc/xics.h | 2 +-
include/hw/register.h | 2 +-
include/hw/remote/memory.h | 2 +-
include/hw/remote/mpqemu-link.h | 2 +-
include/hw/remote/proxy-memory-listener.h | 2 +-
include/hw/rtc/m48t59.h | 2 +-
include/hw/rtc/sun4v-rtc.h | 2 +-
include/hw/sh4/sh_intc.h | 2 +-
include/hw/sysbus.h | 2 +-
include/hw/timer/npcm7xx_timer.h | 2 +-
include/hw/timer/tmu012.h | 2 +-
include/hw/tricore/triboard.h | 2 +-
include/hw/tricore/tricore.h | 2 +-
include/hw/usb.h | 2 +-
include/hw/vfio/vfio-common.h | 2 +-
include/hw/virtio/vhost-backend.h | 2 +-
include/hw/virtio/vhost.h | 2 +-
include/hw/virtio/virtio-access.h | 2 +-
include/hw/virtio/virtio.h | 2 +-
include/hw/xtensa/mx_pic.h | 2 +-
include/monitor/monitor.h | 2 +-
include/qemu/accel.h | 4 +-
include/qemu/iova-tree.h | 4 +-
include/qemu/userfaultfd.h | 2 +-
.../confidential-guest-support.h | 6 +-
include/sysemu/dma.h | 4 +-
include/sysemu/hostmem.h | 2 +-
include/{exec => sysemu}/ioport.h | 19 ++--
include/sysemu/kvm_int.h | 2 +-
include/sysemu/memory_mapping.h | 2 +-
include/{exec => sysemu}/ram_addr.h | 13 +--
include/{exec => sysemu}/ramblock.h | 13 +--
include/sysemu/vhost-user-backend.h | 2 +-
target/arm/kvm_arm.h | 2 +-
target/i386/hvf/vmx.h | 2 +-
accel/kvm/kvm-all.c | 4 +-
accel/tcg/cputlb.c | 8 +-
accel/tcg/translate-all.c | 8 +-
backends/confidential-guest-support.c | 2 +-
backends/tpm/tpm_util.c | 2 +-
cpu.c | 2 +-
dump/dump.c | 2 +-
dump/win_dump.c | 2 +-
hw/arm/collie.c | 2 +-
hw/arm/exynos4_boards.c | 2 +-
hw/arm/fsl-imx31.c | 2 +-
hw/arm/gumstix.c | 2 +-
hw/arm/integratorcp.c | 2 +-
hw/arm/kzm.c | 2 +-
hw/arm/mainstone.c | 2 +-
hw/arm/microbit.c | 2 +-
hw/arm/mps2-tz.c | 2 +-
hw/arm/mps2.c | 2 +-
hw/arm/msf2-soc.c | 2 +-
hw/arm/msf2-som.c | 2 +-
hw/arm/musca.c | 2 +-
hw/arm/omap1.c | 2 +-
hw/arm/omap2.c | 2 +-
hw/arm/omap_sx1.c | 2 +-
hw/arm/orangepi.c | 2 +-
hw/arm/sbsa-ref.c | 2 +-
hw/arm/spitz.c | 2 +-
hw/arm/stellaris.c | 2 +-
hw/arm/stm32f205_soc.c | 2 +-
hw/arm/stm32f405_soc.c | 2 +-
hw/arm/tosa.c | 2 +-
hw/arm/z2.c | 2 +-
hw/avr/atmega.c | 4 +-
hw/block/nvme.c | 2 +-
hw/block/onenand.c | 2 +-
hw/char/goldfish_tty.c | 2 +-
hw/char/omap_uart.c | 2 +-
hw/core/loader-fit.c | 2 +-
hw/core/loader.c | 2 +-
hw/core/machine.c | 2 +-
hw/core/null-machine.c | 2 +-
hw/core/sysbus.c | 2 +-
hw/display/edid-region.c | 2 +-
hw/display/tc6393xb.c | 2 +-
hw/dma/etraxfs_dma.c | 2 +-
hw/dma/rc4030.c | 2 +-
hw/hyperv/hyperv.c | 2 +-
hw/i386/acpi-common.c | 2 +-
hw/i386/acpi-microvm.c | 2 +-
hw/i386/pc.c | 2 +-
hw/i386/pc_piix.c | 2 +-
hw/i386/xen/xen-hvm.c | 1 +
hw/input/lasips2.c | 4 +-
hw/intc/mips_gic.c | 2 +-
hw/intc/ompic.c | 2 +-
hw/m68k/next-cube.c | 2 +-
hw/microblaze/petalogix_ml605_mmu.c | 2 +-
hw/microblaze/petalogix_s3adsp1800_mmu.c | 2 +-
hw/microblaze/xlnx-zynqmp-pmu.c | 2 +-
hw/misc/allwinner-h3-dramc.c | 2 +-
hw/misc/omap_gpmc.c | 4 +-
hw/net/ne2000.c | 2 +-
hw/nios2/10m50_devboard.c | 4 +-
hw/nios2/generic_nommu.c | 4 +-
hw/pci-bridge/pci_bridge_dev.c | 2 +-
hw/pci-host/mv64361.c | 2 +-
hw/pci-host/remote.c | 2 +-
hw/ppc/pef.c | 2 +-
hw/ppc/pegasos2.c | 2 +-
hw/ppc/pnv_homer.c | 4 +-
hw/ppc/ppc405_uc.c | 2 +-
hw/ppc/ppc440_uc.c | 2 +-
hw/ppc/ppc4xx_devs.c | 2 +-
hw/ppc/prep_systemio.c | 2 +-
hw/ppc/rs6000_mc.c | 2 +-
hw/ppc/sam460ex.c | 2 +-
hw/ppc/spapr.c | 2 +-
hw/ppc/spapr_caps.c | 2 +-
hw/ppc/spapr_ovec.c | 2 +-
hw/ppc/spapr_pci.c | 2 +-
hw/remote/machine.c | 2 +-
hw/remote/memory.c | 2 +-
hw/remote/proxy-memory-listener.c | 4 +-
hw/riscv/shakti_c.c | 2 +-
hw/s390x/css.c | 2 +-
hw/s390x/pv.c | 2 +-
hw/s390x/s390-pci-inst.c | 2 +-
hw/s390x/s390-stattrib-kvm.c | 2 +-
hw/s390x/s390-stattrib.c | 2 +-
hw/s390x/s390-virtio-ccw.c | 2 +-
hw/sparc/sun4m_iommu.c | 2 +-
hw/sparc64/sun4u_iommu.c | 2 +-
hw/timer/hpet.c | 2 +-
hw/timer/sh_timer.c | 2 +-
hw/vfio/ap.c | 2 +-
hw/vfio/ccw.c | 2 +-
hw/vfio/common.c | 6 +-
hw/vfio/migration.c | 2 +-
hw/vfio/platform.c | 4 +-
hw/vfio/spapr.c | 2 +-
hw/virtio/virtio-balloon.c | 2 +-
hw/virtio/virtio-bus.c | 2 +-
hw/virtio/virtio-mem.c | 2 +-
hw/xtensa/sim.c | 2 +-
hw/xtensa/virt.c | 2 +-
hw/xtensa/xtensa_memory.c | 2 +-
hw/xtensa/xtfpga.c | 2 +-
migration/dirtyrate.c | 2 +-
migration/multifd.c | 2 +-
migration/postcopy-ram.c | 2 +-
migration/ram.c | 2 +-
migration/rdma.c | 2 +-
migration/savevm.c | 2 +-
monitor/misc.c | 4 +-
plugins/api.c | 2 +-
semihosting/arm-compat-semi.c | 2 +-
softmmu/cpu-io.c | 88 +++++++++++++++++++
softmmu/ioport.c | 66 +-------------
softmmu/memory.c | 6 +-
softmmu/memory_mapping.c | 4 +-
softmmu/physmem.c | 8 +-
softmmu/qtest.c | 5 +-
softmmu/vl.c | 2 +-
stubs/ram-block.c | 2 +-
target/arm/cpu.c | 2 +-
target/arm/cpu64.c | 2 +-
target/arm/kvm.c | 2 +-
target/arm/mte_helper.c | 2 +-
target/avr/helper.c | 2 +-
target/i386/cpu-sysemu.c | 2 +-
target/i386/cpu.c | 2 +-
target/i386/hax/hax-all.c | 2 +-
target/i386/hax/hax-mem.c | 2 +-
target/i386/nvmm/nvmm-all.c | 4 +-
target/i386/sev.c | 2 +-
target/i386/tcg/sysemu/misc_helper.c | 2 +-
target/i386/tcg/sysemu/tcg-cpu.c | 2 +-
target/i386/whpx/whpx-all.c | 4 +-
target/ppc/kvm.c | 2 +-
target/s390x/excp_helper.c | 2 +-
target/s390x/kvm.c | 2 +-
target/s390x/misc_helper.c | 2 +-
target/s390x/mmu_helper.c | 2 +-
target/s390x/sigp.c | 2 +-
target/xtensa/dbg_helper.c | 2 +-
tests/qtest/fuzz/generic_fuzz.c | 4 +-
tests/qtest/fuzz/qos_fuzz.c | 2 +-
tests/qtest/fuzz/qtest_wrappers.c | 3 +-
tests/qtest/microbit-test.c | 2 +-
ui/console.c | 2 +-
util/vfio-helpers.c | 2 +-
MAINTAINERS | 12 +--
scripts/analyze-inclusions | 2 +-
.../codeconverter/test_regexps.py | 4 +-
softmmu/meson.build | 3 +-
target/arm/meson.build | 4 +-
275 files changed, 491 insertions(+), 409 deletions(-)
create mode 100644 include/exec/cpu-io.h
rename include/exec/{ => sysemu}/address-spaces.h (80%)
rename include/exec/{ => sysemu}/cputlb.h (86%)
rename include/exec/{ => sysemu}/hwaddr.h (81%)
rename include/exec/{ => sysemu}/memory-internal.h (94%)
rename include/exec/{ => sysemu}/memory.h (99%)
rename include/{exec => sysemu}/confidential-guest-support.h (95%)
rename include/{exec => sysemu}/ioport.h (86%)
rename include/{exec => sysemu}/ram_addr.h (99%)
rename include/{exec => sysemu}/ramblock.h (92%)
create mode 100644 softmmu/cpu-io.cSignature · 1 line
2.26.3
PATCH 1/11 NOTFORMERGE target/arm: Restrict KVM files to softmmu
The following patches require the "arm cleanup experiment for kvm-only build" [*] series with split various user/sysemu and tcg/kvm code from the target/arm/ directory.
To be able to build the following patches waiting the series get merged, simply restrict the KVM files to the softmmu source set.
[*] https://lists.gnu.org/archive/html/qemu-devel/2021-04/msg02908.html
--- target/arm/cpu.c | 2 +- target/arm/cpu64.c | 2 +- target/arm/meson.build | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
target/arm/cpu.c +1 -1
@@ -35,10 +35,10 @@#if !defined(CONFIG_USER_ONLY )#include "hw/loader.h" #include "hw/boards.h" +#include "kvm_arm.h" #endif #include "sysemu/tcg.h" #include "sysemu/hw_accel.h" -#include "kvm_arm.h" #include "disas/capstone.h" #include "fpu/softfloat.h"
target/arm/cpu64.c +1 -1
@@ -27,9 +27,9 @@#include "qemu/module.h" #if !defined(CONFIG_USER_ONLY )#include "hw/loader.h" +#include "kvm_arm.h" #endif #include "sysemu/kvm.h" -#include "kvm_arm.h" #include "qapi/visitor.h" #include "hw/qdev-properties.h"
target/arm/meson.build +2 -2
@@ -35,8 +35,6 @@ )) arm_ss.add(zlib) -arm_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c', 'kvm64.c'), if_false: files('kvm-stub.c')) - arm_ss.add(when: 'TARGET_AARCH64', if_true: files( 'cpu64.c', 'gdbstub64.c',
@@ -49,6 +47,8 @@ arm_softmmu_ss = ss.source_set() +arm_softmmu_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c', 'kvm64.c'), if_false: files('kvm-stub.c')) + arm_softmmu_ss.add(when: 'TARGET_AARCH64', if_true: files( 'mte_helper.c', ))
Signature · 1 line
2.26.3
PATCH 2/11 exec: Restrict hwaddr.h to sysemu/
In reply to Philippe Mathieu-DaudéGuard declarations within hwaddr.h against inclusion from user-mode emulation.
To make it clearer this header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/hwaddr.h,exec/sysemu/hwaddr.h, $(git grep -l exec/hwaddr.h)
---
hw/audio/lm4549.h | 2 +-
hw/net/can/can_sja1000.h | 2 +-
hw/net/can/ctucan_core.h | 2 +-
hw/net/net_tx_pkt.h | 2 +-
include/disas/disas.h | 4 +++-
include/exec/cpu-all.h | 2 +-
include/exec/cpu-common.h | 2 +-
include/exec/cpu-defs.h | 2 +-
include/exec/memory.h | 2 +-
include/exec/{ => sysemu}/hwaddr.h | 7 +++++--
include/hw/arm/sharpsl.h | 2 +-
include/hw/arm/soc_dma.h | 2 +-
include/hw/arm/sysbus-fdt.h | 2 +-
include/hw/arm/virt.h | 2 +-
include/hw/block/block.h | 2 +-
include/hw/block/fdc.h | 2 +-
include/hw/block/flash.h | 2 +-
include/hw/core/cpu.h | 4 +++-
include/hw/cris/etraxfs_dma.h | 2 +-
include/hw/display/vga.h | 2 +-
include/hw/i386/microvm.h | 2 +-
include/hw/i386/x86.h | 2 +-
include/hw/input/lasips2.h | 2 +-
include/hw/loader-fit.h | 2 +-
include/hw/misc/allwinner-h3-dramc.h | 2 +-
include/hw/misc/empty_slot.h | 2 +-
include/hw/nvram/fw_cfg.h | 2 +-
include/hw/pci-host/gpex.h | 2 +-
include/hw/remote/memory.h | 2 +-
include/hw/remote/mpqemu-link.h | 2 +-
include/hw/rtc/m48t59.h | 2 +-
include/hw/rtc/sun4v-rtc.h | 2 +-
include/hw/timer/tmu012.h | 2 +-
include/hw/virtio/virtio-access.h | 2 +-
include/monitor/monitor.h | 2 +-
include/qemu/accel.h | 4 +++-
include/qemu/iova-tree.h | 2 +-
include/qemu/userfaultfd.h | 2 +-
dump/dump.c | 2 +-
dump/win_dump.c | 2 +-
hw/arm/sbsa-ref.c | 2 +-
hw/input/lasips2.c | 2 +-
hw/m68k/next-cube.c | 2 +-
hw/ppc/pnv_homer.c | 2 +-
tests/qtest/microbit-test.c | 2 +-
MAINTAINERS | 1 +
scripts/codeconverter/codeconverter/test_regexps.py | 4 ++--
47 files changed, 58 insertions(+), 48 deletions(-)
rename include/exec/{ => sysemu}/hwaddr.h (81%)hw/audio/lm4549.h +1 -1
@@ -13,7 +13,7 @@#define HW_LM4549_H #include "audio/audio.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" typedef void (*lm4549_callback )(void *opaque);
hw/net/can/can_sja1000.h +1 -1
@@ -27,7 +27,7 @@#ifndef HW_CAN_SJA1000_H #define HW_CAN_SJA1000_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "net/can_emu.h" #define CAN_SJA_MEM_SIZE 128
hw/net/can/ctucan_core.h +1 -1
@@ -28,7 +28,7 @@#ifndef HW_CAN_CTUCAN_CORE_H #define HW_CAN_CTUCAN_CORE_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "net/can_emu.h" #ifndef HOST_WORDS_BIGENDIAN
hw/net/net_tx_pkt.h +1 -1
@@ -19,7 +19,7 @@#define NET_TX_PKT_H #include "net/eth.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* define to enable packet dump functions */ /*#define NET_TX_PKT_DEBUG*/
include/disas/disas.h +3 -1
@@ -1,7 +1,9 @@#ifndef QEMU_DISAS_H #define QEMU_DISAS_H -#include "exec/hwaddr.h" +#ifndef CONFIG_USER_ONLY +#include "exec/sysemu/hwaddr.h" +#endif #ifdef NEED_CPU_H #include "cpu.h"
include/exec/cpu-all.h +1 -1
@@ -175,7 +175,7 @@ extern unsigned long reserved_va;#else -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define SUFFIX #define ARG1 as
include/exec/cpu-common.h +1 -1
@@ -4,7 +4,7 @@/* CPU interfaces that are target independent. */ #ifndef CONFIG_USER_ONLY -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #endif /* The CPU list lock nests outside page_(un)lock or mmap_(un)lock */
include/exec/cpu-defs.h +1 -1
@@ -26,7 +26,7 @@#include "qemu/host-utils.h" #include "qemu/thread.h" #ifndef CONFIG_USER_ONLY -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #endif #include "exec/memattrs.h" #include "hw/core/cpu.h"
include/exec/memory.h +1 -1
@@ -17,7 +17,7 @@#ifndef CONFIG_USER_ONLY #include "exec/cpu-common.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "exec/memattrs.h" #include "exec/memop.h" #include "exec/ramlist.h"
include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +5 -2
@@ -1,8 +1,9 @@/* Define hwaddr if it exists. */ -#ifndef HWADDR_H -#define HWADDR_H +#ifndef EXEC_SYSEMU_HWADDR_H +#define EXEC_SYSEMU_HWADDR_H +#ifndef CONFIG_USER_ONLY #define HWADDR_BITS 64/* hwaddr is the type of a physical address (its size can
@@ -23,4 +24,6 @@ typedef struct MemMapEntry {hwaddr size; } MemMapEntry; +#endif /* !CONFIG_USER_ONLY */ +#endif
include/hw/arm/sharpsl.h +1 -1
@@ -7,7 +7,7 @@#ifndef QEMU_SHARPSL_H #define QEMU_SHARPSL_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* zaurus.c */
include/hw/arm/soc_dma.h +1 -1
@@ -21,7 +21,7 @@#ifndef HW_SOC_DMA_H #define HW_SOC_DMA_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" struct soc_dma_s ;struct soc_dma_ch_s ;
include/hw/arm/sysbus-fdt.h +1 -1
@@ -24,7 +24,7 @@#ifndef HW_ARM_SYSBUS_FDT_H #define HW_ARM_SYSBUS_FDT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /** * platform_bus_add_all_fdt_nodes - create all the platform bus nodes
include/hw/arm/virt.h +1 -1
@@ -30,7 +30,7 @@#ifndef QEMU_ARM_VIRT_H #define QEMU_ARM_VIRT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qemu/notify.h" #include "hw/boards.h" #include "hw/arm/boot.h"
include/hw/block/block.h +1 -1
@@ -11,7 +11,7 @@#ifndef HW_BLOCK_H #define HW_BLOCK_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qapi/qapi-types-block-core.h" #include "hw/qdev-properties-system.h"
include/hw/block/fdc.h +1 -1
@@ -1,7 +1,7 @@#ifndef HW_FDC_H #define HW_FDC_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qapi/qapi-types-block.h" /* fdc.c */
include/hw/block/flash.h +1 -1
@@ -3,7 +3,7 @@/* NOR flash devices */ -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qom/object.h" /* pflash_cfi01.c */
include/hw/core/cpu.h +3 -1
@@ -22,7 +22,9 @@#include "hw/qdev-core.h" #include "disas/dis-asm.h" -#include "exec/hwaddr.h" +#if !defined(CONFIG_USER_ONLY ) +#include "exec/sysemu/hwaddr.h" +#endif #include "exec/memattrs.h" #include "qapi/qapi-types-run-state.h" #include "qemu/bitmap.h"
include/hw/cris/etraxfs_dma.h +1 -1
@@ -1,7 +1,7 @@#ifndef HW_ETRAXFS_DMA_H #define HW_ETRAXFS_DMA_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" struct dma_context_metadata {/* data descriptor md */
include/hw/display/vga.h +1 -1
@@ -9,7 +9,7 @@#ifndef QEMU_HW_DISPLAY_VGA_H #define QEMU_HW_DISPLAY_VGA_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* * modules can reference this symbol to avoid being loaded
include/hw/i386/microvm.h +1 -1
@@ -19,7 +19,7 @@#define HW_I386_MICROVM_H #include "qemu-common.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qemu/notify.h" #include "hw/boards.h"
include/hw/i386/x86.h +1 -1
@@ -18,7 +18,7 @@#define HW_I386_X86_H #include "qemu-common.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qemu/notify.h" #include "hw/i386/topology.h"
include/hw/input/lasips2.h +1 -1
@@ -7,7 +7,7 @@#ifndef HW_INPUT_LASIPS2_H #define HW_INPUT_LASIPS2_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define TYPE_LASIPS2 "lasips2"
include/hw/loader-fit.h +1 -1
@@ -20,7 +20,7 @@ #ifndef HW_LOADER_FIT_H #define HW_LOADER_FIT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" struct fit_loader_match { const char *compatible;
include/hw/misc/allwinner-h3-dramc.h +1 -1
@@ -22,7 +22,7 @@#include "qom/object.h" #include "hw/sysbus.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /** * Constants
include/hw/misc/empty_slot.h +1 -1
@@ -12,7 +12,7 @@#ifndef HW_EMPTY_SLOT_H #define HW_EMPTY_SLOT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" void empty_slot_init (const char *name,hwaddr addr,uint64_t slot_size);
include/hw/nvram/fw_cfg.h +1 -1
@@ -1,7 +1,7 @@#ifndef FW_CFG_H #define FW_CFG_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "standard-headers/linux/qemu_fw_cfg.h" #include "hw/sysbus.h" #include "sysemu/dma.h"
include/hw/pci-host/gpex.h +1 -1
@@ -20,7 +20,7 @@#ifndef HW_GPEX_H #define HW_GPEX_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "hw/sysbus.h" #include "hw/pci/pci.h" #include "hw/pci/pcie_host.h"
include/hw/remote/memory.h +1 -1
@@ -11,7 +11,7 @@#ifndef REMOTE_MEMORY_H #define REMOTE_MEMORY_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "hw/remote/mpqemu-link.h" void remote_sysmem_reconfig (MPQemuMsg *msg,Error **errp);
include/hw/remote/mpqemu-link.h +1 -1
@@ -14,7 +14,7 @@#include "qom/object.h" #include "qemu/thread.h" #include "io/channel.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "io/channel-socket.h" #include "hw/remote/proxy.h"
include/hw/rtc/m48t59.h +1 -1
@@ -26,7 +26,7 @@#ifndef HW_RTC_M48T59_H #define HW_RTC_M48T59_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qom/object.h" #define TYPE_NVRAM "nvram"
include/hw/rtc/sun4v-rtc.h +1 -1
@@ -12,7 +12,7 @@#ifndef HW_RTC_SUN4V #define HW_RTC_SUN4V -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" void sun4v_rtc_init (hwaddr addr);
include/hw/timer/tmu012.h +1 -1
@@ -9,7 +9,7 @@#ifndef HW_TIMER_TMU012_H #define HW_TIMER_TMU012_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define TMU012_FEAT_TOCR (1 << 0)#define TMU012_FEAT_3CHAN (1 << 1)
include/hw/virtio/virtio-access.h +1 -1
@@ -16,7 +16,7 @@#ifndef QEMU_VIRTIO_ACCESS_H #define QEMU_VIRTIO_ACCESS_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "hw/virtio/virtio.h" #include "hw/virtio/virtio-bus.h"
include/monitor/monitor.h +1 -1
@@ -4,7 +4,7 @@#include "block/block.h" #include "qapi/qapi-types-misc.h" #include "qemu/readline.h" -#include "include/exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" typedef struct MonitorHMP MonitorHMP ;typedef struct MonitorOptions MonitorOptions ;
include/qemu/accel.h +3 -1
@@ -24,7 +24,9 @@#define QEMU_ACCEL_H #include "qom/object.h" -#include "exec/hwaddr.h" +#ifndef CONFIG_USER_ONLY +#include "exec/sysemu/hwaddr.h" +#endif typedef struct AccelState { /*< private >*/
include/qemu/iova-tree.h +1 -1
@@ -24,7 +24,7 @@*/ #include "exec/memory.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define IOVA_OK (0)#define IOVA_ERR_INVALID (-1)/* Invalid parameters */
include/qemu/userfaultfd.h +1 -1
@@ -14,7 +14,7 @@#define USERFAULTFD_H #include "qemu/osdep.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include <linux/userfaultfd.h> int uffd_query_features (uint64_t *features);
dump/dump.c +1 -1
@@ -15,7 +15,7 @@#include "qemu-common.h" #include "qemu/cutils.h" #include "elf.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "monitor/monitor.h" #include "sysemu/kvm.h" #include "sysemu/dump.h"
dump/win_dump.c +1 -1
@@ -12,7 +12,7 @@#include "qemu-common.h" #include "qemu/cutils.h" #include "elf.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "monitor/monitor.h" #include "sysemu/kvm.h" #include "sysemu/dump.h"
hw/arm/sbsa-ref.c +1 -1
@@ -27,7 +27,7 @@#include "sysemu/numa.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "kvm_arm.h" #include "hw/arm/boot.h" #include "hw/block/flash.h"
hw/input/lasips2.c +1 -1
@@ -26,7 +26,7 @@#include "hw/qdev-properties.h" #include "hw/input/ps2.h" #include "hw/input/lasips2.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "trace.h" #include "exec/address-spaces.h" #include "migration/vmstate.h"
hw/m68k/next-cube.c +1 -1
@@ -10,7 +10,7 @@*/ #include "qemu/osdep.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "sysemu/sysemu.h" #include "sysemu/qtest.h" #include "hw/irq.h"
hw/ppc/pnv_homer.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "qemu/log.h" #include "qapi/error.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "exec/memory.h" #include "sysemu/cpus.h" #include "hw/qdev-core.h"
tests/qtest/microbit-test.c +1 -1
@@ -15,7 +15,7 @@#include "qemu/osdep.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "libqos/libqtest.h" #include "hw/arm/nrf51.h"
MAINTAINERS +1 -0
@@ -129,6 +129,7 @@ F: include/exec/cpu*.h F: include/exec/exec-all.h F: include/exec/helper*.h F: include/exec/tb-hash.h +F: include/exec/sysemu/hwaddr.h F: include/sysemu/cpus.h F: include/sysemu/tcg.h F: include/hw/core/tcg-cpu-ops.h
scripts/codeconverter/codeconverter/test_regexps.py +2 -2
@@ -228,7 +228,7 @@ def test_initial_includes(): /* NOR flash devices */ #include "qom/object.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* pflash_cfi01.c */ '''
@@ -236,7 +236,7 @@ def test_initial_includes(): m = InitialIncludes.domatch(c) assert m print(repr(m.group(0))) - assert m.group(0).endswith('#include "exec/hwaddr.h"\n') + assert m.group(0).endswith('#include "exec/sysemu/hwaddr.h"\n') c = '''#ifndef QEMU_VIRTIO_9P_H #define QEMU_VIRTIO_9P_H
Signature · 1 line
2.26.3
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
Quoted 15 lines · Philippe Mathieu-Daudé
include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +3
-2@@ -1,8 +1,9 @@/* Define hwaddr if it exists. */ -#ifndef HWADDR_H -#define HWADDR_H +#ifndef EXEC_SYSEMU_HWADDR_H +#define EXEC_SYSEMU_HWADDR_H +#ifndef CONFIG_USER_ONLY #define HWADDR_BITS 64/* hwaddr is the type of a physical address (its size can
include/exec/sysemu/hwaddr.h typedef struct MemMapEntry { · line 29
Quoted 6 lines
include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +2
-0@@ -23,4 +24,6 @@ typedef struct MemMapEntry {hwaddr size; } MemMapEntry; +#endif /* !CONFIG_USER_ONLY */ +#endif
Why no #error on this one, unlike the next patch.
r~
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
Quoted 12 lines · Richard Henderson
Quoted 11 lines · Philippe Mathieu-Daudé
include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +3
-2@@ -1,8 +1,9 @@ /* Define hwaddr if it exists. */ -#ifndef HWADDR_H -#define HWADDR_H +#ifndef EXEC_SYSEMU_HWADDR_H +#define EXEC_SYSEMU_HWADDR_H +#ifndef CONFIG_USER_ONLY #define HWADDR_BITS 64 /* hwaddr is the type of a physical address (its size can
Quoted 8 lines
include/exec/sysemu/hwaddr.h typedef struct MemMapEntry { · line 28
Quoted 6 lines
include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +2
-0@@ -23,4 +24,6 @@ typedef struct MemMapEntry { hwaddr size; } MemMapEntry; +#endif /* !CONFIG_USER_ONLY */ + #endifWhy no #error on this one, unlike the next patch.
Because many files in user emulation include "exec/hwaddr.h" :(
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
Quoted 22 lines · Philippe Mathieu-Daudé
Quoted 12 lines · Richard Henderson
Quoted 11 lines · Philippe Mathieu-Daudé
include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +3
-2@@ -1,8 +1,9 @@ /* Define hwaddr if it exists. */ -#ifndef HWADDR_H -#define HWADDR_H +#ifndef EXEC_SYSEMU_HWADDR_H +#define EXEC_SYSEMU_HWADDR_H +#ifndef CONFIG_USER_ONLY #define HWADDR_BITS 64 /* hwaddr is the type of a physical address (its size canQuoted 8 lines
include/exec/sysemu/hwaddr.h typedef struct MemMapEntry { · line 28
Quoted 6 lines
include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +2
-0@@ -23,4 +24,6 @@ typedef struct MemMapEntry { hwaddr size; } MemMapEntry; +#endif /* !CONFIG_USER_ONLY */ + #endifWhy no #error on this one, unlike the next patch.
Quoted 1 line
Because many files in user emulation include "
exec/hwaddr.h" :(
See for example gdbstub/user.c:
int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len)
I suppose we should change the two hwaddr by vaddr:
/**
* vaddr:
* Type wide enough to contain any #target_ulong virtual address. */
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
In reply to Philippe Mathieu-DaudéQuoted 5 lines · Philippe Mathieu-Daudé
Guard declarations within
hwaddr.hagainst inclusion from user-mode emulation.To make it clearer this header is sysemu specific, move it to the sysemu/ directory.
Hi Philippe,
do we need include/exec/sysemu/... .h
as opposed to just use the existing
include/sysemu/
?
Thanks,
Claudio
Quoted 695 lines
Patch created mechanically using:
$ sed -i s,exec/hwaddr.h,exec/sysemu/hwaddr.h, $(git grep -l exec/hwaddr.h)Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/audio/lm4549.h | 2 +- hw/net/can/can_sja1000.h | 2 +- hw/net/can/ctucan_core.h | 2 +- hw/net/net_tx_pkt.h | 2 +- include/disas/disas.h | 4 +++- include/exec/cpu-all.h | 2 +- include/exec/cpu-common.h | 2 +- include/exec/cpu-defs.h | 2 +- include/exec/memory.h | 2 +- include/exec/{ => sysemu}/hwaddr.h | 7 +++++-- include/hw/arm/sharpsl.h | 2 +- include/hw/arm/soc_dma.h | 2 +- include/hw/arm/sysbus-fdt.h | 2 +- include/hw/arm/virt.h | 2 +- include/hw/block/block.h | 2 +- include/hw/block/fdc.h | 2 +- include/hw/block/flash.h | 2 +- include/hw/core/cpu.h | 4 +++- include/hw/cris/etraxfs_dma.h | 2 +- include/hw/display/vga.h | 2 +- include/hw/i386/microvm.h | 2 +- include/hw/i386/x86.h | 2 +- include/hw/input/lasips2.h | 2 +- include/hw/loader-fit.h | 2 +- include/hw/misc/allwinner-h3-dramc.h | 2 +- include/hw/misc/empty_slot.h | 2 +- include/hw/nvram/fw_cfg.h | 2 +- include/hw/pci-host/gpex.h | 2 +- include/hw/remote/memory.h | 2 +- include/hw/remote/mpqemu-link.h | 2 +- include/hw/rtc/m48t59.h | 2 +- include/hw/rtc/sun4v-rtc.h | 2 +- include/hw/timer/tmu012.h | 2 +- include/hw/virtio/virtio-access.h | 2 +- include/monitor/monitor.h | 2 +- include/qemu/accel.h | 4 +++- include/qemu/iova-tree.h | 2 +- include/qemu/userfaultfd.h | 2 +- dump/dump.c | 2 +- dump/win_dump.c | 2 +- hw/arm/sbsa-ref.c | 2 +- hw/input/lasips2.c | 2 +- hw/m68k/next-cube.c | 2 +- hw/ppc/pnv_homer.c | 2 +- tests/qtest/microbit-test.c | 2 +- MAINTAINERS | 1 + scripts/codeconverter/codeconverter/test_regexps.py | 4 ++-- 47 files changed, 58 insertions(+), 48 deletions(-) rename include/exec/{ => sysemu}/hwaddr.h (81%)hw/audio/lm4549.h +1
-1@@ -13,7 +13,7 @@#define HW_LM4549_H #include "audio/audio.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" typedef void (*lm4549_callback )(void *opaque);hw/net/can/can_sja1000.h +1
-1@@ -27,7 +27,7 @@#ifndef HW_CAN_SJA1000_H #define HW_CAN_SJA1000_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "net/can_emu.h" #define CAN_SJA_MEM_SIZE 128hw/net/can/ctucan_core.h +1
-1@@ -28,7 +28,7 @@#ifndef HW_CAN_CTUCAN_CORE_H #define HW_CAN_CTUCAN_CORE_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "net/can_emu.h" #ifndef HOST_WORDS_BIGENDIAN hw/net/net_tx_pkt.h +1
-1@@ -19,7 +19,7 @@#define NET_TX_PKT_H #include "net/eth.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* define to enable packet dump functions */ /*#define NET_TX_PKT_DEBUG*/ include/disas/disas.h +3
-1@@ -1,7 +1,9 @@#ifndef QEMU_DISAS_H #define QEMU_DISAS_H -#include "exec/hwaddr.h" +#ifndef CONFIG_USER_ONLY +#include "exec/sysemu/hwaddr.h" +#endif #ifdef NEED_CPU_H #include "cpu.h" include/exec/cpu-all.h +1
-1@@ -175,7 +175,7 @@ extern unsigned long reserved_va;#else -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define SUFFIX #define ARG1 asinclude/exec/cpu-common.h +1
-1@@ -4,7 +4,7 @@/* CPU interfaces that are target independent. */ #ifndef CONFIG_USER_ONLY -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #endif /* The CPU list lock nests outside page_(un)lock or mmap_(un)lock */ include/exec/cpu-defs.h +1
-1@@ -26,7 +26,7 @@#include "qemu/host-utils.h" #include "qemu/thread.h" #ifndef CONFIG_USER_ONLY -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #endif #include "exec/memattrs.h" #include "hw/core/cpu.h" include/exec/memory.h +1
-1@@ -17,7 +17,7 @@#ifndef CONFIG_USER_ONLY #include "exec/cpu-common.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "exec/memattrs.h" #include "exec/memop.h" #include "exec/ramlist.h" include/exec/sysemu/hwaddr.h renamed from include/exec/hwaddr.h +5
-2@@ -1,8 +1,9 @@/* Define hwaddr if it exists. */ -#ifndef HWADDR_H -#define HWADDR_H +#ifndef EXEC_SYSEMU_HWADDR_H +#define EXEC_SYSEMU_HWADDR_H +#ifndef CONFIG_USER_ONLY #define HWADDR_BITS 64/* hwaddr is the type of a physical address (its size can @@ -23,4 +24,6 @@ typedef struct MemMapEntry {hwaddr size; } MemMapEntry; +#endif /* !CONFIG_USER_ONLY */ +#endif include/hw/arm/sharpsl.h +1
-1@@ -7,7 +7,7 @@#ifndef QEMU_SHARPSL_H #define QEMU_SHARPSL_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* zaurus.c */ include/hw/arm/soc_dma.h +1
-1@@ -21,7 +21,7 @@#ifndef HW_SOC_DMA_H #define HW_SOC_DMA_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" struct soc_dma_s ;struct soc_dma_ch_s ;include/hw/arm/sysbus-fdt.h +1
-1@@ -24,7 +24,7 @@#ifndef HW_ARM_SYSBUS_FDT_H #define HW_ARM_SYSBUS_FDT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /** * platform_bus_add_all_fdt_nodes - create all the platform bus nodes include/hw/arm/virt.h +1
-1@@ -30,7 +30,7 @@#ifndef QEMU_ARM_VIRT_H #define QEMU_ARM_VIRT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qemu/notify.h" #include "hw/boards.h" #include "hw/arm/boot.h" include/hw/block/block.h +1
-1@@ -11,7 +11,7 @@#ifndef HW_BLOCK_H #define HW_BLOCK_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qapi/qapi-types-block-core.h" #include "hw/qdev-properties-system.h" include/hw/block/fdc.h +1
-1@@ -1,7 +1,7 @@#ifndef HW_FDC_H #define HW_FDC_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qapi/qapi-types-block.h" /* fdc.c */ include/hw/block/flash.h +1
-1@@ -3,7 +3,7 @@/* NOR flash devices */ -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qom/object.h" /* pflash_cfi01.c */ include/hw/core/cpu.h +3
-1@@ -22,7 +22,9 @@#include "hw/qdev-core.h" #include "disas/dis-asm.h" -#include "exec/hwaddr.h" +#if !defined(CONFIG_USER_ONLY ) +#include "exec/sysemu/hwaddr.h" +#endif #include "exec/memattrs.h" #include "qapi/qapi-types-run-state.h" #include "qemu/bitmap.h" include/hw/cris/etraxfs_dma.h +1
-1@@ -1,7 +1,7 @@#ifndef HW_ETRAXFS_DMA_H #define HW_ETRAXFS_DMA_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" struct dma_context_metadata {/* data descriptor md */ include/hw/display/vga.h +1
-1@@ -9,7 +9,7 @@#ifndef QEMU_HW_DISPLAY_VGA_H #define QEMU_HW_DISPLAY_VGA_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* * modules can reference this symbol to avoid being loaded include/hw/i386/microvm.h +1
-1@@ -19,7 +19,7 @@#define HW_I386_MICROVM_H #include "qemu-common.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qemu/notify.h" #include "hw/boards.h" include/hw/i386/x86.h +1
-1@@ -18,7 +18,7 @@#define HW_I386_X86_H #include "qemu-common.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qemu/notify.h" #include "hw/i386/topology.h" include/hw/input/lasips2.h +1
-1@@ -7,7 +7,7 @@#ifndef HW_INPUT_LASIPS2_H #define HW_INPUT_LASIPS2_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define TYPE_LASIPS2 "lasips2"include/hw/loader-fit.h +1
-1@@ -20,7 +20,7 @@ #ifndef HW_LOADER_FIT_H #define HW_LOADER_FIT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" struct fit_loader_match { const char *compatible;include/hw/misc/allwinner-h3-dramc.h +1
-1@@ -22,7 +22,7 @@#include "qom/object.h" #include "hw/sysbus.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /** * Constants include/hw/misc/empty_slot.h +1
-1@@ -12,7 +12,7 @@#ifndef HW_EMPTY_SLOT_H #define HW_EMPTY_SLOT_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" void empty_slot_init (const char *name,hwaddr addr,uint64_t slot_size);include/hw/nvram/fw_cfg.h +1
-1@@ -1,7 +1,7 @@#ifndef FW_CFG_H #define FW_CFG_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "standard-headers/linux/qemu_fw_cfg.h" #include "hw/sysbus.h" #include "sysemu/dma.h" include/hw/pci-host/gpex.h +1
-1@@ -20,7 +20,7 @@#ifndef HW_GPEX_H #define HW_GPEX_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "hw/sysbus.h" #include "hw/pci/pci.h" #include "hw/pci/pcie_host.h" include/hw/remote/memory.h +1
-1@@ -11,7 +11,7 @@#ifndef REMOTE_MEMORY_H #define REMOTE_MEMORY_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "hw/remote/mpqemu-link.h" void remote_sysmem_reconfig (MPQemuMsg *msg,Error **errp);include/hw/remote/mpqemu-link.h +1
-1@@ -14,7 +14,7 @@#include "qom/object.h" #include "qemu/thread.h" #include "io/channel.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "io/channel-socket.h" #include "hw/remote/proxy.h" include/hw/rtc/m48t59.h +1
-1@@ -26,7 +26,7 @@#ifndef HW_RTC_M48T59_H #define HW_RTC_M48T59_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "qom/object.h" #define TYPE_NVRAM "nvram"include/hw/rtc/sun4v-rtc.h +1
-1@@ -12,7 +12,7 @@#ifndef HW_RTC_SUN4V #define HW_RTC_SUN4V -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" void sun4v_rtc_init (hwaddr addr);include/hw/timer/tmu012.h +1
-1@@ -9,7 +9,7 @@#ifndef HW_TIMER_TMU012_H #define HW_TIMER_TMU012_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define TMU012_FEAT_TOCR (1 << 0)#define TMU012_FEAT_3CHAN (1 << 1)include/hw/virtio/virtio-access.h +1
-1@@ -16,7 +16,7 @@#ifndef QEMU_VIRTIO_ACCESS_H #define QEMU_VIRTIO_ACCESS_H -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "hw/virtio/virtio.h" #include "hw/virtio/virtio-bus.h" include/monitor/monitor.h +1
-1@@ -4,7 +4,7 @@#include "block/block.h" #include "qapi/qapi-types-misc.h" #include "qemu/readline.h" -#include "include/exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" typedef struct MonitorHMP MonitorHMP ;typedef struct MonitorOptions MonitorOptions ;include/qemu/accel.h +3
-1@@ -24,7 +24,9 @@#define QEMU_ACCEL_H #include "qom/object.h" -#include "exec/hwaddr.h" +#ifndef CONFIG_USER_ONLY +#include "exec/sysemu/hwaddr.h" +#endif typedef struct AccelState { /*< private >*/include/qemu/iova-tree.h +1
-1@@ -24,7 +24,7 @@*/ #include "exec/memory.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #define IOVA_OK (0)#define IOVA_ERR_INVALID (-1)/* Invalid parameters */ include/qemu/userfaultfd.h +1
-1@@ -14,7 +14,7 @@#define USERFAULTFD_H #include "qemu/osdep.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include <linux/userfaultfd.h> int uffd_query_features (uint64_t *features);dump/dump.c +1
-1@@ -15,7 +15,7 @@#include "qemu-common.h" #include "qemu/cutils.h" #include "elf.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "monitor/monitor.h" #include "sysemu/kvm.h" #include "sysemu/dump.h" dump/win_dump.c +1
-1@@ -12,7 +12,7 @@#include "qemu-common.h" #include "qemu/cutils.h" #include "elf.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "monitor/monitor.h" #include "sysemu/kvm.h" #include "sysemu/dump.h" hw/arm/sbsa-ref.c +1
-1@@ -27,7 +27,7 @@#include "sysemu/numa.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "kvm_arm.h" #include "hw/arm/boot.h" #include "hw/block/flash.h" hw/input/lasips2.c +1
-1@@ -26,7 +26,7 @@#include "hw/qdev-properties.h" #include "hw/input/ps2.h" #include "hw/input/lasips2.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "trace.h" #include "exec/address-spaces.h" #include "migration/vmstate.h" hw/m68k/next-cube.c +1
-1@@ -10,7 +10,7 @@*/ #include "qemu/osdep.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "sysemu/sysemu.h" #include "sysemu/qtest.h" #include "hw/irq.h" hw/ppc/pnv_homer.c +1
-1@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "qemu/log.h" #include "qapi/error.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "exec/memory.h" #include "sysemu/cpus.h" #include "hw/qdev-core.h" tests/qtest/microbit-test.c +1
-1@@ -15,7 +15,7 @@#include "qemu/osdep.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" #include "libqos/libqtest.h" #include "hw/arm/nrf51.h" MAINTAINERS +1
-0@@ -129,6 +129,7 @@ F: include/exec/cpu*.h F: include/exec/exec-all.h F: include/exec/helper*.h F: include/exec/tb-hash.h +F: include/exec/sysemu/hwaddr.h F: include/sysemu/cpus.h F: include/sysemu/tcg.h F: include/hw/core/tcg-cpu-ops.hscripts/codeconverter/codeconverter/test_regexps.py +2
-2@@ -228,7 +228,7 @@ def test_initial_includes(): /* NOR flash devices */ #include "qom/object.h" -#include "exec/hwaddr.h" +#include "exec/sysemu/hwaddr.h" /* pflash_cfi01.c */ '''@@ -236,7 +236,7 @@ def test_initial_includes(): m = InitialIncludes.domatch(c) assert m print(repr(m.group(0))) - assert m.group(0).endswith('#include "exec/hwaddr.h"\n') + assert m.group(0).endswith('#include "exec/sysemu/hwaddr.h"\n') c = '''#ifndef QEMU_VIRTIO_9P_H #define QEMU_VIRTIO_9P_H
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
Quoted 9 lines · Claudio Fontana
Quoted 5 lines · Philippe Mathieu-Daudé
Guard declarations within
hwaddr.hagainst inclusion from user-mode emulation.To make it clearer this header is sysemu specific, move it to the sysemu/ directory.
Hi Philippe,
Quoted 7 lines
do we need
include/exec/sysemu/... .has opposed to just use the existing
include/sysemu/?
...and I would if anything go include/sysemu/exec/ not include/exec/sysemu ,
to highlight first that it is part of the sysemu build, when trying to reason about what gets built for sysemu vs anything else.
Ciao
C
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
Quoted 14 lines · Claudio Fontana
Quoted 13 lines · Claudio Fontana
Quoted 5 lines · Philippe Mathieu-Daudé
Guard declarations within
hwaddr.hagainst inclusion from user-mode emulation.To make it clearer this header is sysemu specific, move it to the sysemu/ directory.
Hi Philippe,
do we need
include/exec/sysemu/... .has opposed to just use the existing
Quoted 7 lines
Quoted 3 lines
include/sysemu/?
...and I would if anything go
include/sysemu/exec/notinclude/exec/sysemu,to highlight first that it is part of the sysemu build, when trying to reason about what gets built for sysemu vs anything else.
While refreshing this series I moved these files directly in include/sysemu/. Do you think the exec/ subdirectory {help|meaning}ful?
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
Quoted 17 lines · Philippe Mathieu-Daudé
Quoted 16 lines · Claudio Fontana
Quoted 15 lines · Claudio Fontana
Quoted 5 lines · Philippe Mathieu-Daudé
Guard declarations within
hwaddr.hagainst inclusion from user-mode emulation.To make it clearer this header is sysemu specific, move it to the sysemu/ directory.
Hi Philippe,
do we need
include/exec/sysemu/... .has opposed to just use the existing
include/sysemu/
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
?
...and I would if anything go
include/sysemu/exec/notinclude/exec/sysemu,to highlight first that it is part of the sysemu build, when trying to reason about what gets built for sysemu vs anything else.
While refreshing this series I moved these files directly in
include/sysemu/. Do you think the exec/ subdirectory {help|meaning}ful?
I don't think exec/ is particularly meaningful.
r~
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
In reply to Philippe Mathieu-DaudéQuoted 17 lines · Philippe Mathieu-Daudé
Quoted 16 lines · Claudio Fontana
Quoted 15 lines · Claudio Fontana
Quoted 5 lines · Philippe Mathieu-Daudé
Guard declarations within
hwaddr.hagainst inclusion from user-mode emulation.To make it clearer this header is sysemu specific, move it to the sysemu/ directory.
Hi Philippe,
do we need
include/exec/sysemu/... .has opposed to just use the existing
include/sysemu/
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
?
...and I would if anything go
include/sysemu/exec/notinclude/exec/sysemu,to highlight first that it is part of the sysemu build, when trying to reason about what gets built for sysemu vs anything else.
While refreshing this series I moved these files directly in
include/sysemu/. Do you think the exec/ subdirectory {help|meaning}ful?
Hi Philippe, not so much, I think include/sysemu/ is enough.
Ciao,
Claudio
Re: [PATCH 02/11] exec: Restrict hwaddr.h to sysemu/
In reply to Philippe Mathieu-DaudéQuoted 3 lines · Philippe Mathieu-Daudé
Guard declarations within
hwaddr.hagainst inclusion from user-mode emulation.
They're all safe, though; none of them are target-dependent.
I wonder if we should move MemMapEntry somewhere else -- it's used in less than 20 files and doesn't really warrant putting it in hwaddr.h.
-- PMM
PATCH 3/11 exec: Restrict cputlb.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the cputlb.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/cputlb.h,exec/sysemu/cputlb.h, $(git grep -l exec/cputlb.h)
Then the #ifdef'ry conditional on CONFIG_USER_ONLY has been replaced by an #error.
---
include/exec/{ => sysemu}/cputlb.h | 11 +++++++----
accel/tcg/cputlb.c | 2 +-
accel/tcg/translate-all.c | 6 +++---
MAINTAINERS | 1 +
4 files changed, 12 insertions(+), 8 deletions(-)
rename include/exec/{ => sysemu}/cputlb.h (86%)include/exec/sysemu/cputlb.h renamed from include/exec/cputlb.h +7 -4
@@ -17,15 +17,18 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef CPUTLB_H -#define CPUTLB_H +#ifndef EXEC_SYSEMU_CPUTLB_H +#define EXEC_SYSEMU_CPUTLB_H + +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif #include "exec/cpu-common.h" -#if !defined(CONFIG_USER_ONLY )/* cputlb.c */ void tlb_protect_code (ram_addr_t ram_addr);void tlb_unprotect_code (ram_addr_t ram_addr);void tlb_flush_counts (size_t *full,size_t *part,size_t *elide); -#endif +#endif
accel/tcg/cputlb.c +1 -1
@@ -23,7 +23,7 @@#include "exec/exec-all.h" #include "exec/memory.h" #include "exec/cpu_ldst.h" -#include "exec/cputlb.h" +#include "exec/sysemu/cputlb.h" #include "exec/tb-hash.h" #include "exec/memory-internal.h" #include "exec/ram_addr.h"
accel/tcg/translate-all.c +3 -3
@@ -42,11 +42,11 @@#include <libutil.h> #endif #endif -#else +#else /* !CONFIG_USER_ONLY */ +#include "exec/sysemu/cputlb.h" #include "exec/ram_addr.h" -#endif +#endif /* CONFIG_USER_ONLY */ -#include "exec/cputlb.h" #include "exec/tb-hash.h" #include "exec/translate-all.h" #include "qemu/bitmap.h"
MAINTAINERS +1 -0
@@ -131,6 +131,7 @@ F: include/exec/helper*.h F: include/exec/tb-hash.h F: include/exec/sysemu/hwaddr.h F: include/sysemu/cpus.h +F: include/exec/sysemu/cputlb.h F: include/sysemu/tcg.h F: include/hw/core/tcg-cpu-ops.h
Signature · 1 line
2.26.3
PATCH 4/11 exec: Restrict memory.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the memory.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/memory.h,exec/sysemu/memory.h, $(git grep -l exec/memory.h)
Then the #ifdef'ry conditional on CONFIG_USER_ONLY has been replaced by an #error.
---
docs/devel/memory.rst | 2 +-
hw/arm/strongarm.h | 2 +-
hw/display/framebuffer.h | 2 +-
hw/display/vga_int.h | 2 +-
hw/net/i82596.h | 2 +-
hw/net/pcnet.h | 2 +-
hw/ppc/mac.h | 2 +-
hw/usb/hcd-uhci.h | 2 +-
hw/vfio/pci.h | 2 +-
include/exec/address-spaces.h | 2 +-
include/exec/cpu-all.h | 4 +++-
include/exec/ioport.h | 2 +-
include/exec/{ => sysemu}/memory.h | 6 +++---
include/hw/acpi/acpi.h | 2 +-
include/hw/acpi/tco.h | 2 +-
include/hw/arm/fsl-imx25.h | 2 +-
include/hw/arm/fsl-imx31.h | 2 +-
include/hw/arm/fsl-imx6.h | 2 +-
include/hw/arm/fsl-imx6ul.h | 2 +-
include/hw/arm/omap.h | 2 +-
include/hw/arm/pxa.h | 2 +-
include/hw/boards.h | 2 +-
include/hw/char/riscv_htif.h | 2 +-
include/hw/char/serial.h | 2 +-
include/hw/display/macfb.h | 2 +-
include/hw/gpio/npcm7xx_gpio.h | 2 +-
include/hw/i2c/npcm7xx_smbus.h | 2 +-
include/hw/i2c/pm_smbus.h | 2 +-
include/hw/i386/apic_internal.h | 2 +-
include/hw/i386/ioapic_internal.h | 2 +-
include/hw/ide.h | 2 +-
include/hw/ipmi/ipmi.h | 2 +-
include/hw/isa/apm.h | 2 +-
include/hw/isa/isa.h | 2 +-
include/hw/mem/npcm7xx_mc.h | 2 +-
include/hw/mem/pc-dimm.h | 2 +-
include/hw/mips/mips.h | 2 +-
include/hw/misc/auxbus.h | 2 +-
include/hw/misc/mac_via.h | 2 +-
include/hw/misc/mos6522.h | 2 +-
include/hw/misc/npcm7xx_clk.h | 2 +-
include/hw/misc/npcm7xx_gcr.h | 2 +-
include/hw/misc/npcm7xx_mft.h | 2 +-
include/hw/net/msf2-emac.h | 2 +-
include/hw/nvram/npcm7xx_otp.h | 2 +-
include/hw/pci-host/pam.h | 2 +-
include/hw/pci-host/remote.h | 2 +-
include/hw/pci/pci.h | 2 +-
include/hw/pci/pcie_host.h | 2 +-
include/hw/pci/shpc.h | 2 +-
include/hw/ppc/mac_dbdma.h | 2 +-
include/hw/ppc/ppc4xx.h | 2 +-
include/hw/ppc/xics.h | 2 +-
include/hw/register.h | 2 +-
include/hw/remote/proxy-memory-listener.h | 2 +-
include/hw/sh4/sh_intc.h | 2 +-
include/hw/sysbus.h | 2 +-
include/hw/timer/npcm7xx_timer.h | 2 +-
include/hw/tricore/tricore.h | 2 +-
include/hw/usb.h | 2 +-
include/hw/vfio/vfio-common.h | 2 +-
include/hw/virtio/vhost-backend.h | 2 +-
include/hw/virtio/vhost.h | 2 +-
include/hw/virtio/virtio.h | 2 +-
include/hw/xtensa/mx_pic.h | 2 +-
include/qemu/iova-tree.h | 2 +-
include/sysemu/dma.h | 2 +-
include/sysemu/hostmem.h | 2 +-
include/sysemu/kvm_int.h | 2 +-
include/sysemu/memory_mapping.h | 2 +-
include/sysemu/vhost-user-backend.h | 2 +-
target/arm/kvm_arm.h | 2 +-
accel/kvm/kvm-all.c | 2 +-
accel/tcg/cputlb.c | 2 +-
backends/tpm/tpm_util.c | 2 +-
hw/avr/atmega.c | 2 +-
hw/block/nvme.c | 2 +-
hw/block/onenand.c | 2 +-
hw/core/loader-fit.c | 2 +-
hw/core/loader.c | 2 +-
hw/display/edid-region.c | 2 +-
hw/display/tc6393xb.c | 2 +-
hw/i386/acpi-common.c | 2 +-
hw/i386/acpi-microvm.c | 2 +-
hw/i386/pc.c | 2 +-
hw/i386/pc_piix.c | 2 +-
hw/intc/mips_gic.c | 2 +-
hw/intc/ompic.c | 2 +-
hw/misc/omap_gpmc.c | 2 +-
hw/net/ne2000.c | 2 +-
hw/nios2/10m50_devboard.c | 2 +-
hw/nios2/generic_nommu.c | 2 +-
hw/pci-bridge/pci_bridge_dev.c | 2 +-
hw/pci-host/remote.c | 2 +-
hw/ppc/pnv_homer.c | 2 +-
hw/ppc/ppc440_uc.c | 2 +-
hw/ppc/sam460ex.c | 2 +-
hw/remote/machine.c | 2 +-
hw/remote/proxy-memory-listener.c | 2 +-
hw/timer/sh_timer.c | 2 +-
hw/vfio/common.c | 2 +-
hw/vfio/platform.c | 2 +-
hw/xtensa/sim.c | 2 +-
hw/xtensa/virt.c | 2 +-
hw/xtensa/xtensa_memory.c | 2 +-
hw/xtensa/xtfpga.c | 2 +-
migration/rdma.c | 2 +-
migration/savevm.c | 2 +-
monitor/misc.c | 2 +-
softmmu/ioport.c | 2 +-
softmmu/memory.c | 2 +-
softmmu/memory_mapping.c | 2 +-
softmmu/physmem.c | 2 +-
softmmu/qtest.c | 2 +-
stubs/ram-block.c | 2 +-
target/s390x/misc_helper.c | 2 +-
tests/qtest/fuzz/generic_fuzz.c | 2 +-
tests/qtest/fuzz/qos_fuzz.c | 2 +-
ui/console.c | 2 +-
util/vfio-helpers.c | 2 +-
MAINTAINERS | 2 +-
scripts/analyze-inclusions | 2 +-
122 files changed, 126 insertions(+), 124 deletions(-)
rename include/exec/{ => sysemu}/memory.h (99%)docs/devel/memory.rst +1 -1
@@ -365,4 +365,4 @@ callbacks are called: API Reference ------------- -.. kernel-doc:: include/exec/memory.h +.. kernel-doc:: include/exec/sysemu/memory.h
hw/arm/strongarm.h +1 -1
@@ -1,7 +1,7 @@#ifndef STRONGARM_H #define STRONGARM_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "target/arm/cpu-qom.h" #define SA_CS0 0x00000000
hw/display/framebuffer.h +1 -1
@@ -1,7 +1,7 @@#ifndef QEMU_FRAMEBUFFER_H #define QEMU_FRAMEBUFFER_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" /* Framebuffer device helper routines. */
hw/display/vga_int.h +1 -1
@@ -26,7 +26,7 @@#define HW_VGA_INT_H #include "exec/ioport.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "ui/console.h" #include "hw/display/bochs-vbe.h"
hw/net/i82596.h +1 -1
@@ -3,7 +3,7 @@#define I82596_IOPORT_SIZE 0x20 -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" #define PORT_RESET 0x00/* reset 82596 */
hw/net/pcnet.h +1 -1
@@ -7,7 +7,7 @@#define PCNET_LOOPTEST_CRC 1#define PCNET_LOOPTEST_NOCRC 2 -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/irq.h" /* BUS CONFIGURATION REGISTERS */
hw/ppc/mac.h +1 -1
@@ -27,7 +27,7 @@#define PPC_MAC_H #include "qemu/units.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/boards.h" #include "hw/sysbus.h" #include "hw/input/adb.h"
hw/usb/hcd-uhci.h +1 -1
@@ -28,7 +28,7 @@#ifndef HW_USB_HCD_UHCI_H #define HW_USB_HCD_UHCI_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/timer.h" #include "hw/pci/pci.h" #include "hw/usb.h"
hw/vfio/pci.h +1 -1
@@ -12,7 +12,7 @@#ifndef HW_VFIO_VFIO_PCI_H #define HW_VFIO_VFIO_PCI_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/pci/pci.h" #include "hw/vfio/vfio-common.h" #include "qemu/event_notifier.h"
include/exec/address-spaces.h +1 -1
@@ -19,7 +19,7 @@* you're one of them. */ -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #ifndef CONFIG_USER_ONLY
include/exec/cpu-all.h +3 -1
@@ -20,7 +20,9 @@#define CPU_ALL_H #include "exec/cpu-common.h" -#include "exec/memory.h" +#if !defined(CONFIG_USER_ONLY ) +#include "exec/sysemu/memory.h" +#endif #include "qemu/thread.h" #include "hw/core/cpu.h" #include "qemu/rcu.h"
include/exec/ioport.h +1 -1
@@ -24,7 +24,7 @@#ifndef IOPORT_H #define IOPORT_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #define MAX_IOPORTS (64 * 1024)#define IOPORTS_MASK (MAX_IOPORTS - 1)
include/exec/sysemu/memory.h renamed from include/exec/memory.h +3 -3
@@ -14,7 +14,9 @@#ifndef MEMORY_H #define MEMORY_H -#ifndef CONFIG_USER_ONLY +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif #include "exec/cpu-common.h" #include "exec/sysemu/hwaddr.h"
@@ -2632,5 +2634,3 @@ bool ram_block_discard_is_disabled(void);bool ram_block_discard_is_required (void );#endif - -#endif
include/hw/acpi/acpi.h +1 -1
@@ -21,7 +21,7 @@*/ #include "qemu/notify.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/acpi/acpi_dev_interface.h" /*
include/hw/acpi/tco.h +1 -1
@@ -10,7 +10,7 @@#ifndef HW_ACPI_TCO_H #define HW_ACPI_TCO_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" /* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */ #define TCO_TICK_NSEC 600000000LL
include/hw/arm/fsl-imx25.h +1 -1
@@ -30,7 +30,7 @@#include "hw/sd/sdhci.h" #include "hw/usb/chipidea.h" #include "hw/watchdog/wdt_imx2.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "target/arm/cpu.h" #include "qom/object.h"
include/hw/arm/fsl-imx31.h +1 -1
@@ -26,7 +26,7 @@#include "hw/i2c/imx_i2c.h" #include "hw/gpio/imx_gpio.h" #include "hw/watchdog/wdt_imx2.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "target/arm/cpu.h" #include "qom/object.h"
include/hw/arm/fsl-imx6.h +1 -1
@@ -32,7 +32,7 @@#include "hw/net/imx_fec.h" #include "hw/usb/chipidea.h" #include "hw/usb/imx-usb-phy.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "cpu.h" #include "qom/object.h"
include/hw/arm/fsl-imx6ul.h +1 -1
@@ -36,7 +36,7 @@#include "hw/net/imx_fec.h" #include "hw/usb/chipidea.h" #include "hw/usb/imx-usb-phy.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "cpu.h" #include "qom/object.h"
include/hw/arm/omap.h +1 -1
@@ -20,7 +20,7 @@#ifndef HW_ARM_OMAP_H #define HW_ARM_OMAP_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/input/tsc2xxx.h" #include "target/arm/cpu-qom.h" #include "qemu/log.h"
include/hw/arm/pxa.h +1 -1
@@ -10,7 +10,7 @@#ifndef PXA_H #define PXA_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "target/arm/cpu-qom.h" #include "hw/pcmcia.h" #include "qom/object.h"
include/hw/boards.h +1 -1
@@ -3,7 +3,7 @@#ifndef HW_BOARDS_H #define HW_BOARDS_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "sysemu/hostmem.h" #include "sysemu/blockdev.h" #include "qemu/accel.h"
include/hw/char/riscv_htif.h +1 -1
@@ -22,7 +22,7 @@#include "chardev/char.h" #include "chardev/char-fe.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "target/riscv/cpu.h" #define TYPE_HTIF_UART "riscv.htif.uart"
include/hw/char/serial.h +1 -1
@@ -27,7 +27,7 @@#define HW_SERIAL_H #include "chardev/char-fe.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/fifo8.h" #include "chardev/char.h" #include "hw/sysbus.h"
include/hw/display/macfb.h +1 -1
@@ -13,7 +13,7 @@#ifndef MACFB_H #define MACFB_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "ui/console.h" #include "qom/object.h"
include/hw/gpio/npcm7xx_gpio.h +1 -1
@@ -15,7 +15,7 @@#ifndef NPCM7XX_GPIO_H #define NPCM7XX_GPIO_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" /* Number of pins managed by each controller. */
include/hw/i2c/npcm7xx_smbus.h +1 -1
@@ -16,7 +16,7 @@#ifndef NPCM7XX_SMBUS_H #define NPCM7XX_SMBUS_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/i2c/i2c.h" #include "hw/irq.h" #include "hw/sysbus.h"
include/hw/i2c/pm_smbus.h +1 -1
@@ -1,7 +1,7 @@#ifndef PM_SMBUS_H #define PM_SMBUS_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/i2c/smbus_master.h" #define PM_SMBUS_MAX_MSG_SIZE 32
include/hw/i386/apic_internal.h +1 -1
@@ -22,7 +22,7 @@#define QEMU_APIC_INTERNAL_H #include "cpu.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/timer.h" #include "target/i386/cpu-qom.h" #include "qom/object.h"
include/hw/i386/ioapic_internal.h +1 -1
@@ -22,7 +22,7 @@#ifndef QEMU_IOAPIC_INTERNAL_H #define QEMU_IOAPIC_INTERNAL_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" #include "qemu/notify.h" #include "qom/object.h"
include/hw/ide.h +1 -1
@@ -2,7 +2,7 @@#define HW_IDE_H #include "hw/isa/isa.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" /* ide-isa.c */ ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq,
include/hw/ipmi/ipmi.h +1 -1
@@ -25,7 +25,7 @@#ifndef HW_IPMI_H #define HW_IPMI_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/qdev-core.h" #include "qom/object.h"
include/hw/isa/apm.h +1 -1
@@ -1,7 +1,7 @@#ifndef APM_H #define APM_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #define APM_CNT_IOPORT 0xb2#define ACPI_PORT_SMI_CMD APM_CNT_IOPORT
include/hw/isa/isa.h +1 -1
@@ -3,7 +3,7 @@/* ISA bus */ -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/ioport.h" #include "hw/qdev-core.h" #include "qom/object.h"
include/hw/mem/npcm7xx_mc.h +1 -1
@@ -16,7 +16,7 @@#ifndef NPCM7XX_MC_H #define NPCM7XX_MC_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" /**
include/hw/mem/pc-dimm.h +1 -1
@@ -16,7 +16,7 @@#ifndef QEMU_PC_DIMM_H #define QEMU_PC_DIMM_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/qdev-core.h" #include "qom/object.h"
include/hw/mips/mips.h +1 -1
@@ -7,7 +7,7 @@/* Kernels can be configured with 64KB pages */ #define INITRD_PAGE_SIZE (64 * KiB) -#include "exec/memory.h" +#include "exec/sysemu/memory.h" /* gt64xxx.c */ PCIBus *gt64120_register (qemu_irq *pic);
include/hw/misc/auxbus.h +1 -1
@@ -25,7 +25,7 @@#ifndef HW_MISC_AUXBUS_H #define HW_MISC_AUXBUS_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/qdev-core.h" #include "qom/object.h"
include/hw/misc/mac_via.h +1 -1
@@ -9,7 +9,7 @@#ifndef HW_MISC_MAC_VIA_H #define HW_MISC_MAC_VIA_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" #include "hw/misc/mos6522.h" #include "qom/object.h"
include/hw/misc/mos6522.h +1 -1
@@ -27,7 +27,7 @@#ifndef MOS6522_H #define MOS6522_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" #include "hw/input/adb.h" #include "qom/object.h"
include/hw/misc/npcm7xx_clk.h +1 -1
@@ -16,7 +16,7 @@#ifndef NPCM7XX_CLK_H #define NPCM7XX_CLK_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/clock.h" #include "hw/sysbus.h"
include/hw/misc/npcm7xx_gcr.h +1 -1
@@ -16,7 +16,7 @@#ifndef NPCM7XX_GCR_H #define NPCM7XX_GCR_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" /*
include/hw/misc/npcm7xx_mft.h +1 -1
@@ -16,7 +16,7 @@#ifndef NPCM7XX_MFT_H #define NPCM7XX_MFT_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/clock.h" #include "hw/irq.h" #include "hw/sysbus.h"
include/hw/net/msf2-emac.h +1 -1
@@ -23,7 +23,7 @@*/ #include "hw/sysbus.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "net/net.h" #include "net/eth.h" #include "qom/object.h"
include/hw/nvram/npcm7xx_otp.h +1 -1
@@ -16,7 +16,7 @@#ifndef NPCM7XX_OTP_H #define NPCM7XX_OTP_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" /* Each OTP module holds 8192 bits of one-time programmable storage */
include/hw/pci-host/pam.h +1 -1
@@ -50,7 +50,7 @@* 0xf0000 - 0xfffff System BIOS Area Memory Segments */ -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #define SMRAM_C_BASE 0xa0000#define SMRAM_C_END 0xc0000
include/hw/pci-host/remote.h +1 -1
@@ -11,7 +11,7 @@#ifndef REMOTE_PCIHOST_H #define REMOTE_PCIHOST_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/pci/pcie_host.h" #define TYPE_REMOTE_PCIHOST "remote-pcihost"
include/hw/pci/pci.h +1 -1
@@ -1,7 +1,7 @@#ifndef QEMU_PCI_H #define QEMU_PCI_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "sysemu/dma.h" /* PCI includes legacy ISA access. */
include/hw/pci/pcie_host.h +1 -1
@@ -22,7 +22,7 @@#define PCIE_HOST_H #include "hw/pci/pci_host.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qom/object.h" #define TYPE_PCIE_HOST_BRIDGE "pcie-host-bridge"
include/hw/pci/shpc.h +1 -1
@@ -1,7 +1,7 @@#ifndef SHPC_H #define SHPC_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/hotplug.h" #include "hw/pci/pci.h" #include "migration/vmstate.h"
include/hw/ppc/mac_dbdma.h +1 -1
@@ -23,7 +23,7 @@#ifndef HW_MAC_DBDMA_H #define HW_MAC_DBDMA_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/iov.h" #include "sysemu/dma.h" #include "hw/sysbus.h"
include/hw/ppc/ppc4xx.h +1 -1
@@ -26,7 +26,7 @@#define PPC4XX_H #include "hw/ppc/ppc.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" /* PowerPC 4xx core initialization */ PowerPCCPU *ppc4xx_init(const char *cpu_model,
include/hw/ppc/xics.h +1 -1
@@ -28,7 +28,7 @@#ifndef XICS_H #define XICS_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/qdev-core.h" #include "qom/object.h"
include/hw/register.h +1 -1
@@ -12,7 +12,7 @@#define REGISTER_H #include "hw/qdev-core.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/registerfields.h" #include "qom/object.h"
include/hw/remote/proxy-memory-listener.h +1 -1
@@ -9,7 +9,7 @@ #ifndef PROXY_MEMORY_LISTENER_H #define PROXY_MEMORY_LISTENER_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "io/channel.h" typedef struct ProxyMemoryListener {
include/hw/sh4/sh_intc.h +1 -1
@@ -1,7 +1,7 @@#ifndef SH_INTC_H #define SH_INTC_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" typedef unsigned char intc_enum ;
include/hw/sysbus.h +1 -1
@@ -4,7 +4,7 @@/* Devices attached directly to the main system bus. */ #include "hw/qdev-core.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qom/object.h" #define QDEV_MAX_MMIO 32
include/hw/timer/npcm7xx_timer.h +1 -1
@@ -16,7 +16,7 @@#ifndef NPCM7XX_TIMER_H #define NPCM7XX_TIMER_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" #include "qemu/timer.h"
include/hw/tricore/tricore.h +1 -1
@@ -1,7 +1,7 @@ #ifndef HW_TRICORE_H #define HW_TRICORE_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" struct tricore_boot_info { uint64_t ram_size;
include/hw/usb.h +1 -1
@@ -25,7 +25,7 @@* THE SOFTWARE. */ -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/qdev-core.h" #include "qemu/iov.h" #include "qemu/queue.h"
include/hw/vfio/vfio-common.h +1 -1
@@ -21,7 +21,7 @@#ifndef HW_VFIO_VFIO_COMMON_H #define HW_VFIO_VFIO_COMMON_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/queue.h" #include "qemu/notify.h" #include "ui/console.h"
include/hw/virtio/vhost-backend.h +1 -1
@@ -11,7 +11,7 @@ #ifndef VHOST_BACKEND_H #define VHOST_BACKEND_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" typedef enum VhostBackendType { VHOST_BACKEND_TYPE_NONE = 0,
include/hw/virtio/vhost.h +1 -1
@@ -3,7 +3,7 @@#include "hw/virtio/vhost-backend.h" #include "hw/virtio/virtio.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" /* Generic structures common for any vhost based device. */
include/hw/virtio/virtio.h +1 -1
@@ -14,7 +14,7 @@#ifndef QEMU_VIRTIO_H #define QEMU_VIRTIO_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/qdev-core.h" #include "net/net.h" #include "migration/vmstate.h"
include/hw/xtensa/mx_pic.h +1 -1
@@ -28,7 +28,7 @@#ifndef XTENSA_MX_PIC_H #define XTENSA_MX_PIC_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" struct XtensaMxPic ;typedef struct XtensaMxPic XtensaMxPic ;
include/qemu/iova-tree.h +1 -1
@@ -23,7 +23,7 @@* for the thread safety issue. */ -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/sysemu/hwaddr.h" #define IOVA_OK (0)
include/sysemu/dma.h +1 -1
@@ -10,7 +10,7 @@#ifndef DMA_H #define DMA_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" #include "block/block.h" #include "block/accounting.h"
include/sysemu/hostmem.h +1 -1
@@ -16,7 +16,7 @@#include "sysemu/numa.h" #include "qapi/qapi-types-machine.h" #include "qom/object.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/bitmap.h" #define TYPE_MEMORY_BACKEND "memory-backend"
include/sysemu/kvm_int.h +1 -1
@@ -9,7 +9,7 @@#ifndef QEMU_KVM_INT_H #define QEMU_KVM_INT_H -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/accel.h" #include "sysemu/kvm.h"
include/sysemu/memory_mapping.h +1 -1
@@ -16,7 +16,7 @@#include "qemu/queue.h" #include "exec/cpu-defs.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" typedef struct GuestPhysBlock { /* visible to guest, reflects PCI hole, etc */
include/sysemu/vhost-user-backend.h +1 -1
@@ -13,7 +13,7 @@#define QEMU_VHOST_USER_BACKEND_H #include "qom/object.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/option.h" #include "qemu/bitmap.h" #include "hw/virtio/vhost.h"
target/arm/kvm_arm.h +1 -1
@@ -12,7 +12,7 @@#define QEMU_KVM_ARM_H #include "sysemu/kvm.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/error-report.h" #define KVM_ARM_VGIC_V2 (1 << 0)
accel/kvm/kvm-all.c +1 -1
@@ -31,7 +31,7 @@#include "sysemu/runstate.h" #include "sysemu/cpus.h" #include "qemu/bswap.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/ram_addr.h" #include "qemu/event_notifier.h" #include "qemu/main-loop.h"
accel/tcg/cputlb.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/main-loop.h" #include "hw/core/tcg-cpu-ops.h" #include "exec/exec-all.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/cpu_ldst.h" #include "exec/sysemu/cputlb.h" #include "exec/tb-hash.h"
backends/tpm/tpm_util.c +1 -1
@@ -24,7 +24,7 @@#include "qapi/error.h" #include "qapi/visitor.h" #include "tpm_int.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/qdev-properties.h" #include "sysemu/tpm_backend.h" #include "sysemu/tpm_util.h"
hw/avr/atmega.c +1 -1
@@ -12,7 +12,7 @@#include "qemu/module.h" #include "qemu/units.h" #include "qapi/error.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/qdev-properties.h"
hw/block/nvme.c +1 -1
@@ -147,7 +147,7 @@#include "qapi/visitor.h" #include "sysemu/hostmem.h" #include "sysemu/block-backend.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/log.h" #include "qemu/module.h" #include "qemu/cutils.h"
hw/block/onenand.c +1 -1
@@ -26,7 +26,7 @@#include "hw/qdev-properties.h" #include "hw/qdev-properties-system.h" #include "sysemu/block-backend.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/sysbus.h" #include "migration/vmstate.h" #include "qemu/error-report.h"
hw/core/loader-fit.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "qemu/units.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/loader.h" #include "hw/loader-fit.h" #include "qemu/cutils.h"
hw/core/loader.c +1 -1
@@ -56,7 +56,7 @@#include "uboot_image.h" #include "hw/loader.h" #include "hw/nvram/fw_cfg.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/boards.h" #include "qemu/cutils.h" #include "sysemu/runstate.h"
hw/display/edid-region.c +1 -1
@@ -1,5 +1,5 @@#include "qemu/osdep.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/display/edid.h" static uint64_t edid_region_read (void *ptr,hwaddr addr,unsigned size)
hw/display/tc6393xb.c +1 -1
@@ -16,7 +16,7 @@#include "qemu/host-utils.h" #include "hw/irq.h" #include "hw/display/tc6393xb.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/block/flash.h" #include "ui/console.h" #include "ui/pixel_ops.h"
hw/i386/acpi-common.c +1 -1
@@ -23,7 +23,7 @@#include "qemu/osdep.h" #include "qapi/error.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/acpi/acpi.h" #include "hw/acpi/aml-build.h" #include "hw/acpi/utils.h"
hw/i386/acpi-microvm.c +1 -1
@@ -24,7 +24,7 @@#include "qemu/cutils.h" #include "qapi/error.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/acpi/acpi.h" #include "hw/acpi/aml-build.h" #include "hw/acpi/bios-linker-loader.h"
hw/i386/pc.c +1 -1
@@ -64,7 +64,7 @@#include "hw/xen/xen.h" #include "hw/xen/start_info.h" #include "ui/qemu-spice.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "sysemu/arch_init.h" #include "qemu/bitmap.h" #include "qemu/config-file.h"
hw/i386/pc_piix.c +1 -1
@@ -46,7 +46,7 @@#include "sysemu/arch_init.h" #include "hw/i2c/smbus_eeprom.h" #include "hw/xen/xen-x86.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/acpi/acpi.h" #include "qapi/error.h" #include "qemu/error-report.h"
hw/intc/mips_gic.c +1 -1
@@ -14,7 +14,7 @@#include "qemu/module.h" #include "qapi/error.h" #include "hw/sysbus.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "sysemu/kvm.h" #include "sysemu/reset.h" #include "kvm_mips.h"
hw/intc/ompic.c +1 -1
@@ -13,7 +13,7 @@#include "hw/qdev-properties.h" #include "hw/sysbus.h" #include "migration/vmstate.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qom/object.h" #define TYPE_OR1K_OMPIC "or1k-ompic"
hw/misc/omap_gpmc.c +1 -1
@@ -23,7 +23,7 @@#include "hw/irq.h" #include "hw/block/flash.h" #include "hw/arm/omap.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" /* General-Purpose Memory Controller */
hw/net/ne2000.c +1 -1
@@ -25,7 +25,7 @@#include "qemu/osdep.h" #include "net/eth.h" #include "qemu/module.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/irq.h" #include "migration/vmstate.h" #include "ne2000.h"
hw/nios2/10m50_devboard.c +1 -1
@@ -30,7 +30,7 @@#include "hw/qdev-properties.h" #include "sysemu/sysemu.h" #include "hw/boards.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" #include "qemu/config-file.h"
hw/nios2/generic_nommu.c +1 -1
@@ -32,7 +32,7 @@#include "hw/char/serial.h" #include "hw/boards.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" #include "qemu/config-file.h"
hw/pci-bridge/pci_bridge_dev.c +1 -1
@@ -28,7 +28,7 @@#include "hw/pci/shpc.h" #include "hw/pci/slotid_cap.h" #include "hw/qdev-properties.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/pci/pci_bus.h" #include "hw/hotplug.h" #include "qom/object.h"
hw/pci-host/remote.c +1 -1
@@ -29,7 +29,7 @@#include "hw/pci/pcie_host.h" #include "hw/qdev-properties.h" #include "hw/pci-host/remote.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" static const char *remote_pcihost_root_bus_path (PCIHostState *host_bridge,PCIBus *rootbus)
hw/ppc/pnv_homer.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/log.h" #include "qapi/error.h" #include "exec/sysemu/hwaddr.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "sysemu/cpus.h" #include "hw/qdev-core.h" #include "hw/qdev-properties.h"
hw/ppc/ppc440_uc.c +1 -1
@@ -15,7 +15,7 @@#include "qemu/log.h" #include "qemu/module.h" #include "hw/irq.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/ppc/ppc.h" #include "hw/qdev-properties.h" #include "hw/pci/pci.h"
hw/ppc/sam460ex.c +1 -1
@@ -24,7 +24,7 @@#include "sysemu/block-backend.h" #include "hw/loader.h" #include "elf.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "ppc440.h" #include "ppc405.h" #include "hw/block/flash.h"
hw/remote/machine.c +1 -1
@@ -17,7 +17,7 @@#include "qemu-common.h" #include "hw/remote/machine.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qapi/error.h" #include "hw/pci/pci_host.h" #include "hw/remote/iohub.h"
hw/remote/proxy-memory-listener.c +1 -1
@@ -12,7 +12,7 @@#include "qemu/compiler.h" #include "qemu/int128.h" #include "qemu/range.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/cpu-common.h" #include "exec/ram_addr.h" #include "qapi/error.h"
hw/timer/sh_timer.c +1 -1
@@ -9,7 +9,7 @@*/ #include "qemu/osdep.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/hw.h" #include "hw/irq.h" #include "hw/sh4/sh.h"
hw/vfio/common.c +1 -1
@@ -28,7 +28,7 @@#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio.h" #include "exec/address-spaces.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/ram_addr.h" #include "hw/hw.h" #include "qemu/error-report.h"
hw/vfio/platform.c +1 -1
@@ -26,7 +26,7 @@#include "qemu/main-loop.h" #include "qemu/module.h" #include "qemu/range.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" #include "qemu/queue.h" #include "hw/sysbus.h"
hw/xtensa/sim.c +1 -1
@@ -32,7 +32,7 @@#include "hw/boards.h" #include "hw/loader.h" #include "elf.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/error-report.h" #include "xtensa_memory.h" #include "xtensa_sim.h"
hw/xtensa/virt.c +1 -1
@@ -33,7 +33,7 @@#include "hw/pci-host/gpex.h" #include "net/net.h" #include "elf.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/error-report.h" #include "xtensa_memory.h" #include "xtensa_sim.h"
hw/xtensa/xtensa_memory.c +1 -1
@@ -27,7 +27,7 @@#include "qemu/osdep.h" #include "qapi/error.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/error-report.h" #include "xtensa_memory.h"
hw/xtensa/xtfpga.c +1 -1
@@ -34,7 +34,7 @@#include "hw/loader.h" #include "hw/qdev-properties.h" #include "elf.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/char/serial.h" #include "net/net.h" #include "hw/sysbus.h"
migration/rdma.c +1 -1
@@ -29,7 +29,7 @@#include "qemu/sockets.h" #include "qemu/bitmap.h" #include "qemu/coroutine.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h>
migration/savevm.c +1 -1
@@ -48,7 +48,7 @@#include "qapi/qmp/qerror.h" #include "qemu/error-report.h" #include "sysemu/cpus.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/target_page.h" #include "trace.h" #include "qemu/iov.h"
monitor/misc.c +1 -1
@@ -59,7 +59,7 @@#ifdef CONFIG_TRACE_SIMPLE #include "trace/simple.h" #endif -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/exec-all.h" #include "qemu/option.h" #include "qemu/thread.h"
softmmu/ioport.c +1 -1
@@ -28,7 +28,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/ioport.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" #include "trace.h"
softmmu/memory.c +1 -1
@@ -16,7 +16,7 @@#include "qemu/osdep.h" #include "qemu/log.h" #include "qapi/error.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qapi/visitor.h" #include "qemu/bitops.h" #include "qemu/error-report.h"
softmmu/memory_mapping.c +1 -1
@@ -15,7 +15,7 @@#include "qapi/error.h" #include "sysemu/memory_mapping.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/address-spaces.h" //#define DEBUG_GUEST_PHYS_REGION_ADD
softmmu/physmem.c +1 -1
@@ -41,7 +41,7 @@#include "qemu/config-file.h" #include "qemu/error-report.h" #include "qemu/qemu-print.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/ioport.h" #include "sysemu/dma.h" #include "sysemu/hostmem.h"
softmmu/qtest.c +1 -1
@@ -18,7 +18,7 @@#include "sysemu/runstate.h" #include "chardev/char-fe.h" #include "exec/ioport.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "hw/irq.h" #include "qemu/accel.h" #include "sysemu/cpu-timers.h"
stubs/ram-block.c +1 -1
@@ -1,7 +1,7 @@#include "qemu/osdep.h" #include "exec/ramlist.h" #include "exec/cpu-common.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" void *qemu_ram_get_host_addr (RAMBlock *rb) {
target/s390x/misc_helper.c +1 -1
@@ -23,7 +23,6 @@#include "qemu/main-loop.h" #include "cpu.h" #include "internal.h" -#include "exec/memory.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" #include "qemu/timer.h"
@@ -34,6 +33,7 @@#include "s390-tod.h" #if !defined(CONFIG_USER_ONLY ) +#include "exec/sysemu/memory.h" #include "sysemu/cpus.h" #include "sysemu/sysemu.h" #include "hw/s390x/ebcdic.h"
tests/qtest/fuzz/generic_fuzz.c +1 -1
@@ -20,7 +20,7 @@#include "fuzz.h" #include "fork_fuzz.h" #include "string.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "exec/ramblock.h" #include "hw/qdev-core.h" #include "hw/pci/pci.h"
tests/qtest/fuzz/qos_fuzz.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/units.h" #include "qapi/error.h" #include "qemu-common.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "qemu/main-loop.h" #include "tests/qtest/libqos/libqtest.h"
ui/console.c +1 -1
@@ -32,7 +32,7 @@#include "qemu/timer.h" #include "chardev/char-fe.h" #include "trace.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "io/channel-file.h" #include "qom/object.h"
util/vfio-helpers.c +1 -1
@@ -16,7 +16,7 @@#include "qapi/error.h" #include "exec/ramlist.h" #include "exec/cpu-common.h" -#include "exec/memory.h" +#include "exec/sysemu/memory.h" #include "trace.h" #include "qemu/error-report.h" #include "standard-headers/linux/pci_regs.h"
MAINTAINERS +1 -1
@@ -2400,7 +2400,7 @@ M: Paolo Bonzini <[email protected]> S: Supported F: include/exec/ioport.h F: include/exec/memop.h -F: include/exec/memory.h +F: include/exec/sysemu/memory.h F: include/exec/ram_addr.h F: include/exec/ramblock.h F: softmmu/dma-helpers.c
scripts/analyze-inclusions +1 -1
@@ -54,7 +54,7 @@ echo $(grep_include -F 'trace/generated-tracers.h') files include generated-trac echo $(grep_include -F 'qapi/error.h') files include qapi/error.h echo $(grep_include -F 'qom/object.h') files include qom/object.h echo $(grep_include -F 'block/aio.h') files include block/aio.h -echo $(grep_include -F 'exec/memory.h') files include exec/memory.h +echo $(grep_include -F 'exec/sysemu/memory.h') files include exec/memory.h echo $(grep_include -F 'fpu/softfloat.h') files include fpu/softfloat.h echo $(grep_include -F 'qemu/bswap.h') files include qemu/bswap.h echo
Signature · 1 line
2.26.3
PATCH 5/11 exec: Restrict memory-internal.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the memory-internal.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/memory-internal.h,exec/sysemu/memory-internal.h, $(git grep -l exec/memory-internal.h)
Then the #ifdef'ry conditional on CONFIG_USER_ONLY has been replaced by an #error.
---
include/exec/{ => sysemu}/memory-internal.h | 7 +++++--
accel/tcg/cputlb.c | 2 +-
hw/s390x/s390-pci-inst.c | 2 +-
softmmu/memory.c | 2 +-
softmmu/physmem.c | 2 +-
MAINTAINERS | 2 +-
6 files changed, 10 insertions(+), 7 deletions(-)
rename include/exec/{ => sysemu}/memory-internal.h (94%)include/exec/sysemu/memory-internal.h renamed from include/exec/memory-internal.h +5 -2
@@ -20,9 +20,12 @@#ifndef MEMORY_INTERNAL_H #define MEMORY_INTERNAL_H +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif +#include "cpu.h" -#ifndef CONFIG_USER_ONLYstatic inline AddressSpaceDispatch *flatview_to_dispatch (FlatView *fv) {return fv->dispatch;
@@ -49,5 +52,5 @@ void address_space_dispatch_free(AddressSpaceDispatch *d);void mtree_print_dispatch (struct AddressSpaceDispatch *d,MemoryRegion *root); -#endif +#endif
accel/tcg/cputlb.c +1 -1
@@ -25,7 +25,7 @@#include "exec/cpu_ldst.h" #include "exec/sysemu/cputlb.h" #include "exec/tb-hash.h" -#include "exec/memory-internal.h" +#include "exec/sysemu/memory-internal.h" #include "exec/ram_addr.h" #include "tcg/tcg.h" #include "qemu/error-report.h"
hw/s390x/s390-pci-inst.c +1 -1
@@ -13,7 +13,7 @@#include "qemu/osdep.h" #include "exec/memop.h" -#include "exec/memory-internal.h" +#include "exec/sysemu/memory-internal.h" #include "qemu/error-report.h" #include "sysemu/hw_accel.h" #include "hw/s390x/s390-pci-inst.h"
softmmu/memory.c +1 -1
@@ -25,7 +25,7 @@#include "qom/object.h" #include "trace.h" -#include "exec/memory-internal.h" +#include "exec/sysemu/memory-internal.h" #include "exec/ram_addr.h" #include "sysemu/kvm.h" #include "sysemu/runstate.h"
softmmu/physmem.c +1 -1
@@ -58,7 +58,7 @@#include "exec/translate-all.h" #include "sysemu/replay.h" -#include "exec/memory-internal.h" +#include "exec/sysemu/memory-internal.h" #include "exec/ram_addr.h" #include "exec/log.h"
MAINTAINERS +1 -1
@@ -2407,7 +2407,7 @@ F: softmmu/dma-helpers.c F: softmmu/ioport.c F: softmmu/memory.c F: softmmu/physmem.c -F: include/exec/memory-internal.h +F: include/exec/sysemu/memory-internal.h F: scripts/coccinelle/memory-region-housekeeping.cocci SPICE
Signature · 1 line
2.26.3
PATCH 6/11 exec: Restrict address-spaces.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the address-spaces.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/address-spaces.h,exec/sysemu/address-spaces.h, $(git grep -l exec/address-spaces.h)
---
hw/net/i82596.h | 2 +-
hw/s390x/ipl.h | 2 +-
hw/tpm/tpm_ppi.h | 2 +-
include/exec/{ => sysemu}/address-spaces.h | 12 ++++++------
include/hw/nubus/nubus.h | 2 +-
include/hw/tricore/triboard.h | 2 +-
include/sysemu/dma.h | 2 +-
target/i386/hvf/vmx.h | 2 +-
cpu.c | 2 +-
hw/arm/collie.c | 2 +-
hw/arm/exynos4_boards.c | 2 +-
hw/arm/fsl-imx31.c | 2 +-
hw/arm/gumstix.c | 2 +-
hw/arm/integratorcp.c | 2 +-
hw/arm/kzm.c | 2 +-
hw/arm/mainstone.c | 2 +-
hw/arm/microbit.c | 2 +-
hw/arm/mps2-tz.c | 2 +-
hw/arm/mps2.c | 2 +-
hw/arm/msf2-soc.c | 2 +-
hw/arm/msf2-som.c | 2 +-
hw/arm/musca.c | 2 +-
hw/arm/omap1.c | 2 +-
hw/arm/omap2.c | 2 +-
hw/arm/omap_sx1.c | 2 +-
hw/arm/orangepi.c | 2 +-
hw/arm/spitz.c | 2 +-
hw/arm/stellaris.c | 2 +-
hw/arm/stm32f205_soc.c | 2 +-
hw/arm/stm32f405_soc.c | 2 +-
hw/arm/tosa.c | 2 +-
hw/arm/z2.c | 2 +-
hw/avr/atmega.c | 2 +-
hw/char/goldfish_tty.c | 2 +-
hw/char/omap_uart.c | 2 +-
hw/core/null-machine.c | 2 +-
hw/core/sysbus.c | 2 +-
hw/dma/etraxfs_dma.c | 2 +-
hw/dma/rc4030.c | 2 +-
hw/hyperv/hyperv.c | 2 +-
hw/input/lasips2.c | 2 +-
hw/microblaze/petalogix_ml605_mmu.c | 2 +-
hw/microblaze/petalogix_s3adsp1800_mmu.c | 2 +-
hw/microblaze/xlnx-zynqmp-pmu.c | 2 +-
hw/misc/allwinner-h3-dramc.c | 2 +-
hw/misc/omap_gpmc.c | 2 +-
hw/nios2/10m50_devboard.c | 2 +-
hw/nios2/generic_nommu.c | 2 +-
hw/pci-host/mv64361.c | 2 +-
hw/ppc/pegasos2.c | 2 +-
hw/ppc/ppc405_uc.c | 2 +-
hw/ppc/ppc4xx_devs.c | 2 +-
hw/ppc/prep_systemio.c | 2 +-
hw/ppc/rs6000_mc.c | 2 +-
hw/ppc/spapr_ovec.c | 2 +-
hw/riscv/shakti_c.c | 2 +-
hw/s390x/css.c | 2 +-
hw/sparc/sun4m_iommu.c | 2 +-
hw/sparc64/sun4u_iommu.c | 2 +-
hw/timer/hpet.c | 2 +-
hw/vfio/ap.c | 2 +-
hw/vfio/ccw.c | 2 +-
hw/vfio/common.c | 2 +-
hw/vfio/platform.c | 2 +-
hw/virtio/virtio-balloon.c | 2 +-
hw/virtio/virtio-bus.c | 2 +-
semihosting/arm-compat-semi.c | 2 +-
softmmu/ioport.c | 2 +-
softmmu/memory_mapping.c | 2 +-
target/arm/kvm.c | 2 +-
target/avr/helper.c | 2 +-
target/i386/cpu-sysemu.c | 2 +-
target/i386/cpu.c | 2 +-
target/i386/hax/hax-all.c | 2 +-
target/i386/hax/hax-mem.c | 2 +-
target/i386/nvmm/nvmm-all.c | 2 +-
target/i386/tcg/sysemu/misc_helper.c | 2 +-
target/i386/tcg/sysemu/tcg-cpu.c | 2 +-
target/i386/whpx/whpx-all.c | 2 +-
target/s390x/excp_helper.c | 2 +-
target/s390x/mmu_helper.c | 2 +-
target/s390x/sigp.c | 2 +-
target/xtensa/dbg_helper.c | 2 +-
83 files changed, 88 insertions(+), 88 deletions(-)
rename include/exec/{ => sysemu}/address-spaces.h (84%)hw/net/i82596.h +1 -1
@@ -4,7 +4,7 @@#define I82596_IOPORT_SIZE 0x20#include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #define PORT_RESET 0x00/* reset 82596 */ #define PORT_SELFTEST 0x01/* selftest */
hw/s390x/ipl.h +1 -1
@@ -14,7 +14,7 @@#define HW_S390_IPL_H #include "cpu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/qdev-core.h" #include "qom/object.h"
hw/tpm/tpm_ppi.h +1 -1
@@ -12,7 +12,7 @@ #ifndef TPM_TPM_PPI_H #define TPM_TPM_PPI_H -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" typedef struct TPMPPI { MemoryRegion ram;
include/exec/sysemu/address-spaces.h renamed from include/exec/address-spaces.h +6 -6
@@ -11,8 +11,12 @@* */ -#ifndef EXEC_ADDRESS_SPACES_H -#define EXEC_ADDRESS_SPACES_H +#ifndef EXEC_SYSEMU_ADDRESS_SPACES_H +#define EXEC_SYSEMU_ADDRESS_SPACES_H + +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif /* * Internal interfaces between memory.c/exec.c/vl.c. Do not #include unless
@@ -21,8 +25,6 @@#include "exec/sysemu/memory.h" -#ifndef CONFIG_USER_ONLY -/* Get the root memory region. This interface should only be used temporarily * until a proper bus interface is available. */
@@ -37,5 +39,3 @@ extern AddressSpace address_space_memory;extern AddressSpace address_space_io;#endif - -#endif
include/hw/nubus/nubus.h +1 -1
@@ -10,7 +10,7 @@#define HW_NUBUS_NUBUS_H #include "hw/qdev-properties.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qom/object.h" #define NUBUS_SUPER_SLOT_SIZE 0x10000000U
include/hw/tricore/triboard.h +1 -1
@@ -23,7 +23,7 @@#include "hw/boards.h" #include "hw/arm/boot.h" #include "sysemu/sysemu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qom/object.h" #include "hw/tricore/tc27x_soc.h"
include/sysemu/dma.h +1 -1
@@ -11,7 +11,7 @@#define DMA_H #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "block/block.h" #include "block/accounting.h"
target/i386/hvf/vmx.h +1 -1
@@ -31,7 +31,7 @@#include "cpu.h" #include "x86.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" static inline uint64_t rreg (hv_vcpuid_t vcpu,hv_x86_reg_t reg) {
cpu.c +1 -1
@@ -30,7 +30,7 @@#include "qemu.h" #else #include "hw/core/sysemu-cpu-ops.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #endif #include "sysemu/tcg.h" #include "sysemu/kvm.h"
hw/arm/collie.c +1 -1
@@ -16,7 +16,7 @@#include "strongarm.h" #include "hw/arm/boot.h" #include "hw/block/flash.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "cpu.h" #include "qom/object.h"
hw/arm/exynos4_boards.c +1 -1
@@ -28,7 +28,7 @@#include "hw/sysbus.h" #include "net/net.h" #include "hw/arm/boot.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/arm/exynos4210.h" #include "hw/net/lan9118.h" #include "hw/qdev-properties.h"
hw/arm/fsl-imx31.c +1 -1
@@ -23,7 +23,7 @@#include "qapi/error.h" #include "hw/arm/fsl-imx31.h" #include "sysemu/sysemu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/qdev-properties.h" #include "chardev/char.h"
hw/arm/gumstix.c +1 -1
@@ -41,7 +41,7 @@#include "hw/block/flash.h" #include "hw/net/smc91c111.h" #include "hw/boards.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/qtest.h" #include "cpu.h"
hw/arm/integratorcp.c +1 -1
@@ -17,7 +17,7 @@#include "hw/misc/arm_integrator_debug.h" #include "hw/net/smc91c111.h" #include "net/net.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h" #include "qemu/log.h"
hw/arm/kzm.c +1 -1
@@ -18,7 +18,7 @@#include "hw/arm/fsl-imx31.h" #include "hw/boards.h" #include "qemu/error-report.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "net/net.h" #include "hw/net/lan9118.h" #include "hw/char/serial.h"
hw/arm/mainstone.c +1 -1
@@ -21,7 +21,7 @@#include "hw/boards.h" #include "hw/block/flash.h" #include "hw/sysbus.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "cpu.h" /* Device addresses */
hw/arm/microbit.c +1 -1
@@ -13,7 +13,7 @@#include "hw/boards.h" #include "hw/arm/boot.h" #include "sysemu/sysemu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/arm/nrf51_soc.h" #include "hw/i2c/microbit_i2c.h"
hw/arm/mps2-tz.c +1 -1
@@ -53,7 +53,7 @@#include "hw/arm/armv7m.h" #include "hw/or-irq.h" #include "hw/boards.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/sysemu.h" #include "sysemu/reset.h" #include "hw/misc/unimp.h"
hw/arm/mps2.c +1 -1
@@ -33,7 +33,7 @@#include "hw/arm/armv7m.h" #include "hw/or-irq.h" #include "hw/boards.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/misc/unimp.h" #include "hw/char/cmsdk-apb-uart.h"
hw/arm/msf2-soc.c +1 -1
@@ -25,7 +25,7 @@#include "qemu/osdep.h" #include "qemu/units.h" #include "qapi/error.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/char/serial.h" #include "hw/arm/msf2-soc.h" #include "hw/misc/unimp.h"
hw/arm/msf2-som.c +1 -1
@@ -29,7 +29,7 @@#include "hw/boards.h" #include "hw/qdev-properties.h" #include "hw/arm/boot.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/arm/msf2-soc.h" #define DDR_BASE_ADDRESS 0xA0000000
hw/arm/musca.c +1 -1
@@ -22,7 +22,7 @@#include "qemu/osdep.h" #include "qemu/error-report.h" #include "qapi/error.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/arm/boot.h" #include "hw/arm/armsse.h"
hw/arm/omap1.c +1 -1
@@ -23,7 +23,7 @@#include "qapi/error.h" #include "qemu-common.h" #include "cpu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/hw.h" #include "hw/irq.h" #include "hw/qdev-properties.h"
hw/arm/omap2.c +1 -1
@@ -22,7 +22,7 @@#include "qemu/error-report.h" #include "qapi/error.h" #include "cpu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/blockdev.h" #include "sysemu/qtest.h" #include "sysemu/reset.h"
hw/arm/omap_sx1.c +1 -1
@@ -33,7 +33,7 @@#include "hw/arm/boot.h" #include "hw/block/flash.h" #include "sysemu/qtest.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "cpu.h" #include "qemu/cutils.h"
hw/arm/orangepi.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "qemu/units.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qapi/error.h" #include "hw/boards.h" #include "hw/qdev-properties.h"
hw/arm/spitz.c +1 -1
@@ -32,7 +32,7 @@#include "hw/sysbus.h" #include "hw/misc/max111x.h" #include "migration/vmstate.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "cpu.h" #include "qom/object.h"
hw/arm/stellaris.c +1 -1
@@ -17,7 +17,7 @@#include "net/net.h" #include "hw/boards.h" #include "qemu/log.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/arm/armv7m.h" #include "hw/char/pl011.h"
hw/arm/stm32f205_soc.c +1 -1
@@ -26,7 +26,7 @@#include "qapi/error.h" #include "qemu/module.h" #include "hw/arm/boot.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/arm/stm32f205_soc.h" #include "hw/qdev-properties.h" #include "sysemu/sysemu.h"
hw/arm/stm32f405_soc.c +1 -1
@@ -25,7 +25,7 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "qemu-common.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/arm/stm32f405_soc.h" #include "hw/misc/unimp.h"
hw/arm/tosa.c +1 -1
@@ -25,7 +25,7 @@#include "hw/ssi/ssi.h" #include "hw/sysbus.h" #include "hw/misc/led.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qom/object.h" #define TOSA_RAM 0x04000000
hw/arm/z2.c +1 -1
@@ -23,7 +23,7 @@#include "ui/console.h" #include "hw/audio/wm8750.h" #include "audio/audio.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "cpu.h" #include "qom/object.h"
hw/avr/atmega.c +1 -1
@@ -13,7 +13,7 @@#include "qemu/units.h" #include "qapi/error.h" #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/sysemu.h" #include "hw/qdev-properties.h" #include "hw/sysbus.h"
hw/char/goldfish_tty.c +1 -1
@@ -15,7 +15,7 @@#include "chardev/char-fe.h" #include "qemu/log.h" #include "trace.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/char/goldfish_tty.h" #define GOLDFISH_TTY_VERSION 1
hw/char/omap_uart.c +1 -1
@@ -21,7 +21,7 @@#include "chardev/char.h" #include "hw/arm/omap.h" #include "hw/char/serial.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" /* UARTs */ struct omap_uart_s {
hw/core/null-machine.c +1 -1
@@ -14,7 +14,7 @@#include "qemu/osdep.h" #include "qemu/error-report.h" #include "hw/boards.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/core/cpu.h" static void machine_none_init (MachineState *mch)
hw/core/sysbus.c +1 -1
@@ -22,7 +22,7 @@#include "qemu/module.h" #include "hw/sysbus.h" #include "monitor/monitor.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" static void sysbus_dev_print (Monitor *mon,DeviceState *dev,int indent);static char *sysbus_get_fw_dev_path (DeviceState *dev);
hw/dma/etraxfs_dma.c +1 -1
@@ -27,7 +27,7 @@#include "hw/irq.h" #include "qemu/main-loop.h" #include "sysemu/runstate.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/cris/etraxfs_dma.h"
hw/dma/rc4030.c +1 -1
@@ -32,7 +32,7 @@#include "qemu/timer.h" #include "qemu/log.h" #include "qemu/module.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "trace.h" #include "qom/object.h"
hw/hyperv/hyperv.c +1 -1
@@ -11,7 +11,7 @@#include "qemu/main-loop.h" #include "qemu/module.h" #include "qapi/error.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "sysemu/kvm.h" #include "qemu/bitops.h" #include "qemu/error-report.h"
hw/input/lasips2.c +1 -1
@@ -28,7 +28,7 @@#include "hw/input/lasips2.h" #include "exec/sysemu/hwaddr.h" #include "trace.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "migration/vmstate.h" #include "hw/irq.h"
hw/microblaze/petalogix_ml605_mmu.c +1 -1
@@ -36,7 +36,7 @@#include "hw/boards.h" #include "hw/char/serial.h" #include "hw/qdev-properties.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/ssi/ssi.h" #include "boot.h"
hw/microblaze/petalogix_s3adsp1800_mmu.c +1 -1
@@ -33,7 +33,7 @@#include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/misc/unimp.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/char/xilinx_uartlite.h" #include "boot.h"
hw/microblaze/xlnx-zynqmp-pmu.c +1 -1
@@ -17,7 +17,7 @@#include "qemu/osdep.h" #include "qapi/error.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/boards.h" #include "cpu.h" #include "boot.h"
hw/misc/allwinner-h3-dramc.c +1 -1
@@ -24,7 +24,7 @@#include "migration/vmstate.h" #include "qemu/log.h" #include "qemu/module.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/qdev-properties.h" #include "qapi/error.h" #include "hw/misc/allwinner-h3-dramc.h"
hw/misc/omap_gpmc.c +1 -1
@@ -24,7 +24,7 @@#include "hw/block/flash.h" #include "hw/arm/omap.h" #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" /* General-Purpose Memory Controller */ struct omap_gpmc_s {
hw/nios2/10m50_devboard.c +1 -1
@@ -31,7 +31,7 @@#include "sysemu/sysemu.h" #include "hw/boards.h" #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/config-file.h" #include "boot.h"
hw/nios2/generic_nommu.c +1 -1
@@ -33,7 +33,7 @@#include "hw/char/serial.h" #include "hw/boards.h" #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/config-file.h" #include "boot.h"
hw/pci-host/mv64361.c +1 -1
@@ -19,7 +19,7 @@#include "hw/irq.h" #include "hw/intc/i8259.h" #include "hw/qdev-properties.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/log.h" #include "qemu/error-report.h" #include "trace.h"
hw/ppc/pegasos2.c +1 -1
@@ -30,7 +30,7 @@#include "qemu/error-report.h" #include "sysemu/kvm.h" #include "kvm_ppc.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "trace.h" #include "qemu/datadir.h" #include "sysemu/device_tree.h"
hw/ppc/ppc405_uc.c +1 -1
@@ -34,7 +34,7 @@#include "qemu/timer.h" #include "sysemu/reset.h" #include "sysemu/sysemu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/intc/ppc-uic.h" #include "hw/qdev-properties.h" #include "qapi/error.h"
hw/ppc/ppc4xx_devs.c +1 -1
@@ -32,7 +32,7 @@#include "hw/intc/ppc-uic.h" #include "hw/qdev-properties.h" #include "qemu/log.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/error-report.h" #include "qapi/error.h"
hw/ppc/prep_systemio.c +1 -1
@@ -28,7 +28,7 @@#include "hw/isa/isa.h" #include "hw/qdev-properties.h" #include "migration/vmstate.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qom/object.h" #include "qemu/error-report.h" /* for error_report() */ #include "qemu/module.h"
hw/ppc/rs6000_mc.c +1 -1
@@ -22,7 +22,7 @@#include "hw/isa/isa.h" #include "hw/qdev-properties.h" #include "migration/vmstate.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qapi/error.h" #include "trace.h" #include "qom/object.h"
hw/ppc/spapr_ovec.c +1 -1
@@ -15,7 +15,7 @@#include "hw/ppc/spapr_ovec.h" #include "migration/vmstate.h" #include "qemu/bitmap.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/error-report.h" #include "trace.h" #include <libfdt.h>
hw/riscv/shakti_c.c +1 -1
@@ -24,7 +24,7 @@#include "hw/intc/sifive_clint.h" #include "sysemu/sysemu.h" #include "hw/qdev-properties.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/riscv/boot.h"
hw/s390x/css.c +1 -1
@@ -14,7 +14,7 @@#include "qapi/visitor.h" #include "qemu/bitops.h" #include "qemu/error-report.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/s390x/ioinst.h" #include "hw/qdev-properties.h" #include "hw/s390x/css.h"
hw/sparc/sun4m_iommu.c +1 -1
@@ -29,7 +29,7 @@#include "hw/sysbus.h" #include "migration/vmstate.h" #include "qemu/module.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "trace.h" /*
hw/sparc64/sun4u_iommu.c +1 -1
@@ -27,7 +27,7 @@#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/sparc/sun4u_iommu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/log.h" #include "qemu/module.h" #include "trace.h"
hw/timer/hpet.c +1 -1
@@ -36,7 +36,7 @@#include "hw/rtc/mc146818rtc_regs.h" #include "migration/vmstate.h" #include "hw/timer/i8254.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qom/object.h" //#define HPET_DEBUG
hw/vfio/ap.c +1 -1
@@ -25,7 +25,7 @@#include "migration/vmstate.h" #include "hw/qdev-properties.h" #include "hw/s390x/ap-bridge.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qom/object.h" #define TYPE_VFIO_AP_DEVICE "vfio-ap"
hw/vfio/ccw.c +1 -1
@@ -26,7 +26,7 @@#include "hw/s390x/vfio-ccw.h" #include "hw/qdev-properties.h" #include "hw/s390x/ccw-device.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/error-report.h" #include "qemu/main-loop.h" #include "qemu/module.h"
hw/vfio/common.c +1 -1
@@ -27,7 +27,7 @@#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "exec/sysemu/memory.h" #include "exec/ram_addr.h" #include "hw/hw.h"
hw/vfio/platform.c +1 -1
@@ -27,7 +27,7 @@#include "qemu/module.h" #include "qemu/range.h" #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/queue.h" #include "hw/sysbus.h" #include "trace.h"
hw/virtio/virtio-balloon.c +1 -1
@@ -23,7 +23,7 @@#include "hw/boards.h" #include "sysemu/balloon.h" #include "hw/virtio/virtio-balloon.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qapi/error.h" #include "qapi/qapi-events-machine.h" #include "qapi/visitor.h"
hw/virtio/virtio-bus.c +1 -1
@@ -28,7 +28,7 @@#include "qapi/error.h" #include "hw/virtio/virtio-bus.h" #include "hw/virtio/virtio.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" /* #define DEBUG_VIRTIO_BUS */
semihosting/arm-compat-semi.c +1 -1
@@ -144,7 +144,7 @@ typedef struct GuestFD {static GArray *guestfd_array;#ifndef CONFIG_USER_ONLY -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" /* * Find the base of a RAM region containing the specified address */
softmmu/ioport.c +1 -1
@@ -29,7 +29,7 @@#include "cpu.h" #include "exec/ioport.h" #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "trace.h" typedef struct MemoryRegionPortioList {
softmmu/memory_mapping.c +1 -1
@@ -16,7 +16,7 @@#include "sysemu/memory_mapping.h" #include "exec/sysemu/memory.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" //#define DEBUG_GUEST_PHYS_REGION_ADD
target/arm/kvm.c +1 -1
@@ -28,7 +28,7 @@#include "internals.h" #include "hw/pci/pci.h" #include "exec/memattrs.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/boards.h" #include "hw/irq.h" #include "qemu/log.h"
target/avr/helper.c +1 -1
@@ -22,7 +22,7 @@#include "cpu.h" #include "hw/core/tcg-cpu-ops.h" #include "exec/exec-all.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "exec/helper-proto.h" bool avr_cpu_exec_interrupt (CPUState *cs,int interrupt_request)
target/i386/cpu-sysemu.c +1 -1
@@ -29,7 +29,7 @@#include "qapi/qapi-commands-machine-target.h" #include "hw/qdev-properties.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/i386/apic_internal.h" #include "cpu-internal.h"
target/i386/cpu.c +1 -1
@@ -34,7 +34,7 @@#include "hw/qdev-properties.h" #include "hw/i386/topology.h" #ifndef CONFIG_USER_ONLY -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "hw/boards.h" #endif
target/i386/hax/hax-all.c +1 -1
@@ -25,7 +25,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu-common.h" #include "qemu/accel.h"
target/i386/hax/hax-mem.c +1 -1
@@ -10,7 +10,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "qemu/error-report.h" #include "hax-accel-ops.h"
target/i386/nvmm/nvmm-all.c +1 -1
@@ -9,7 +9,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "exec/ioport.h" #include "qemu-common.h" #include "qemu/accel.h"
target/i386/tcg/sysemu/misc_helper.c +1 -1
@@ -22,7 +22,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "tcg/helper-tcg.h" void helper_outb (CPUX86State *env,uint32_t port,uint32_t data)
target/i386/tcg/sysemu/tcg-cpu.c +1 -1
@@ -23,7 +23,7 @@#include "sysemu/sysemu.h" #include "qemu/units.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "tcg/tcg-cpu.h"
target/i386/whpx/whpx-all.c +1 -1
@@ -10,7 +10,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "exec/ioport.h" #include "qemu-common.h" #include "qemu/accel.h"
target/s390x/excp_helper.c +1 -1
@@ -26,9 +26,9 @@#include "exec/exec-all.h" #include "exec/cpu_ldst.h" #include "hw/s390x/ioinst.h" -#include "exec/address-spaces.h" #include "tcg_s390x.h" #ifndef CONFIG_USER_ONLY +#include "exec/sysemu/address-spaces.h" #include "hw/s390x/s390_flic.h" #include "hw/boards.h" #endif
target/s390x/mmu_helper.c +1 -1
@@ -17,7 +17,7 @@#include "qemu/osdep.h" #include "qemu/error-report.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "cpu.h" #include "internal.h" #include "kvm_s390x.h"
target/s390x/sigp.c +1 -1
@@ -13,7 +13,7 @@#include "internal.h" #include "sysemu/hw_accel.h" #include "sysemu/runstate.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" #include "exec/exec-all.h" #include "sysemu/tcg.h" #include "trace.h"
target/xtensa/dbg_helper.c +1 -1
@@ -31,7 +31,7 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" -#include "exec/address-spaces.h" +#include "exec/sysemu/address-spaces.h" static void tb_invalidate_virtual_addr (CPUXtensaState *env,uint32_t vaddr) {
Signature · 1 line
2.26.3
PATCH 7/11 exec: Extract CPU I/O instructions to "cpu-io.h"
In reply to Philippe Mathieu-DaudéNot all architectures use an I/O bus. Extract the CPU I/O instruction helpers into a specific unit named cpu-io.c (and its equivalent "cpu-io.h" header).
Since what is left in ioport.c is no more target specific, build the file with the other softmmu objects by moving the file to the softmmu_ss Meson source set.
--- include/exec/cpu-io.h | 30 +++++++++++ include/exec/ioport.h | 7 --- hw/i386/xen/xen-hvm.c | 1 + monitor/misc.c | 2 +- softmmu/cpu-io.c | 88 +++++++++++++++++++++++++++++++ softmmu/ioport.c | 60 --------------------- softmmu/qtest.c | 1 + tests/qtest/fuzz/qtest_wrappers.c | 3 +- softmmu/meson.build | 3 +- 9 files changed, 125 insertions(+), 70 deletions(-) create mode 100644 include/exec/cpu-io.h create mode 100644 softmmu/cpu-io.c
include/exec/cpu-io.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* QEMU CPU I/O instructions +* +* Copyright (c) 2003 Fabrice Bellard +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2.1 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef CPU_IO_H +#define CPU_IO_H + +void cpu_outb (uint32_t addr,uint8_t val); +void cpu_outw (uint32_t addr,uint16_t val); +void cpu_outl (uint32_t addr,uint32_t val); +uint8_t cpu_inb (uint32_t addr); +uint16_t cpu_inw (uint32_t addr); +uint32_t cpu_inl (uint32_t addr); + +#endif /* CPU_IO_H */
include/exec/ioport.h +0 -7
@@ -44,13 +44,6 @@ typedef struct MemoryRegionPortio {extern const MemoryRegionOps unassigned_io_ops;#endif -void cpu_outb (uint32_t addr,uint8_t val); -void cpu_outw (uint32_t addr,uint16_t val); -void cpu_outl (uint32_t addr,uint32_t val); -uint8_t cpu_inb (uint32_t addr); -uint16_t cpu_inw (uint32_t addr); -uint32_t cpu_inl (uint32_t addr); - typedef struct PortioList { const struct MemoryRegionPortio *ports; Object *owner;
hw/i386/xen/xen-hvm.c +1 -0
@@ -33,6 +33,7 @@#include "sysemu/xen.h" #include "sysemu/xen-mapcache.h" #include "trace.h" +#include "exec/cpu-io.h" #include <xen/hvm/ioreq.h> #include <xen/hvm/e820.h>
monitor/misc.c +1 -1
@@ -76,7 +76,7 @@#include "qapi/qmp-event.h" #include "sysemu/cpus.h" #include "qemu/cutils.h" - +#include "exec/cpu-io.h" #if defined(TARGET_S390X )#include "hw/s390x/storage-keys.h" #include "hw/s390x/storage-attributes.h"
softmmu/cpu-io.c new file +88 -0
88 lines not on this page · raw message
softmmu/ioport.c +0 -60
72 lines not on this page · raw message
softmmu/qtest.c +1 -0
@@ -31,6 +31,7 @@#ifdef CONFIG_PSERIES #include "hw/ppc/spapr_rtas.h" #endif +#include "exec/cpu-io.h" #define MAX_IRQ 256
tests/qtest/fuzz/qtest_wrappers.c +2 -1
@@ -12,8 +12,9 @@*/ #include "qemu/osdep.h" +#include "exec/sysemu/address-spaces.h" +#include "exec/cpu-io.h" #include "hw/core/cpu.h" -#include "exec/ioport.h" #include "fuzz.h"
softmmu/meson.build +2 -1
@@ -2,11 +2,11 @@ 'arch_init.c', 'balloon.c', 'cpus.c', + 'cpu-io.c', 'cpu-throttle.c', 'datadir.c', 'globals.c', 'physmem.c', - 'ioport.c', 'rtc.c', 'runstate.c', 'memory.c',
@@ -24,6 +24,7 @@ softmmu_ss.add(files( 'bootdevice.c', 'dma-helpers.c', + 'ioport.c', 'qdev-monitor.c', ), sdl, libpmem, libdaxctl)
Signature · 1 line
2.26.3
PATCH 8/11 exec: Restrict ioport.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the ioport.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/ioport.h,sysemu/ioport.h, $(git grep -l exec/ioport.h)
Then the #ifdef'ry conditional on CONFIG_USER_ONLY has been replaced by an #error.
---
hw/display/vga_int.h | 2 +-
include/hw/dma/i8257.h | 2 +-
include/hw/isa/isa.h | 2 +-
include/{exec => sysemu}/ioport.h | 10 ++++++----
softmmu/ioport.c | 2 +-
softmmu/physmem.c | 2 +-
softmmu/qtest.c | 2 +-
target/i386/nvmm/nvmm-all.c | 2 +-
target/i386/whpx/whpx-all.c | 2 +-
MAINTAINERS | 2 +-
10 files changed, 15 insertions(+), 13 deletions(-)
rename include/{exec => sysemu}/ioport.h (93%)hw/display/vga_int.h +1 -1
@@ -25,7 +25,7 @@#ifndef HW_VGA_INT_H #define HW_VGA_INT_H -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "exec/sysemu/memory.h" #include "ui/console.h"
include/hw/dma/i8257.h +1 -1
@@ -2,7 +2,7 @@#define HW_I8257_H #include "hw/isa/isa.h" -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "qom/object.h" #define TYPE_I8257 "i8257"
include/hw/isa/isa.h +1 -1
@@ -4,7 +4,7 @@/* ISA bus */ #include "exec/sysemu/memory.h" -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "hw/qdev-core.h" #include "qom/object.h"
include/sysemu/ioport.h renamed from include/exec/ioport.h +6 -4
@@ -21,8 +21,12 @@* IO ports API */ -#ifndef IOPORT_H -#define IOPORT_H +#ifndef SYSEMU_IOPORT_H +#define SYSEMU_IOPORT_H + +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif #include "exec/sysemu/memory.h"
@@ -40,9 +44,7 @@ typedef struct MemoryRegionPortio {#define PORTIO_END_OF_LIST () { } -#ifndef CONFIG_USER_ONLY extern const MemoryRegionOps unassigned_io_ops; -#endif typedef struct PortioList { const struct MemoryRegionPortio *ports;
softmmu/ioport.c +1 -1
@@ -26,7 +26,7 @@*/ #include "qemu/osdep.h" -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "exec/sysemu/memory.h" #include "exec/sysemu/address-spaces.h" #include "trace.h"
softmmu/physmem.c +1 -1
@@ -42,7 +42,7 @@#include "qemu/error-report.h" #include "qemu/qemu-print.h" #include "exec/sysemu/memory.h" -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "sysemu/dma.h" #include "sysemu/hostmem.h" #include "sysemu/hw_accel.h"
softmmu/qtest.c +1 -1
@@ -17,7 +17,7 @@#include "sysemu/qtest.h" #include "sysemu/runstate.h" #include "chardev/char-fe.h" -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "exec/sysemu/memory.h" #include "hw/irq.h" #include "qemu/accel.h"
target/i386/nvmm/nvmm-all.c +1 -1
@@ -10,7 +10,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/sysemu/address-spaces.h" -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "qemu-common.h" #include "qemu/accel.h" #include "sysemu/nvmm.h"
target/i386/whpx/whpx-all.c +1 -1
@@ -11,7 +11,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/sysemu/address-spaces.h" -#include "exec/ioport.h" +#include "sysemu/ioport.h" #include "qemu-common.h" #include "qemu/accel.h" #include "sysemu/whpx.h"
MAINTAINERS +1 -1
@@ -2398,7 +2398,7 @@ F: tests/tcg/multiarch/gdbstub/ Memory API M: Paolo Bonzini <[email protected]> S: Supported -F: include/exec/ioport.h +F: include/sysemu/ioport.h F: include/exec/memop.h F: include/exec/sysemu/memory.h F: include/exec/ram_addr.h
Signature · 1 line
2.26.3
PATCH 9/11 exec: Restrict ram_addr.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the ram_addr.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/ram_addr.h,sysemu/ram_addr.h, $(git grep -l exec/ram_addr.h)
Then the #ifdef'ry conditional on CONFIG_USER_ONLY has been replaced by an #error.
---
include/{exec => sysemu}/ram_addr.h | 11 +++++++----
accel/kvm/kvm-all.c | 2 +-
accel/tcg/cputlb.c | 2 +-
accel/tcg/translate-all.c | 2 +-
hw/ppc/spapr.c | 2 +-
hw/ppc/spapr_caps.c | 2 +-
hw/ppc/spapr_pci.c | 2 +-
hw/remote/memory.c | 2 +-
hw/remote/proxy-memory-listener.c | 2 +-
hw/s390x/s390-stattrib-kvm.c | 2 +-
hw/s390x/s390-stattrib.c | 2 +-
hw/s390x/s390-virtio-ccw.c | 2 +-
hw/vfio/common.c | 2 +-
hw/vfio/migration.c | 2 +-
hw/vfio/spapr.c | 2 +-
hw/virtio/virtio-mem.c | 2 +-
migration/ram.c | 2 +-
plugins/api.c | 2 +-
softmmu/memory.c | 2 +-
softmmu/physmem.c | 2 +-
target/arm/mte_helper.c | 2 +-
target/ppc/kvm.c | 2 +-
target/s390x/kvm.c | 2 +-
MAINTAINERS | 2 +-
24 files changed, 30 insertions(+), 27 deletions(-)
rename include/{exec => sysemu}/ram_addr.h (99%)include/sysemu/ram_addr.h renamed from include/exec/ram_addr.h +7 -4
@@ -16,10 +16,13 @@* The functions declared here will be removed soon. */ -#ifndef RAM_ADDR_H -#define RAM_ADDR_H +#ifndef SYSEMU_RAM_ADDR_H +#define SYSEMU_RAM_ADDR_H + +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif -#ifndef CONFIG_USER_ONLY #include "cpu.h" #include "sysemu/xen.h" #include "sysemu/tcg.h"
@@ -513,5 +516,5 @@ uint64_t cpu_physical_memory_sync_dirty_bitmap(RAMBlock *rb, return num_dirty; } -#endif +#endif
accel/kvm/kvm-all.c +1 -1
@@ -32,7 +32,7 @@#include "sysemu/cpus.h" #include "qemu/bswap.h" #include "exec/sysemu/memory.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "qemu/event_notifier.h" #include "qemu/main-loop.h" #include "trace.h"
accel/tcg/cputlb.c +1 -1
@@ -26,7 +26,7 @@#include "exec/sysemu/cputlb.h" #include "exec/tb-hash.h" #include "exec/sysemu/memory-internal.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "tcg/tcg.h" #include "qemu/error-report.h" #include "exec/log.h"
accel/tcg/translate-all.c +1 -1
@@ -44,7 +44,7 @@#endif #else /* !CONFIG_USER_ONLY */ #include "exec/sysemu/cputlb.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #endif /* CONFIG_USER_ONLY */ #include "exec/tb-hash.h"
hw/ppc/spapr.c +1 -1
@@ -69,7 +69,7 @@#include "hw/virtio/virtio-scsi.h" #include "hw/virtio/vhost-scsi-common.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "hw/usb.h" #include "qemu/config-file.h" #include "qemu/error-report.h"
hw/ppc/spapr_caps.c +1 -1
@@ -27,7 +27,7 @@#include "qapi/error.h" #include "qapi/visitor.h" #include "sysemu/hw_accel.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "target/ppc/cpu.h" #include "target/ppc/mmu-hash64.h" #include "cpu-models.h"
hw/ppc/spapr_pci.c +1 -1
@@ -34,7 +34,7 @@#include "hw/pci/pci_host.h" #include "hw/ppc/spapr.h" #include "hw/pci-host/spapr.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include <libfdt.h> #include "trace.h" #include "qemu/error-report.h"
hw/remote/memory.c +1 -1
@@ -12,7 +12,7 @@#include "qemu-common.h" #include "hw/remote/memory.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "qapi/error.h" static void remote_sysmem_reset (void )
hw/remote/proxy-memory-listener.c +1 -1
@@ -14,7 +14,7 @@#include "qemu/range.h" #include "exec/sysemu/memory.h" #include "exec/cpu-common.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "qapi/error.h" #include "hw/remote/mpqemu-link.h" #include "hw/remote/proxy-memory-listener.h"
hw/s390x/s390-stattrib-kvm.c +1 -1
@@ -15,7 +15,7 @@#include "hw/s390x/storage-attributes.h" #include "qemu/error-report.h" #include "sysemu/kvm.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "kvm_s390x.h" Object *kvm_s390_stattrib_create (void )
hw/s390x/s390-stattrib.c +1 -1
@@ -15,7 +15,7 @@#include "migration/register.h" #include "hw/s390x/storage-attributes.h" #include "qemu/error-report.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "qapi/error.h" #include "qapi/qmp/qdict.h"
hw/s390x/s390-virtio-ccw.c +1 -1
@@ -13,7 +13,7 @@#include "qemu/osdep.h" #include "qapi/error.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "hw/s390x/s390-virtio-hcall.h" #include "hw/s390x/sclp.h" #include "hw/s390x/s390_flic.h"
hw/vfio/common.c +1 -1
@@ -29,7 +29,7 @@#include "hw/vfio/vfio.h" #include "exec/sysemu/address-spaces.h" #include "exec/sysemu/memory.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "hw/hw.h" #include "qemu/error-report.h" #include "qemu/main-loop.h"
hw/vfio/migration.c +1 -1
@@ -23,7 +23,7 @@#include "migration/misc.h" #include "qapi/error.h" #include "exec/ramlist.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "pci.h" #include "trace.h" #include "hw/hw.h"
hw/vfio/spapr.c +1 -1
@@ -14,7 +14,7 @@#include "hw/vfio/vfio-common.h" #include "hw/hw.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "qemu/error-report.h" #include "qapi/error.h" #include "trace.h"
hw/virtio/virtio-mem.c +1 -1
@@ -25,7 +25,7 @@#include "hw/virtio/virtio-mem.h" #include "qapi/error.h" #include "qapi/visitor.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "migration/misc.h" #include "hw/boards.h" #include "hw/qdev-properties.h"
migration/ram.c +1 -1
@@ -45,7 +45,7 @@#include "qapi/qapi-events-migration.h" #include "qapi/qmp/qerror.h" #include "trace.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "exec/target_page.h" #include "qemu/rcu_queue.h" #include "migration/colo.h"
plugins/api.c +1 -1
@@ -38,7 +38,7 @@#include "qemu/plugin.h" #include "tcg/tcg.h" #include "exec/exec-all.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "disas/disas.h" #include "plugin.h" #ifndef CONFIG_USER_ONLY
softmmu/memory.c +1 -1
@@ -26,7 +26,7 @@#include "trace.h" #include "exec/sysemu/memory-internal.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "sysemu/kvm.h" #include "sysemu/runstate.h" #include "sysemu/tcg.h"
softmmu/physmem.c +1 -1
@@ -59,7 +59,7 @@#include "sysemu/replay.h" #include "exec/sysemu/memory-internal.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "exec/log.h" #include "qemu/pmem.h"
target/arm/mte_helper.c +1 -1
@@ -21,7 +21,7 @@#include "cpu.h" #include "internals.h" #include "exec/exec-all.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "qapi/error.h"
target/ppc/kvm.c +1 -1
@@ -43,7 +43,7 @@#include "trace.h" #include "exec/gdbstub.h" #include "exec/memattrs.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "sysemu/hostmem.h" #include "qemu/cutils.h" #include "qemu/main-loop.h"
target/s390x/kvm.c +1 -1
@@ -42,7 +42,7 @@#include "sysemu/runstate.h" #include "sysemu/device_tree.h" #include "exec/gdbstub.h" -#include "exec/ram_addr.h" +#include "sysemu/ram_addr.h" #include "trace.h" #include "hw/s390x/s390-pci-inst.h" #include "hw/s390x/s390-pci-bus.h"
MAINTAINERS +1 -1
@@ -2401,7 +2401,7 @@ S: Supported F: include/sysemu/ioport.h F: include/exec/memop.h F: include/exec/sysemu/memory.h -F: include/exec/ram_addr.h +F: include/sysemu/ram_addr.h F: include/exec/ramblock.h F: softmmu/dma-helpers.c F: softmmu/ioport.c
Signature · 1 line
2.26.3
PATCH 10/11 exec: Restrict ramblock.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the ramblock.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/ramblock.h,sysemu/ramblock.h, $(git grep -l exec/ramblock.h)
Then the #ifdef'ry conditional on CONFIG_USER_ONLY has been replaced by an #error.
---
include/sysemu/ram_addr.h | 2 +-
include/{exec => sysemu}/ramblock.h | 13 ++++++++-----
migration/dirtyrate.c | 2 +-
migration/multifd.c | 2 +-
migration/postcopy-ram.c | 2 +-
tests/qtest/fuzz/generic_fuzz.c | 2 +-
MAINTAINERS | 2 +-
7 files changed, 14 insertions(+), 11 deletions(-)
rename include/{exec => sysemu}/ramblock.h (92%)include/sysemu/ram_addr.h +1 -1
@@ -27,7 +27,7 @@#include "sysemu/xen.h" #include "sysemu/tcg.h" #include "exec/ramlist.h" -#include "exec/ramblock.h" +#include "sysemu/ramblock.h" /** * clear_bmap_size: calculate clear bitmap size
include/sysemu/ramblock.h renamed from include/exec/ramblock.h +8 -5
@@ -16,11 +16,14 @@* The functions declared here will be removed soon. */ -#ifndef QEMU_EXEC_RAMBLOCK_H -#define QEMU_EXEC_RAMBLOCK_H +#ifndef QEMU_SYSEMU_RAMBLOCK_H +#define QEMU_SYSEMU_RAMBLOCK_H -#ifndef CONFIG_USER_ONLY -#include "cpu-common.h" +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif + +#include "exec/cpu-common.h" struct RAMBlock { struct rcu_head rcu;
@@ -70,5 +73,5 @@ struct RAMBlock {*/ ram_addr_t postcopy_length; }; -#endif +#endif
migration/dirtyrate.c +1 -1
@@ -14,7 +14,7 @@#include <zlib.h> #include "qapi/error.h" #include "cpu.h" -#include "exec/ramblock.h" +#include "sysemu/ramblock.h" #include "qemu/rcu_queue.h" #include "qapi/qapi-commands-migration.h" #include "ram.h"
migration/multifd.c +1 -1
@@ -14,7 +14,7 @@#include "qemu/rcu.h" #include "exec/target_page.h" #include "sysemu/sysemu.h" -#include "exec/ramblock.h" +#include "sysemu/ramblock.h" #include "qemu/error-report.h" #include "qapi/error.h" #include "ram.h"
migration/postcopy-ram.c +1 -1
@@ -31,7 +31,7 @@#include "qemu/error-report.h" #include "trace.h" #include "hw/boards.h" -#include "exec/ramblock.h" +#include "sysemu/ramblock.h" /* Arbitrary limit on size of each discard command, * keeps them around ~200 bytes
tests/qtest/fuzz/generic_fuzz.c +1 -1
@@ -21,7 +21,7 @@#include "fork_fuzz.h" #include "string.h" #include "exec/sysemu/memory.h" -#include "exec/ramblock.h" +#include "sysemu/ramblock.h" #include "hw/qdev-core.h" #include "hw/pci/pci.h" #include "hw/boards.h"
MAINTAINERS +1 -1
@@ -2402,7 +2402,7 @@ F: include/sysemu/ioport.h F: include/exec/memop.h F: include/exec/sysemu/memory.h F: include/sysemu/ram_addr.h -F: include/exec/ramblock.h +F: include/sysemu/ramblock.h F: softmmu/dma-helpers.c F: softmmu/ioport.c F: softmmu/memory.c
Signature · 1 line
2.26.3
PATCH 11/11 exec: Restrict confidential-guest-support.h to sysemu/
In reply to Philippe Mathieu-DaudéTo make it clearer the confidential-guest-support.h header is sysemu specific, move it to the sysemu/ directory.
Patch created mechanically using:
$ sed -i s,exec/confidential-guest-support.h,sysemu/confidential-guest-support.h, \
$(git grep -l exec/confidential-guest-support.h)Then the #ifdef'ry conditional on CONFIG_USER_ONLY has been replaced by an #error.
---
include/{exec => sysemu}/confidential-guest-support.h | 6 +++---
backends/confidential-guest-support.c | 2 +-
hw/core/machine.c | 2 +-
hw/ppc/pef.c | 2 +-
hw/s390x/pv.c | 2 +-
softmmu/vl.c | 2 +-
target/i386/sev.c | 2 +-
7 files changed, 9 insertions(+), 9 deletions(-)
rename include/{exec => sysemu}/confidential-guest-support.h (95%)include/sysemu/confidential-guest-support.h renamed from include/exec/confidential-guest-support.h +3 -3
@@ -18,7 +18,9 @@#ifndef QEMU_CONFIDENTIAL_GUEST_SUPPORT_H #define QEMU_CONFIDENTIAL_GUEST_SUPPORT_H -#ifndef CONFIG_USER_ONLY +#ifdef CONFIG_USER_ONLY +#error Cannot include sysemu specific header from user emulation +#endif #include "qom/object.h"
@@ -57,6 +59,4 @@ typedef struct ConfidentialGuestSupportClass { ObjectClass parent; } ConfidentialGuestSupportClass; -#endif /* !CONFIG_USER_ONLY */ -#endif /* QEMU_CONFIDENTIAL_GUEST_SUPPORT_H */
backends/confidential-guest-support.c +1 -1
@@ -13,7 +13,7 @@#include "qemu/osdep.h" -#include "exec/confidential-guest-support.h" +#include "sysemu/confidential-guest-support.h" OBJECT_DEFINE_ABSTRACT_TYPE(ConfidentialGuestSupport, confidential_guest_support,
hw/core/machine.c +1 -1
@@ -32,7 +32,7 @@#include "hw/mem/nvdimm.h" #include "migration/global_state.h" #include "migration/vmstate.h" -#include "exec/confidential-guest-support.h" +#include "sysemu/confidential-guest-support.h" #include "hw/virtio/virtio.h" #include "hw/virtio/virtio-pci.h"
hw/ppc/pef.c +1 -1
@@ -14,7 +14,7 @@#include "qom/object_interfaces.h" #include "sysemu/kvm.h" #include "migration/blocker.h" -#include "exec/confidential-guest-support.h" +#include "sysemu/confidential-guest-support.h" #include "hw/ppc/pef.h" #define TYPE_PEF_GUEST "pef-guest"
hw/s390x/pv.c +1 -1
@@ -17,7 +17,7 @@#include "qemu/error-report.h" #include "sysemu/kvm.h" #include "qom/object_interfaces.h" -#include "exec/confidential-guest-support.h" +#include "sysemu/confidential-guest-support.h" #include "hw/s390x/ipl.h" #include "hw/s390x/pv.h"
softmmu/vl.c +1 -1
@@ -102,7 +102,7 @@#include "qemu/plugin.h" #include "qemu/queue.h" #include "sysemu/arch_init.h" -#include "exec/confidential-guest-support.h" +#include "sysemu/confidential-guest-support.h" #include "ui/qemu-spice.h" #include "qapi/string-input-visitor.h"
target/i386/sev.c +1 -1
@@ -31,7 +31,7 @@#include "migration/blocker.h" #include "qom/object.h" #include "monitor/monitor.h" -#include "exec/confidential-guest-support.h" +#include "sysemu/confidential-guest-support.h" #include "hw/i386/pc.h" #define TYPE_SEV_GUEST "sev-guest"
Signature · 1 line
2.26.3
Ping for review? :)
Quoted 47 lines · Philippe Mathieu-Daudé
Hi,
This series restricts various system emulation specific headers by moving them under sysemu/ and adding #error if included from user emulation.
We could avoid the sysemu/ rename if too much churn, but enforcing error of headers that must not be included in user emulation allows further cleanups (to be sent later).I had to split the
ioport.cfile to cpu-io (generic to any target having access to I/O bus, but I haven't checked the TCG implementation details for user emulation) VS ioport (system specific, access to hardware).Many files are changed, but this is mostly one-line mechanical updates of old path to new path using sed.
Regards,
Phil.
Philippe Mathieu-Daudé (11):
NOTFORMERGE target/arm: Restrict KVM files to softmmu
exec: Restricthwaddr.hto sysemu/
exec: Restrictcputlb.hto sysemu/
exec: Restrictmemory.hto sysemu/
exec: Restrictmemory-internal.hto sysemu/
exec: Restrictaddress-spaces.hto sysemu/
exec: Extract CPU I/O instructions to "cpu-io.h"
exec: Restrictioport.hto sysemu/
exec: Restrictram_addr.hto sysemu/
exec: Restrictramblock.hto sysemu/
exec: Restrictconfidential-guest-support.hto sysemu/275 files changed, 491 insertions(+), 409 deletions(-) create mode 100644 include/exec/cpu-io.h rename include/exec/{ => sysemu}/address-spaces.h (80%) rename include/exec/{ => sysemu}/cputlb.h (86%) rename include/exec/{ => sysemu}/hwaddr.h (81%) rename include/exec/{ => sysemu}/memory-internal.h (94%) rename include/exec/{ => sysemu}/memory.h (99%) rename include/{exec => sysemu}/confidential-guest-support.h (95%) rename include/{exec => sysemu}/ioport.h (86%) rename include/{exec => sysemu}/ram_addr.h (99%) rename include/{exec => sysemu}/ramblock.h (92%) create mode 100644 softmmu/cpu-io.c
6 months passed, heavy rebased required, dropping for now.
Quoted 51 lines · Philippe Mathieu-Daudé
Ping for review? :)
Quoted 47 lines · Philippe Mathieu-Daudé
Hi,
This series restricts various system emulation specific headers by moving them under sysemu/ and adding #error if included from user emulation.
We could avoid the sysemu/ rename if too much churn, but enforcing error of headers that must not be included in user emulation allows further cleanups (to be sent later).I had to split the
ioport.cfile to cpu-io (generic to any target having access to I/O bus, but I haven't checked the TCG implementation details for user emulation) VS ioport (system specific, access to hardware).Many files are changed, but this is mostly one-line mechanical updates of old path to new path using sed.
Regards,
Phil.
Philippe Mathieu-Daudé (11):
NOTFORMERGE target/arm: Restrict KVM files to softmmu
exec: Restricthwaddr.hto sysemu/
exec: Restrictcputlb.hto sysemu/
exec: Restrictmemory.hto sysemu/
exec: Restrictmemory-internal.hto sysemu/
exec: Restrictaddress-spaces.hto sysemu/
exec: Extract CPU I/O instructions to "cpu-io.h"
exec: Restrictioport.hto sysemu/
exec: Restrictram_addr.hto sysemu/
exec: Restrictramblock.hto sysemu/
exec: Restrictconfidential-guest-support.hto sysemu/275 files changed, 491 insertions(+), 409 deletions(-) create mode 100644 include/exec/cpu-io.h rename include/exec/{ => sysemu}/address-spaces.h (80%) rename include/exec/{ => sysemu}/cputlb.h (86%) rename include/exec/{ => sysemu}/hwaddr.h (81%) rename include/exec/{ => sysemu}/memory-internal.h (94%) rename include/exec/{ => sysemu}/memory.h (99%) rename include/{exec => sysemu}/confidential-guest-support.h (95%) rename include/{exec => sysemu}/ioport.h (86%) rename include/{exec => sysemu}/ram_addr.h (99%) rename include/{exec => sysemu}/ramblock.h (92%) create mode 100644 softmmu/cpu-io.c