]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/misc/ivshmem-flat: Add ivshmem-flat device
authorGustavo Romero <gustavo.romero@linaro.org>
Mon, 27 Nov 2023 05:20:20 +0000 (05:20 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 31 Dec 2024 20:21:27 +0000 (21:21 +0100)
commite6c33efed3ca8ffbf89f0e1dbeac1a0e32d0f8b7
treef2aa28b620f16d29929fa514b1e2cf213c44524c
parentff871d0462d0a7ebdbfadf8c8d6c3726af507f0a
hw/misc/ivshmem-flat: Add ivshmem-flat device

Add a new device, ivshmem-flat, which is similar to the ivshmem PCI but
does not require a PCI bus. It's meant to be used on machines like those
with Cortex-M MCUs, which usually lack a PCI/PCIe bus, e.g. lm3s6965evb
and mps2-an385.

The device currently only supports the sysbus bus.

The new device, just like the ivshmem PCI device, supports both peer
notification via hardware interrupts and shared memory.

The device shared memory size can be set using the 'shmem-size' option
and it defaults to 4 MiB, which is the default size of shmem allocated
by the ivshmem server.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1134
Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
[PMD: Rebased updating Property and using DEFINE_TYPES macro]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241216141818.111255-2-gustavo.romero@linaro.org>
docs/system/device-emulation.rst
docs/system/devices/ivshmem-flat.rst [new file with mode: 0644]
hw/misc/Kconfig
hw/misc/ivshmem-flat.c [new file with mode: 0644]
hw/misc/meson.build
hw/misc/trace-events
include/hw/misc/ivshmem-flat.h [new file with mode: 0644]