Commit Graph

3 Commits

Author SHA1 Message Date
Peng Fan
c44e8b8fa5 LF-3097/LF-3172 virtio: ivshmem: check peer_state early
We enable the virtio_ivshmem driver and add
shared memory region including pci devices in cell file. But we not
start backend.

There might be garbage data in "vi_dev->virtio_header", so we need to
check peer_state to abort the probe earlier.

Note: patch accepted by Jailhouse Linux repo
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2023-10-30 15:52:10 +08:00
Peng Fan
a38d458fba LF-3016-2 virtio: ivshmem: include linux/dma-map-ops.h
Add missed header to avoid build failure

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2023-10-30 15:52:10 +08:00
Jan Kiszka
d88b1c2033 WIP: virtio: Add virtio-over-ivshmem transport driver
This provides a virtio transport driver over the Inter-VM shared memory
device as found in QEMU and the Jailhouse hypervisor.

...

Note: Specification work for both ivshmem and the virtio transport is
ongoing, so details may still change.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2023-10-30 15:52:07 +08:00