aboutsummaryrefslogtreecommitdiff
path: root/fsdev/qemu-fsdev.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-18 07:50:20 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-20 14:46:07 +0200
commitf79a525d8d0fe9d6fe4c1925600aa69eb82acbff (patch)
tree3d352b680f1141558b388bbd16c86a4fd6901ad6 /fsdev/qemu-fsdev.c
parent05af744babc44a99a5043082805b34e591e5a39e (diff)
downloadqemu-f79a525d8d0fe9d6fe4c1925600aa69eb82acbff.zip
qemu-f79a525d8d0fe9d6fe4c1925600aa69eb82acbff.tar.gz
qemu-f79a525d8d0fe9d6fe4c1925600aa69eb82acbff.tar.bz2
hw/i386/amd_iommu: Do not use SysBus API to map local MMIO region
There is no point in exposing an internal MMIO region via SysBus and directly mapping it in the very same device. Just map it without using the SysBus API. Transformation done using the following coccinelle script: @@ expression sbdev; expression index; expression addr; expression subregion; @@ - sysbus_init_mmio(sbdev, subregion); ... when != sbdev - sysbus_mmio_map(sbdev, index, addr); + memory_region_add_subregion(get_system_memory(), addr, subregion); Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20231018141151.87466-2-philmd@linaro.org>
Diffstat (limited to 'fsdev/qemu-fsdev.c')
0 files changed, 0 insertions, 0 deletions