hcall_set_ptdev_intr(9)
π hcall_set_ptdev_intr β like, the Kernel API Manual page, bestie β¨
okay so picture this: you're deep in the hcall_set_ptdev_intr(9) glow-up of the Kernel API Manual, and the whole vibe is "set up an interrupt for a PCI device that's been assigned to a VM". that's the entire main character energy of this page. no cap. π
β¨ NAME β¨
hcall_set_ptdev_intr β configure an interrupt for an assigned PCI device. literally its whole job, and it ate. π₯
π¦ SYNOPSIS π¦
long hcall_set_ptdev_intr (u64 vmid , u64 irq );
look at her go. two u64s and a long. iconic signature, no notes. π
πΈ ARGUMENTS πΈ
vmidβ the User VM ID, aka which VM we're doing this for. know your girl's ID, bestie. π«Άirqβ the Service VM GPA of thestruct acrn_ptdev_irq. yes it's a GPA, yes it's pointing at that struct, yes you need to keep it straight. iykyk. π
β RETURN β
0on success π<0on failure π (negative numbers = the sad path, fr fr)
π SEE ALSO π
bestie. the friend group is huge and they're all in Kernel file ./drivers/virt/acrn/hypercall.h. every single one of these, no skipping:
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_assign_mmiodev(9)hcall_deassign_mmiodev(9)hcall_assign_pcidev(9)hcall_deassign_pcidev(9)hcall_reset_ptdev_intr(9)
the whole squad. go read them. obsessed. π
reminder: theirqarg is a Service VM GPA ofstruct acrn_ptdev_irqβ not a raw irq number, not a vibe, a GPA. don't get it twisted. π
that's the page, bestie! source is ./drivers/virt/acrn, dated October 2026, and this whole thing lives at hcall_set_ptdev_intr(9). slay, periodt. πβ¨
π¦ 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