hcall_destroy_vdev(9)
π hcall_destroy_vdev β a kernel API manual situation
Okay so bestie, welcome to the Kernel API Manual entry for hcall_destroy_vdev(9) β yes that (9) is the section, we're in kernel-API land, put your seatbelt on. π
πΈ NAME πΈ
hcall_destroy_vdev β literally the hypercall that destroys a virtual device of a User VM. That's the whole vibe. Poof, gone, bye. β¨
π¦ SYNOPSIS π¦
long hcall_destroy_vdev (u64 vmid , u64 addr );
That's it, that's the signature. Two u64 args, returns a long. Copy it exactly, don't get cute with the spacing β it's giving "committed to the bit" and we respect it. π
π ARGUMENTS π
vmidβ the User VM ID. Like, which VM are we talking about here. The main character VM. πaddrβ the Service VM GPA of thestruct acrn_vdev. Which is a whole way of saying "the address, from the Service VM's point of view, where that vdev struct lives." Not a vibe check, an address check. π«Ά
β RETURN β
0on success β slay, the device is destroyed π<0on failure β not slay, something went sideways π
That's the whole return contract, no cap. No extra codes, no gray areas, just 0 or negative. Periodt.
π SEE ALSO π
Okay this list is long and honestly iconic, so buckle up. First the source file, then the whole hypercall friendship group:
Kernel file ./drivers/virt/acrn/hypercall.h, plus:
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_assign_mmiodev(9)hcall_deassign_mmiodev(9)hcall_assign_pcidev(9)hcall_deassign_pcidev(9)hcall_set_ptdev_intr(9)hcall_reset_ptdev_intr(9)
That's twenty entries bestie, twenty. Go read them, iykyk. πβ¨
Also lowkey note: hcall_create_vdev(9) is right there in the list, so if you're out here destroying vdevs, you probably want to know how they got created in the first place. Symmetry, queen. π¦
π and that's the page! shipped from ./drivers/virt/acrn, dated October 2026, and it's hcall_destroy_vdev(9) forever and always. bye bestie, go destroy some virtual devices responsibly π
π¦ 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