hcall_sos_remove_cpu(9)
π hcall_sos_remove_cpu β a Kernel API Manual moment β¨
okay so bestie, you're looking at hcall_sos_remove_cpu(9), and yes, the manual name is literally right there in the page title, no cap. This is the kernel API manual, and we're about to get into it. π
β¨ NAME β¨
hcall_sos_remove_cpu β literally just removing a vCPU of the Service VM. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
long hcall_sos_remove_cpu (u64 cpu );
that's it, that's the whole function signature, and honestly? iconic. π
π ARGUMENTS π
cpuβ the vCPU that's getting removed. like, this is the one you're saying bye to. π«Ά
β RETURN β
0on success β slay, it worked β¨<0on failure β not slay, something went wrong π
fr fr, that's the entire return contract. zero means good, anything negative means bad. no in-between, no ambiguity, periodt. π
π SEE ALSO π
okay so there's a whole friend group here and you need to know them all, bestie. first up, the kernel file they all live in: ./drivers/virt/acrn/hypercall.h π
then the whole squad of fellow hypercalls:
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_set_ptdev_intr(9)hcall_reset_ptdev_intr(9)
like, that's the whole group chat. iykyk. π
and that's the page, bestie!! π§ this one comes from ./drivers/virt/acrn, dated October 2026, and it's the hcall_sos_remove_cpu(9) page β go forth and remove that vCPU, you absolute 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