Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created July 26, 2025 20:16
Show Gist options
  • Save zhuowei/07e93be759722e98a75633b8a6823b27 to your computer and use it in GitHub Desktop.
Save zhuowei/07e93be759722e98a75633b8a6823b27 to your computer and use it in GitHub Desktop.
/ # ./gunyah_vmm -i gunyah_vmm -d sample_vm.dtb -S 0x800000 -D 0x780000 -R 0x770
000
[ 62.874010] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=92 'gunyah_vmm'
survived set user mem region
survived GH_VM_SET_DTB_CONFIG
[RM]allocated vmid=128
[RM]VM_ALLOCATE: 3 vmid=128, ret=0
[RM]MEM_APPEND VM 3 H 0 ret 0
[RM]VM_CONFIG_IMAGE: from:3 vmid:128 auth:0 mp:0 img: 0/0 dt: 0x780000/0x1000
[RM]NOTIFY_VM_STATUS: to: 3 [128: 1/0/0]
[RM]VM_INIT: from:3 vmid:128
[RM]address_range_allocator_alloc: 0x804fbe60 ffffffffffffffff 1000 1000
[RM]DTB: offset:0x780000, size:0x1000
[RM]Warning: addresses in /gunyah-vm-config/memory are not 1:1 physical!
[RM]Warning: interrupts "config" property looks like a phandle (0x1), but should be a path
[RM]address_range_allocator_alloc: 0x80501f20 0 40000000 0
[RM]address_range_allocator_alloc: 0x80501f20 ffffffffffffffff 1000 1000
[RM]NOTIFY_VM_STATUS: to: 3 [128: 2/0/0]
[ 63.555288] ------------[ cut here ]------------
[ 63.555872] WARNING: CPU: 0 PID: 92 at arch/arm64/include/asm/gunyah.h:14 gh_rm_irq_domain_alloc+0x130/0x158
[ 63.558090] Modules linked in:
[ 63.560490] CPU: 0 PID: 92 Comm: gunyah_vmm Not tainted 6.5.0-00025-g4a7178f4c128 #2
[ 63.561316] Hardware name: linux,dummy-virt (DT)
[ 63.562039] pstate: 81400005 (Nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
[ 63.562454] pc : gh_rm_irq_domain_alloc+0x130/0x158
[ 63.562771] lr : gh_rm_irq_domain_alloc+0x90/0x158
[ 63.563049] sp : ffff80008182bb20
[ 63.563261] x29: ffff80008182bb80 x28: 000000000000002c x27: ffff000002d76350
[ 63.563939] x26: 0000000000000000 x25: ffff80008112d000 x24: 0000000000000001
[ 63.564297] x23: ffff000002e04880 x22: 0000000000000000 x21: ffff000002eeaa48
[ 63.564651] x20: ffff000003243000 x19: 0000000000000015 x18: 0000000000000015
[ 63.564995] x17: 000000000000000b x16: 000000000000000a x15: 000000000000000a
[ 63.565376] x14: 000000000000000a x13: ffff000000019c00 x12: ffff000000358e00
[ 63.565754] x11: 0000000000000001 x10: 00000000fffffc03 x9 : ffff00003fdf6428
[ 63.566160] x8 : 00000000ffffffff x7 : 0000000000000000 x6 : 0000000000000004
[ 63.566553] x5 : 0000000000000001 x4 : ffff000002eeaa48 x3 : ffff8000813c2548
[ 63.566906] x2 : 00000000ffffffff x1 : 0000000000000015 x0 : 0000000000000000
[ 63.567553] Call trace:
[ 63.568054] gh_rm_irq_domain_alloc+0x130/0x158
[ 63.568696] irq_domain_alloc_irqs_locked+0x17c/0x34c
[ 63.569000] __irq_domain_alloc_irqs+0x74/0xbc
[ 63.569247] gh_rm_alloc_resource+0x98/0x104
[ 63.569432] gh_vm_start+0x1ec/0x33c
[ 63.569642] gh_vm_ensure_started+0x70/0x90
[ 63.569909] gh_vm_ioctl+0x1f8/0x5c4
[ 63.570102] __arm64_sys_ioctl+0x90/0xc8
[ 63.570340] invoke_syscall+0x40/0x108
[ 63.570542] el0_svc_common+0xb4/0xe4
[ 63.570785] do_el0_svc+0x30/0xa4
[ 63.570986] el0_svc+0x2c/0x7c
[ 63.571160] el0t_64_sync_handler+0x84/0xfc
[ 63.571406] el0t_64_sync+0x190/0x194
[ 63.571906] ---[ end trace 0000000000000000 ]---
[ 63.573149] gh_rsc_mgr hypervisor:qcom,resource-manager-rpc@0000000000000000: virq translation failed 4294967295: -22
[ 63.575129] gh_rsc_mgr hypervisor:qcom,resource-manager-rpc@0000000000000000: Failed to allocate interrupt for resource 4 label: 0: -22
GH_VM_START failed: Out of memory
[RM]assert(err == OK) failed: src/vm_config/vm_config.c:5525
sys_exit/sys_exit_group: called
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment