linux-imx/drivers/vhost/Makefile
Peng Fan 47126913de LF-11837-1 vhost_xen: Implement Xen grant/foreign mappings module for vhost
A specific module for accessing descriptors in virtio rings which contain
guest grant based addresses instead of pseudo-physical addresses.
Please see Xen grant DMA-mapping layer at drivers/xen/grant-dma-ops.c
which is the origin of such mapping scheme.
The descriptors are mapped in core vhost's translate_desc(), the target
vhost device is responsible for unmapping them as soon as they are
not used anymore. Wire it to vsock device for now.

Setup watch to specific Xenstore entry "drivers/dom0-qemu-command-monitor/..."
which represents Qemu command line. Hopefully it contains "-xen-domid"
property which is used to configure pass guest domid for Qemu, parse it
to get the required info.

The Xenstore entry "drivers/dom0-qemu-command-monitor/..." which
represents Qemu command line is not present anymore since we
changed a way to configure and spawn Qemu. So get the guest domid
from "device-model" directory once it gets state "running".

The proper solution would be to pass guest domid from Qemu directly
by extending some of VHOST ioctls (for example, VHOST_SET_MEM_TABLE).

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2024-04-07 10:24:50 +08:00

494 B

SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_VHOST_NET) += vhost_net.o vhost_net-y := net.o

obj-$(CONFIG_VHOST_SCSI) += vhost_scsi.o vhost_scsi-y := scsi.o

obj-$(CONFIG_VHOST_VSOCK) += vhost_vsock.o vhost_vsock-y := vsock.o

obj-$(CONFIG_VHOST_RING) += vringh.o

obj-$(CONFIG_VHOST_VDPA) += vhost_vdpa.o vhost_vdpa-y := vdpa.o

obj-$(CONFIG_VHOST) += vhost.o

obj-$(CONFIG_VHOST_IOTLB) += vhost_iotlb.o vhost_iotlb-y := iotlb.o

obj-$(CONFIG_VHOST_XEN) += vhost_xen.o vhost_xen-y := xen.o