mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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>
This commit is contained in:
parent
ff871d0462
commit
e6c33efed3
7 changed files with 601 additions and 0 deletions
|
@ -72,6 +72,11 @@ config IVSHMEM_DEVICE
|
|||
default y if PCI_DEVICES
|
||||
depends on PCI && LINUX && IVSHMEM && MSI_NONBROKEN
|
||||
|
||||
config IVSHMEM_FLAT_DEVICE
|
||||
bool
|
||||
default y
|
||||
depends on LINUX && IVSHMEM
|
||||
|
||||
config ECCMEMCTL
|
||||
bool
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue