kvm_vgic_create(9)
π kvm_vgic_create(9) π
okay so bestie, welcome to the Kernel API Manual β today's main character is kvm_vgic_create, and honestly? she's kind of a big deal π
β¨ NAME β¨
kvm_vgic_create β the function that gets triggered when the VGIC device gets instantiated by user space, no cap π
and like, there are two whole ways that can happen:
- through the legacy
KVM_CREATE_IRQCHIPioctl (v2 only, queen β that's important, don't forget it π«Ά) - or through the generic
KVM_CREATE_DEVICEAPI ioctl β¨
and then β plot twist β you find out if it actually worked by checking irqchip_in_kernel(). that's the vibe check fr fr: it tells you if this function succeeded or not π₯
πΈ SYNOPSIS πΈ
int kvm_vgic_create (struct kvm *kvm , u32 type );
like yes, two args, go off π
π¦ ARGUMENTS π¦
kvmβ akvmstruct pointer π« that's literally it, that's the whole description, she's a pointer to the kvm struct and we love her for ittypeβKVM_DEV_TYPE_ARM_VGIC_V[235]β so you can pass V2, V3, or V5 β pick your fighter iykyk
π SEE ALSO π
go read the kernel file ./arch/arm64/kvm/vgic/vgic-init.c bestie, and then these iconic siblings of hers:
kvm_vgic_early_init(9)kvm_vgic_dist_init(9)kvm_vgic_vcpu_init(9)vgic_lazy_init(9)kvm_vgic_map_resources(9)kvm_vgic_init_cpu_hardware(9)kvm_vgic_hyp_init(9)
the whole friend group, periodt π π§
aaaand that's the page!! π mwah π this one came from ./arch/arm64/kvm/vgic β she's serving October 2026 energy, kvm_vgic_create(9) forever and always, slay βππΈ
π¦ 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