vkMapMemory fails with NVIDIA GPU
Command line used to test Venus
$ virgl_test_server --venus
vkcube
output
VN_DEBUG=all vkcube --gpu_number 1
MESA-VIRTIO: debug: vn_env is as below:
debug = 0x1ff
perf = 0x0
draw_cmd_batch_limit = 4294967295
relax_base_sleep_us = 160
MESA-VIRTIO: debug: using ICD interface version 5
MESA-VIRTIO: debug: vn_env is as below:
debug = 0x1ff
perf = 0x0
draw_cmd_batch_limit = 4294967295
relax_base_sleep_us = 160
MESA-VIRTIO: debug: using ICD interface version 5
MESA-VIRTIO: debug: vn_env is as below:
debug = 0x1ff
perf = 0x0
draw_cmd_batch_limit = 4294967295
relax_base_sleep_us = 160
MESA-VIRTIO: debug: using ICD interface version 5
MESA-VIRTIO: debug: vn_env is as below:
debug = 0x1ff
perf = 0x0
draw_cmd_batch_limit = 4294967295
relax_base_sleep_us = 160
MESA-VIRTIO: debug: using ICD interface version 5
MESA-VIRTIO: debug: vn_env is as below:
debug = 0x1ff
perf = 0x0
draw_cmd_batch_limit = 4294967295
relax_base_sleep_us = 160
MESA-VIRTIO: debug: connected to renderer
MESA-VIRTIO: debug: wire format version 1
MESA-VIRTIO: debug: vk xml version 1.3.252
MESA-VIRTIO: debug: VK_EXT_command_serialization spec version 1
MESA-VIRTIO: debug: VK_MESA_venus_protocol spec version 1
MESA-VIRTIO: debug: supports blob id 0: 1
MESA-VIRTIO: debug: allow_vk_wait_syncs: 1
MESA-VIRTIO: debug: supports_multiple_timelines: 1
MESA-VIRTIO: debug: renderer instance version 1.3.274
Selected GPU 1: Virtio-GPU Venus (NVIDIA GeForce RTX 2080 SUPER), type: DiscreteGpu
MESA-VIRTIO: debug: Virtio-GPU Venus (NVIDIA GeForce RTX 2080 SUPER)
MESA-VIRTIO: debug: Mesa 23.3.3-arch1.1
MESA-VIRTIO: debug: failed to mmap 30 of size 16777216 rw: Permission denied
MESA-VIRTIO: debug: vn_MapMemory: VK_ERROR_MEMORY_MAP_FAILED
MESA-VIRTIO: debug: vn_CreateFence: VK_ERROR_OUT_OF_HOST_MEMORY
MESA-VIRTIO: debug: failed to mmap 30 of size 16777216 rw: Permission denied
MESA-VIRTIO: debug: vn_MapMemory: VK_ERROR_MEMORY_MAP_FAILED
MESA-VIRTIO: debug: vn_CreateFence: VK_ERROR_OUT_OF_HOST_MEMORY
MESA-VIRTIO: debug: swapchain 0x5733f561f050: created with surface 0x5733f56106d0, min count 4, size 500x500, mode VK_PRESENT_MODE_FIFO_KHR, old (nil)
MESA-VIRTIO: debug: failed to mmap 30 of size 16777216 rw: Permission denied
MESA-VIRTIO: debug: vn_MapMemory: VK_ERROR_MEMORY_MAP_FAILED
MESA-VIRTIO: debug: vn_CreateFence: VK_ERROR_OUT_OF_HOST_MEMORY
MESA-VIRTIO: debug: failed to mmap 33 of size 262144 rw: Permission denied
MESA-VIRTIO: debug: vn_MapMemory: VK_ERROR_MEMORY_MAP_FAILED
Segmentation fault (core dumped)
Mesa version 23.3.3 Linux 6.7.0 NVIDIA proprietary drivers 545.29.06 Virglrenderer 1.0.1