Docs: the AMD Linux drivers' pointer refusal names what they import
The runtime README's known gap for AMD's open Linux driver on the Radeon 780M said only that Device::import_host_memory of the guest's pages fails in vkAllocateMemory with VK_ERROR_INVALID_EXTERNAL_HANDLE. It now says why, as a consumer needs to know it: both AMD Linux drivers on that card (AMDVLK 2025.Q2.1 and RADV 26.2.6) import a pointer to private anonymous pages only, and refuse shared or file-backed pages, which the guest's memfd mappings are. Verified: m3-max-71516 (gem10's 780M, both drivers) imported MAP_PRIVATE anonymous pages and failed with VK_ERROR_INVALID_EXTERNAL_HANDLE for a memfd's shared mapping and for MAP_SHARED|MAP_ANONYMOUS pages, while vkGetMemoryHostPointerPropertiesEXT offered the same types for all three. Docs only.
This commit is contained in:
1 parent
0e51949ef1
commit
155bbf2712
1 file changed
+3
-1
@@ -999,7 +999,9 @@ the Direct3D 11 texture's payload until it is freed.
|
||||
`Device::import_dma_buf` refuses with `Limit::ImportType`: the fd's query offers every memory
|
||||
type (0xffff), and the first, the only one the dma-buf rule takes (Imported blocks), is not
|
||||
host-visible and host-coherent. `Device::import_host_memory` of the same pages fails in the
|
||||
driver, an `Error::Vulkan` of `vkAllocateMemory` with `VK_ERROR_INVALID_EXTERNAL_HANDLE`.
|
||||
driver, an `Error::Vulkan` of `vkAllocateMemory` with `VK_ERROR_INVALID_EXTERNAL_HANDLE`:
|
||||
both AMD Linux drivers on that card import a pointer to private anonymous pages only, and refuse
|
||||
shared or file-backed pages such as the guest's.
|
||||
`Device::dma_buf_granule` is `None` there, so pages that span more than one dma-buf holds have
|
||||
no dma-buf route. Under RADV (Mesa 26.2.6) on the same card the same pages import as dma-bufs
|
||||
(`import_dma_buf`, and `import_dma_bufs` where they span more than one holds). In one guest run
|
||||
|
||||
Reference in new issue
Block a user