ACRN:DM: Export BLOB feature to guest

The DMABuf sharing is based on the BLOB feature. This will
check the attribute of system memory for guest_vm and udmabuf.list_limit
parameter. If it meets with the requirement, export the BLOB feature
so that the FE driver in guest_vm can send the blob cmd.
VIRTIO_GPU_CMD_CREATE_BLOB:
VIRTIO_GPU_CMD_SET_SCANOUT_BLOB:
VIRTIO_GPU_CMD_SET_FLUSH(BLOB)

Tracked-On: #7210

Acked-by: Wang Yu <yu1.wang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
Zhao Yakui
2022-04-01 10:56:47 +08:00
committed by acrnsi-robot
parent c19b2bed18
commit 34bfaa71f6
3 changed files with 69 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ struct vm_mem_region {
};
bool vm_find_memfd_region(struct vmctx *ctx, vm_paddr_t gpa,
struct vm_mem_region *ret_region);
bool vm_allow_dmabuf(struct vmctx *ctx);
/*
* Create a device memory segment identified by 'segid'.
*