hcall_assign_mmiodev(9)
π hcall_assign_mmiodev(9) β the Kernel API Manual page, bestie edition π
okay so this is a page from the Kernel API Manual, and the function we're simping for today is hcall_assign_mmiodev. Say hi π
β¨ NAME β¨
hcall_assign_mmiodev β literally just assigns a MMIO device to a User VM. that's the whole vibe. no cap. π¦
πΈ SYNOPSIS πΈ
long hcall_assign_mmiodev (u64 vmid , u64 addr );
two u64s in, one long out. she's efficient like that π
π§ ARGUMENTS π§
vmidβ the User VM ID. which VM are we giving the device to, bestie? π«Άaddrβ the Service VM GPA of thestruct acrn_mmiodev. like, the address of it. in the Service VM. the GPA one. π
β RETURN β
0on success β slay, it worked β¨<0on failure β it's giving error, and honestly? π
π₯ SEE ALSO π₯
Kernel file ./drivers/virt/acrn/hypercall.h β go read it, iykyk π
the whole hypercall friend group, in order, because they always roll together:
hcall_sos_remove_cpu(9)hcall_create_vm(9)hcall_start_vm(9)hcall_pause_vm(9)hcall_destroy_vm(9)hcall_reset_vm(9)hcall_set_vcpu_regs(9)hcall_inject_msi(9)hcall_vm_intr_monitor(9)hcall_set_irqline(9)hcall_set_ioreq_buffer(9)hcall_notify_req_finish(9)hcall_set_memory_regions(9)hcall_create_vdev(9)hcall_destroy_vdev(9)hcall_deassign_mmiodev(9)β yes, she has a sister, the deassign one πhcall_assign_pcidev(9)hcall_deassign_pcidev(9)hcall_set_ptdev_intr(9)hcall_reset_ptdev_intr(9)
bestie note: <0 is not a number, it's a feeling. check your return value. π
okay that's the whole page, mwah π this one lives in ./drivers/virt/acrn, and it's dated October 2026 β mark your calendar, she's a main character πβπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms