Message ID | 20250313034524.3069690-24-richard.henderson@linaro.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | accel/tcg, codebase: Build once patches | expand |
Richard Henderson <richard.henderson@linaro.org> writes: > Convert the existing includes with sed. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > include/{exec => system}/ram_addr.h | 7 +++---- > 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/container.c | 2 +- > hw/vfio/iommufd.c | 2 +- > hw/vfio/migration.c | 2 +- > hw/vfio/spapr.c | 2 +- > hw/virtio/virtio-mem.c | 2 +- > migration/ram.c | 2 +- > system/memory.c | 2 +- > system/physmem.c | 2 +- > target/arm/tcg/mte_helper.c | 2 +- > target/ppc/kvm.c | 2 +- > target/s390x/kvm/kvm.c | 2 +- > MAINTAINERS | 2 +- > 25 files changed, 27 insertions(+), 28 deletions(-) > rename include/{exec => system}/ram_addr.h (99%) > > diff --git a/include/exec/ram_addr.h b/include/system/ram_addr.h > similarity index 99% > rename from include/exec/ram_addr.h > rename to include/system/ram_addr.h > index 3d8df4edf1..65f8f37b2a 100644 After rebase: modified hw/vfio/common.c @@ -30,7 +30,6 @@ #include "system/address-spaces.h" #include "system/memory.h" #include "system/ram_addr.h" -#include "exec/ram_addr.h" #include "exec/target_page.h" #include "hw/hw.h" #include "qemu/error-report.h" modified hw/vfio/iommufd.c @@ -25,7 +25,6 @@ #include "qemu/cutils.h" #include "qemu/chardev_open.h" #include "pci.h" -#include "system/ram_addr.h" static int iommufd_cdev_map(const VFIOContainerBase *bcontainer, hwaddr iova,
On 3/12/25 20:45, Richard Henderson wrote: > Convert the existing includes with sed. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > include/{exec => system}/ram_addr.h | 7 +++---- > 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/container.c | 2 +- > hw/vfio/iommufd.c | 2 +- > hw/vfio/migration.c | 2 +- > hw/vfio/spapr.c | 2 +- > hw/virtio/virtio-mem.c | 2 +- > migration/ram.c | 2 +- > system/memory.c | 2 +- > system/physmem.c | 2 +- > target/arm/tcg/mte_helper.c | 2 +- > target/ppc/kvm.c | 2 +- > target/s390x/kvm/kvm.c | 2 +- > MAINTAINERS | 2 +- > 25 files changed, 27 insertions(+), 28 deletions(-) > rename include/{exec => system}/ram_addr.h (99%) > > diff --git a/include/exec/ram_addr.h b/include/system/ram_addr.h > similarity index 99% > rename from include/exec/ram_addr.h > rename to include/system/ram_addr.h > index 3d8df4edf1..65f8f37b2a 100644 > --- a/include/exec/ram_addr.h > +++ b/include/system/ram_addr.h > @@ -16,10 +16,9 @@ > * The functions declared here will be removed soon. > */ > > -#ifndef RAM_ADDR_H > -#define RAM_ADDR_H > +#ifndef SYSTEM_RAM_ADDR_H > +#define SYSTEM_RAM_ADDR_H > > -#ifndef CONFIG_USER_ONLY > #include "cpu.h" > #include "system/xen.h" > #include "system/tcg.h" > @@ -557,5 +556,5 @@ uint64_t cpu_physical_memory_sync_dirty_bitmap(RAMBlock *rb, > > return num_dirty; > } > -#endif > + > #endif > diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c > index 0d47bb0d9b..0723a3933b 100644 > --- a/accel/kvm/kvm-all.c > +++ b/accel/kvm/kvm-all.c > @@ -34,7 +34,7 @@ > #include "system/accel-blocker.h" > #include "qemu/bswap.h" > #include "system/memory.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "qemu/event_notifier.h" > #include "qemu/main-loop.h" > #include "trace.h" > diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c > index 6f0ea9067b..134e523cab 100644 > --- a/accel/tcg/cputlb.c > +++ b/accel/tcg/cputlb.c > @@ -27,7 +27,7 @@ > #include "exec/cputlb.h" > #include "exec/tb-flush.h" > #include "exec/memory-internal.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "exec/mmu-access-type.h" > #include "exec/tlb-common.h" > #include "exec/vaddr.h" > diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c > index 16e5043597..167535bcb1 100644 > --- a/accel/tcg/translate-all.c > +++ b/accel/tcg/translate-all.c > @@ -40,7 +40,7 @@ > #endif > #endif > #else > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #endif > > #include "exec/cputlb.h" > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index c15340a58d..e31bc0f0f3 100644 > --- a/hw/ppc/spapr.c > +++ b/hw/ppc/spapr.c > @@ -74,7 +74,7 @@ > #include "hw/virtio/virtio-scsi.h" > #include "hw/virtio/vhost-scsi-common.h" > > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "system/confidential-guest-support.h" > #include "hw/usb.h" > #include "qemu/config-file.h" > diff --git a/hw/ppc/spapr_caps.c b/hw/ppc/spapr_caps.c > index 904bff87ce..fb010bd215 100644 > --- a/hw/ppc/spapr_caps.c > +++ b/hw/ppc/spapr_caps.c > @@ -27,7 +27,7 @@ > #include "qapi/error.h" > #include "qapi/visitor.h" > #include "system/hw_accel.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "target/ppc/cpu.h" > #include "target/ppc/mmu-hash64.h" > #include "cpu-models.h" > diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c > index e0a9d50edc..384269b831 100644 > --- a/hw/ppc/spapr_pci.c > +++ b/hw/ppc/spapr_pci.c > @@ -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 "system/ram_addr.h" > #include <libfdt.h> > #include "trace.h" > #include "qemu/error-report.h" > diff --git a/hw/remote/memory.c b/hw/remote/memory.c > index 6d60da91e0..00193a552f 100644 > --- a/hw/remote/memory.c > +++ b/hw/remote/memory.c > @@ -11,7 +11,7 @@ > #include "qemu/osdep.h" > > #include "hw/remote/memory.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "qapi/error.h" > > static void remote_sysmem_reset(void) > diff --git a/hw/remote/proxy-memory-listener.c b/hw/remote/proxy-memory-listener.c > index ce7f5b9bfb..30ac74961d 100644 > --- a/hw/remote/proxy-memory-listener.c > +++ b/hw/remote/proxy-memory-listener.c > @@ -12,7 +12,7 @@ > #include "qemu/range.h" > #include "system/memory.h" > #include "exec/cpu-common.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "qapi/error.h" > #include "qemu/error-report.h" > #include "hw/remote/mpqemu-link.h" > diff --git a/hw/s390x/s390-stattrib-kvm.c b/hw/s390x/s390-stattrib-kvm.c > index 2a8e31718b..f5695b0e53 100644 > --- a/hw/s390x/s390-stattrib-kvm.c > +++ b/hw/s390x/s390-stattrib-kvm.c > @@ -16,7 +16,7 @@ > #include "qemu/error-report.h" > #include "system/kvm.h" > #include "system/memory_mapping.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "kvm/kvm_s390x.h" > #include "qapi/error.h" > > diff --git a/hw/s390x/s390-stattrib.c b/hw/s390x/s390-stattrib.c > index be07c28c6e..d95b58a8a8 100644 > --- a/hw/s390x/s390-stattrib.c > +++ b/hw/s390x/s390-stattrib.c > @@ -16,7 +16,7 @@ > #include "hw/qdev-properties.h" > #include "hw/s390x/storage-attributes.h" > #include "qemu/error-report.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "qapi/error.h" > #include "qobject/qdict.h" > #include "cpu.h" > diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c > index a9b3db19f6..d284b1c7d2 100644 > --- a/hw/s390x/s390-virtio-ccw.c > +++ b/hw/s390x/s390-virtio-ccw.c > @@ -13,7 +13,7 @@ > > #include "qemu/osdep.h" > #include "qapi/error.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "system/confidential-guest-support.h" > #include "hw/boards.h" > #include "hw/s390x/sclp.h" > diff --git a/hw/vfio/common.c b/hw/vfio/common.c > index 5c3bc88222..f2d30cb06e 100644 > --- a/hw/vfio/common.c > +++ b/hw/vfio/common.c > @@ -29,7 +29,7 @@ > #include "hw/vfio/pci.h" > #include "system/address-spaces.h" > #include "system/memory.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "hw/hw.h" > #include "qemu/error-report.h" > #include "qemu/main-loop.h" > diff --git a/hw/vfio/container.c b/hw/vfio/container.c > index 2e993c7e73..812d5edbcf 100644 > --- a/hw/vfio/container.c > +++ b/hw/vfio/container.c > @@ -25,7 +25,7 @@ > #include "hw/vfio/vfio-common.h" > #include "system/address-spaces.h" > #include "system/memory.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "qemu/error-report.h" > #include "qemu/range.h" > #include "system/reset.h" > diff --git a/hw/vfio/iommufd.c b/hw/vfio/iommufd.c > index df61edffc0..ec323fa32b 100644 > --- a/hw/vfio/iommufd.c > +++ b/hw/vfio/iommufd.c > @@ -25,7 +25,7 @@ > #include "qemu/cutils.h" > #include "qemu/chardev_open.h" > #include "pci.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > > static int iommufd_cdev_map(const VFIOContainerBase *bcontainer, hwaddr iova, > ram_addr_t size, void *vaddr, bool readonly) > diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c > index 416643ddd6..273618c7e0 100644 > --- a/hw/vfio/migration.c > +++ b/hw/vfio/migration.c > @@ -27,7 +27,7 @@ > #include "qapi/error.h" > #include "qapi/qapi-events-vfio.h" > #include "exec/ramlist.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "pci.h" > #include "trace.h" > #include "hw/hw.h" > diff --git a/hw/vfio/spapr.c b/hw/vfio/spapr.c > index bc00badb34..3c9a4385a2 100644 > --- a/hw/vfio/spapr.c > +++ b/hw/vfio/spapr.c > @@ -19,7 +19,7 @@ > > #include "hw/vfio/vfio-common.h" > #include "hw/hw.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "qemu/error-report.h" > #include "qapi/error.h" > #include "trace.h" > diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c > index 7b140add76..f6c9aca291 100644 > --- a/hw/virtio/virtio-mem.c > +++ b/hw/virtio/virtio-mem.c > @@ -24,7 +24,7 @@ > #include "hw/virtio/virtio-mem.h" > #include "qapi/error.h" > #include "qapi/visitor.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "migration/misc.h" > #include "hw/boards.h" > #include "hw/qdev-properties.h" > diff --git a/migration/ram.c b/migration/ram.c > index 424df6d9f1..6295f675df 100644 > --- a/migration/ram.c > +++ b/migration/ram.c > @@ -48,7 +48,7 @@ > #include "qapi/qapi-commands-migration.h" > #include "qapi/qmp/qerror.h" > #include "trace.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "exec/target_page.h" > #include "qemu/rcu_queue.h" > #include "migration/colo.h" > diff --git a/system/memory.c b/system/memory.c > index 050bffdbf8..faddcbfd8a 100644 > --- a/system/memory.c > +++ b/system/memory.c > @@ -26,7 +26,7 @@ > #include "trace.h" > > #include "exec/memory-internal.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "system/kvm.h" > #include "system/runstate.h" > #include "system/tcg.h" > diff --git a/system/physmem.c b/system/physmem.c > index 2850e14780..765d195cb0 100644 > --- a/system/physmem.c > +++ b/system/physmem.c > @@ -67,7 +67,7 @@ > #include "system/replay.h" > > #include "exec/memory-internal.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > > #include "qemu/pmem.h" > > diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c > index 5d6d8a17ae..80164a8050 100644 > --- a/target/arm/tcg/mte_helper.c > +++ b/target/arm/tcg/mte_helper.c > @@ -27,7 +27,7 @@ > #include "user/cpu_loop.h" > #include "user/page-protection.h" > #else > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #endif > #include "exec/cpu_ldst.h" > #include "exec/helper-proto.h" > diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c > index 216638dee4..4e2663e3f1 100644 > --- a/target/ppc/kvm.c > +++ b/target/ppc/kvm.c > @@ -41,7 +41,7 @@ > #include "trace.h" > #include "gdbstub/enums.h" > #include "exec/memattrs.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "system/hostmem.h" > #include "qemu/cutils.h" > #include "qemu/main-loop.h" > diff --git a/target/s390x/kvm/kvm.c b/target/s390x/kvm/kvm.c > index 4d56e653dd..b9f1422197 100644 > --- a/target/s390x/kvm/kvm.c > +++ b/target/s390x/kvm/kvm.c > @@ -41,7 +41,7 @@ > #include "system/runstate.h" > #include "system/device_tree.h" > #include "gdbstub/enums.h" > -#include "exec/ram_addr.h" > +#include "system/ram_addr.h" > #include "trace.h" > #include "hw/s390x/s390-pci-inst.h" > #include "hw/s390x/s390-pci-bus.h" > diff --git a/MAINTAINERS b/MAINTAINERS > index 751d611613..2cc0b54ec4 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3110,7 +3110,7 @@ S: Supported > F: include/system/ioport.h > F: include/exec/memop.h > F: include/system/memory.h > -F: include/exec/ram_addr.h > +F: include/system/ram_addr.h > F: include/exec/ramblock.h > F: include/system/memory_mapping.h > F: system/dma-helpers.c Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
diff --git a/include/exec/ram_addr.h b/include/system/ram_addr.h similarity index 99% rename from include/exec/ram_addr.h rename to include/system/ram_addr.h index 3d8df4edf1..65f8f37b2a 100644 --- a/include/exec/ram_addr.h +++ b/include/system/ram_addr.h @@ -16,10 +16,9 @@ * The functions declared here will be removed soon. */ -#ifndef RAM_ADDR_H -#define RAM_ADDR_H +#ifndef SYSTEM_RAM_ADDR_H +#define SYSTEM_RAM_ADDR_H -#ifndef CONFIG_USER_ONLY #include "cpu.h" #include "system/xen.h" #include "system/tcg.h" @@ -557,5 +556,5 @@ uint64_t cpu_physical_memory_sync_dirty_bitmap(RAMBlock *rb, return num_dirty; } -#endif + #endif diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 0d47bb0d9b..0723a3933b 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -34,7 +34,7 @@ #include "system/accel-blocker.h" #include "qemu/bswap.h" #include "system/memory.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "qemu/event_notifier.h" #include "qemu/main-loop.h" #include "trace.h" diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 6f0ea9067b..134e523cab 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -27,7 +27,7 @@ #include "exec/cputlb.h" #include "exec/tb-flush.h" #include "exec/memory-internal.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "exec/mmu-access-type.h" #include "exec/tlb-common.h" #include "exec/vaddr.h" diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 16e5043597..167535bcb1 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -40,7 +40,7 @@ #endif #endif #else -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #endif #include "exec/cputlb.h" diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c15340a58d..e31bc0f0f3 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -74,7 +74,7 @@ #include "hw/virtio/virtio-scsi.h" #include "hw/virtio/vhost-scsi-common.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "system/confidential-guest-support.h" #include "hw/usb.h" #include "qemu/config-file.h" diff --git a/hw/ppc/spapr_caps.c b/hw/ppc/spapr_caps.c index 904bff87ce..fb010bd215 100644 --- a/hw/ppc/spapr_caps.c +++ b/hw/ppc/spapr_caps.c @@ -27,7 +27,7 @@ #include "qapi/error.h" #include "qapi/visitor.h" #include "system/hw_accel.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "target/ppc/cpu.h" #include "target/ppc/mmu-hash64.h" #include "cpu-models.h" diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index e0a9d50edc..384269b831 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -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 "system/ram_addr.h" #include <libfdt.h> #include "trace.h" #include "qemu/error-report.h" diff --git a/hw/remote/memory.c b/hw/remote/memory.c index 6d60da91e0..00193a552f 100644 --- a/hw/remote/memory.c +++ b/hw/remote/memory.c @@ -11,7 +11,7 @@ #include "qemu/osdep.h" #include "hw/remote/memory.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "qapi/error.h" static void remote_sysmem_reset(void) diff --git a/hw/remote/proxy-memory-listener.c b/hw/remote/proxy-memory-listener.c index ce7f5b9bfb..30ac74961d 100644 --- a/hw/remote/proxy-memory-listener.c +++ b/hw/remote/proxy-memory-listener.c @@ -12,7 +12,7 @@ #include "qemu/range.h" #include "system/memory.h" #include "exec/cpu-common.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "qapi/error.h" #include "qemu/error-report.h" #include "hw/remote/mpqemu-link.h" diff --git a/hw/s390x/s390-stattrib-kvm.c b/hw/s390x/s390-stattrib-kvm.c index 2a8e31718b..f5695b0e53 100644 --- a/hw/s390x/s390-stattrib-kvm.c +++ b/hw/s390x/s390-stattrib-kvm.c @@ -16,7 +16,7 @@ #include "qemu/error-report.h" #include "system/kvm.h" #include "system/memory_mapping.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "kvm/kvm_s390x.h" #include "qapi/error.h" diff --git a/hw/s390x/s390-stattrib.c b/hw/s390x/s390-stattrib.c index be07c28c6e..d95b58a8a8 100644 --- a/hw/s390x/s390-stattrib.c +++ b/hw/s390x/s390-stattrib.c @@ -16,7 +16,7 @@ #include "hw/qdev-properties.h" #include "hw/s390x/storage-attributes.h" #include "qemu/error-report.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "qapi/error.h" #include "qobject/qdict.h" #include "cpu.h" diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index a9b3db19f6..d284b1c7d2 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -13,7 +13,7 @@ #include "qemu/osdep.h" #include "qapi/error.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "system/confidential-guest-support.h" #include "hw/boards.h" #include "hw/s390x/sclp.h" diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 5c3bc88222..f2d30cb06e 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -29,7 +29,7 @@ #include "hw/vfio/pci.h" #include "system/address-spaces.h" #include "system/memory.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "hw/hw.h" #include "qemu/error-report.h" #include "qemu/main-loop.h" diff --git a/hw/vfio/container.c b/hw/vfio/container.c index 2e993c7e73..812d5edbcf 100644 --- a/hw/vfio/container.c +++ b/hw/vfio/container.c @@ -25,7 +25,7 @@ #include "hw/vfio/vfio-common.h" #include "system/address-spaces.h" #include "system/memory.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "qemu/error-report.h" #include "qemu/range.h" #include "system/reset.h" diff --git a/hw/vfio/iommufd.c b/hw/vfio/iommufd.c index df61edffc0..ec323fa32b 100644 --- a/hw/vfio/iommufd.c +++ b/hw/vfio/iommufd.c @@ -25,7 +25,7 @@ #include "qemu/cutils.h" #include "qemu/chardev_open.h" #include "pci.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" static int iommufd_cdev_map(const VFIOContainerBase *bcontainer, hwaddr iova, ram_addr_t size, void *vaddr, bool readonly) diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c index 416643ddd6..273618c7e0 100644 --- a/hw/vfio/migration.c +++ b/hw/vfio/migration.c @@ -27,7 +27,7 @@ #include "qapi/error.h" #include "qapi/qapi-events-vfio.h" #include "exec/ramlist.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "pci.h" #include "trace.h" #include "hw/hw.h" diff --git a/hw/vfio/spapr.c b/hw/vfio/spapr.c index bc00badb34..3c9a4385a2 100644 --- a/hw/vfio/spapr.c +++ b/hw/vfio/spapr.c @@ -19,7 +19,7 @@ #include "hw/vfio/vfio-common.h" #include "hw/hw.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "qemu/error-report.h" #include "qapi/error.h" #include "trace.h" diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c index 7b140add76..f6c9aca291 100644 --- a/hw/virtio/virtio-mem.c +++ b/hw/virtio/virtio-mem.c @@ -24,7 +24,7 @@ #include "hw/virtio/virtio-mem.h" #include "qapi/error.h" #include "qapi/visitor.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "migration/misc.h" #include "hw/boards.h" #include "hw/qdev-properties.h" diff --git a/migration/ram.c b/migration/ram.c index 424df6d9f1..6295f675df 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -48,7 +48,7 @@ #include "qapi/qapi-commands-migration.h" #include "qapi/qmp/qerror.h" #include "trace.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "exec/target_page.h" #include "qemu/rcu_queue.h" #include "migration/colo.h" diff --git a/system/memory.c b/system/memory.c index 050bffdbf8..faddcbfd8a 100644 --- a/system/memory.c +++ b/system/memory.c @@ -26,7 +26,7 @@ #include "trace.h" #include "exec/memory-internal.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "system/kvm.h" #include "system/runstate.h" #include "system/tcg.h" diff --git a/system/physmem.c b/system/physmem.c index 2850e14780..765d195cb0 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -67,7 +67,7 @@ #include "system/replay.h" #include "exec/memory-internal.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "qemu/pmem.h" diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c index 5d6d8a17ae..80164a8050 100644 --- a/target/arm/tcg/mte_helper.c +++ b/target/arm/tcg/mte_helper.c @@ -27,7 +27,7 @@ #include "user/cpu_loop.h" #include "user/page-protection.h" #else -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #endif #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c index 216638dee4..4e2663e3f1 100644 --- a/target/ppc/kvm.c +++ b/target/ppc/kvm.c @@ -41,7 +41,7 @@ #include "trace.h" #include "gdbstub/enums.h" #include "exec/memattrs.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "system/hostmem.h" #include "qemu/cutils.h" #include "qemu/main-loop.h" diff --git a/target/s390x/kvm/kvm.c b/target/s390x/kvm/kvm.c index 4d56e653dd..b9f1422197 100644 --- a/target/s390x/kvm/kvm.c +++ b/target/s390x/kvm/kvm.c @@ -41,7 +41,7 @@ #include "system/runstate.h" #include "system/device_tree.h" #include "gdbstub/enums.h" -#include "exec/ram_addr.h" +#include "system/ram_addr.h" #include "trace.h" #include "hw/s390x/s390-pci-inst.h" #include "hw/s390x/s390-pci-bus.h" diff --git a/MAINTAINERS b/MAINTAINERS index 751d611613..2cc0b54ec4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3110,7 +3110,7 @@ S: Supported F: include/system/ioport.h F: include/exec/memop.h F: include/system/memory.h -F: include/exec/ram_addr.h +F: include/system/ram_addr.h F: include/exec/ramblock.h F: include/system/memory_mapping.h F: system/dma-helpers.c
Convert the existing includes with sed. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- include/{exec => system}/ram_addr.h | 7 +++---- 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/container.c | 2 +- hw/vfio/iommufd.c | 2 +- hw/vfio/migration.c | 2 +- hw/vfio/spapr.c | 2 +- hw/virtio/virtio-mem.c | 2 +- migration/ram.c | 2 +- system/memory.c | 2 +- system/physmem.c | 2 +- target/arm/tcg/mte_helper.c | 2 +- target/ppc/kvm.c | 2 +- target/s390x/kvm/kvm.c | 2 +- MAINTAINERS | 2 +- 25 files changed, 27 insertions(+), 28 deletions(-) rename include/{exec => system}/ram_addr.h (99%)