search for: memory_id

Displaying 4 results from an estimated 4 matches for "memory_id".

Did you mean: memory_
2019 Apr 10
0
[PATCH 2/3] virtio-gpu api: VIRTIO_GPU_F_MEMORY
...RTIO_GPU_CMD_RESOURCE_ATTACH_MEMORY, /* 3d commands */ VIRTIO_GPU_CMD_CTX_CREATE = 0x0200, @@ -95,6 +105,7 @@ enum virtio_gpu_ctrl_type { VIRTIO_GPU_RESP_ERR_INVALID_RESOURCE_ID, VIRTIO_GPU_RESP_ERR_INVALID_CONTEXT_ID, VIRTIO_GPU_RESP_ERR_INVALID_PARAMETER, + VIRTIO_GPU_RESP_ERR_INVALID_MEMORY_ID, }; #define VIRTIO_GPU_FLAG_FENCE (1 << 0) @@ -187,6 +198,7 @@ struct virtio_gpu_resource_attach_backing { struct virtio_gpu_ctrl_hdr hdr; __le32 resource_id; __le32 nr_entries; + /* struct virtio_gpu_mem_entry entries follow here */ }; /* VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING...
2019 Apr 12
2
[PATCH 3/3] virtio-gpu api: VIRTIO_GPU_F_RESSOURCE_V2
...ufs with this, correct? Let me know if it's a non-goal :-) Yes, even though it is not clear yet how we are going to handle host-allocated buffers in the vhost-user case ... > If so, we might want to distinguish between memory types (kind of like > memoryTypeIndex in Vulkan). [Assuming memory_id is like resource_id] For the host-allocated buffers we surely want that, yes. For guest-allocated memory regions it isn't useful I think ... > 1) Vulkan seems the most straightforward > > virtio_gpu_cmd_memory_create --> create kernel data structure, > vkAllocateMemory on the...
2019 Apr 12
2
[PATCH 3/3] virtio-gpu api: VIRTIO_GPU_F_RESSOURCE_V2
...ufs with this, correct? Let me know if it's a non-goal :-) Yes, even though it is not clear yet how we are going to handle host-allocated buffers in the vhost-user case ... > If so, we might want to distinguish between memory types (kind of like > memoryTypeIndex in Vulkan). [Assuming memory_id is like resource_id] For the host-allocated buffers we surely want that, yes. For guest-allocated memory regions it isn't useful I think ... > 1) Vulkan seems the most straightforward > > virtio_gpu_cmd_memory_create --> create kernel data structure, > vkAllocateMemory on the...
2019 Apr 12
2
[PATCH 3/3] virtio-gpu api: VIRTIO_GPU_F_RESSOURCE_V2
...s might be another dumb question, but is this only an issue for vhost-user(-gpu) case? What mechanisms are used to map host dma-buf into the guest address space? > > > If so, we might want to distinguish between memory types (kind of like > > memoryTypeIndex in Vulkan). [Assuming memory_id is like resource_id] > > For the host-allocated buffers we surely want that, yes. > For guest-allocated memory regions it isn't useful I think ... > Guest-allocated memory regions can be just another memory type. But one needs to create the resource first to know which memory types...