From 155bbf27128bd5451a5f39a1ed272926ecdd9491 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 09:24:49 -0800 Subject: [PATCH] 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. --- crates/metal2vulkan-runtime/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 9ddc40cfa..3aa5fece0 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -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