STRUCT X86_HYPER_RUNTIME(9)
πΈ NAME πΈ
struct x86_hyper_runtime β x86 hypervisor specific runtime callbacks. okay so bestie, this is the Kernel API Manual page for that exact struct, and we're gonna go through every single member π
no skips, no cap.
β¨ SYNOPSIS β¨
struct x86_hyper_runtime {
void (*pin_vcpu)(int cpu);
void (*sev_es_hcall_prepare)(struct ghcb *ghcb, struct pt_regs
*regs);
bool (*sev_es_hcall_finish)(struct ghcb *ghcb, struct pt_regs
*regs);
bool (*is_private_mmio)(u64 addr);
};
π«Ά Members π«Ά
pin_vcpuβ pin current vcpu to specified physical cpu (run rarely) π«‘sev_es_hcall_prepareβ load additional hypervisor-specific state into the GHCB when doing a VMMCALL under SEV-ES. called from the #VC exception handler.sev_es_hcall_finishβ copies state from the GHCB back into the processor (orpt_regs). also runs checks on the state returned from the hypervisor after a VMMCALL under SEV-ES. needs to return'false'if the checks fail. called from the #VC exception handler.is_private_mmioβ for CoCo VMs, must map MMIO address as private. used when device is emulated by a paravisor layer in the VM context.
π SEE ALSO π
Kernel file ./arch/x86/include/asm/x86_init.h β and the whole linked-up friend group:
struct x86_init_mpparse(9)struct x86_init_resources(9)struct x86_init_irqs(9)struct x86_init_oem(9)struct x86_init_paging(9)struct x86_init_timers(9)struct x86_init_iommu(9)struct x86_init_pci(9)struct x86_hyper_init(9)struct x86_init_acpi(9)struct x86_guest(9)struct x86_init_ops(9)struct x86_cpuinit_ops(9)struct x86_legacy_devices(9)enum x86_legacy_i8042_state(9)struct x86_legacy_features(9)struct x86_platform_ops(9)
mwah π that's the whole page, bestie. source/version: ./arch/x86/include/asm Β· date: October 2026 Β· title: struct x86_hyper_runtime(9). go forth and slay your hypervisor runtime callbacks β¨
π¦ 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