sbi_remote_hfence_gvma_vmid(9)
π sbi_remote_hfence_gvma_vmid(9) β like, the whole glow-up
okay so bestie, this is a page straight out of the Kernel API Manual and it's literally about firing off HFENCE.GVMA instructions on remote harts for a guest physical address range that belongs to one specific VMID. yes, that VMID. the one VMID. main character VMID energy only π
β¨ NAME β¨
sbi_remote_hfence_gvma_vmid β the function that executes HFENCE.GVMA instructions on the remote harts you point at, for a guest physical address range belonging to a specific VMID. no cap, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
int sbi_remote_hfence_gvma_vmid (const struct cpumask *cpu_mask ,
unsigned long start , unsigned long size , unsigned long vmid );
π ARGUMENTS π
cpu_maskβ a cpu mask containing all the target harts. like, every hart you want in the group chat π«Άstartβ start of the guest physical address.sizeβ total size of the guest physical address range. yes, the total size, don't come for me πvmidβ the value of guest ID (VMID). the ID of the guest. iconic behavior π
β RETURN β
0 if success, Error otherwise. that's it, that's the whole return policy π
π₯ SEE ALSO π₯
the kernel file ./arch/riscv/kernel/sbi.c, plus the whole friend group:
sbi_console_putchar(9)sbi_console_getchar(9)sbi_shutdown(9)__sbi_set_timer_v01(9)sbi_fwft_set(9)sbi_fwft_set_cpumask(9)sbi_set_timer(9)sbi_send_ipi(9)sbi_remote_fence_i(9)sbi_remote_sfence_vma_asid(9)sbi_remote_hfence_gvma(9)sbi_remote_hfence_vvma(9)sbi_remote_hfence_vvma_asid(9)sbi_probe_extension(9)
β οΈ quick vibe check:0means success, anything else is an error β so don't go assuming0means "nothing happened", bestie, it means you ate πβ¨
and that's the page, fr fr π this masterpiece of a manpage lives in ./arch/riscv/kernel, dated October 2026, and it's the Kernel API Manual. slay, go touch some harts π§ββοΈππ
π¦ 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