STRUCT KVMPPC_GS_BUFF(9)
π struct kvmppc_gs_buff(9) π
ok so bestie, we're in the Kernel API Manual, section 9 β that's the kernel-internal docs bestie, the ones you read when you're really in it. this page is all about struct kvmppc_gs_buff, and the name literally spells it out: it's a guest state buffer with metadata. like, the buffer itself is the main character, but it brought its little entourage of bookkeeping fields along for the ride π
β¨ NAME β¨
struct kvmppc_gs_buff β a guest state buffer with metadata. no cap, that's the whole vibe: data + the receipts about the data π§Ύπ
π¦ SYNOPSIS π¦
struct kvmppc_gs_buff {
size_t capacity;
size_t len;
unsigned long guest_id;
unsigned long vcpu_id;
struct kvmppc_gs_header *hdr;
};
ok bestie look at her. five fields. very demure, very mindful πΈ
π Members π
capacityβ total length of the buffer. like, how much room she has to work with, periodt πlenβ current length of the elements and the header. yes both. the header counts too, don't forget the header πguest_idβ guest id associated with the buffer. whose guest is this? this one π«Άvcpu_idβvcpu_idassociated with the buffer. the vcpu said "that's me" π§hdrβ the serialised guest state buffer. that's astruct kvmppc_gs_header *, and it's exactly what it sounds like β¨
π SEE ALSO π
Kernel file ./arch/powerpc/include/asm/guest-state-buffer.h β that's the home base, the source of truth, the mothership π π
and then the whole friend group, fr fr:
struct kvmppc_gs_part_table(9)struct kvmppc_gs_proc_table(9)struct kvmppc_gs_buff_info(9)struct kvmppc_gs_header(9)struct kvmppc_gs_elem(9)struct kvmppc_gs_bitmap(9)struct kvmppc_gs_parser(9)struct kvmppc_gs_msg_ops(9)struct kvmppc_gs_msg(9)kvmppc_gsb_header(9)kvmppc_gsb_data(9)kvmppc_gsb_len(9)kvmppc_gsb_capacity(9)kvmppc_gsb_paddress(9)kvmppc_gsb_nelems(9)kvmppc_gsb_reset(9)kvmppc_gsb_data_len(9)kvmppc_gsb_data_cap(9)kvmppc_gsb_for_each_elem(9)kvmppc_gse_iden(9)kvmppc_gse_len(9)kvmppc_gse_total_len(9)kvmppc_gse_total_size(9)kvmppc_gse_data(9)kvmppc_gse_ok(9)kvmppc_gse_next(9)kvmppc_gse_for_each_elem(9)kvmppc_gse_put_be32(9)kvmppc_gse_put_u32(9)kvmppc_gse_put_be64(9)kvmppc_gse_put_u64(9)__kvmppc_gse_put_reg(9)kvmppc_gse_put_vector128(9)kvmppc_gse_put_part_table(9)kvmppc_gse_put_proc_table(9)kvmppc_gse_put_buff_info(9)kvmppc_gse_get_be32(9)kvmppc_gse_get_u32(9)kvmppc_gse_get_be64(9)kvmppc_gse_get_u64(9)kvmppc_gse_get_vector128(9)kvmppc_gsbm_zero(9)kvmppc_gsbm_fill(9)kvmppc_gsbm_for_each(9)kvmppc_gsp_for_each(9)kvmppc_gsm_for_each(9)kvmppc_gsm_include(9)kvmppc_gsm_includes(9)kvmppc_gsb_receive_data(9)kvmppc_gsb_send_data(9)
like, the whole extended universe is in there. go click around, iykyk π₯
bestie reminder: this page gives you the struct and the road map, not the behaviour. so don't go assuming anything about how these get written, read or sized β that's what the SEE ALSO list is for, and the header file ./arch/powerpc/include/asm/guest-state-buffer.h is right there π
ok that's the whole page, no notes, she ate π
β¨ this lil drop came to you from ./arch/powerpc/include/asm, dated October 2026 β go forth and read the header bestie, ily π«Άππ
π¦ 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