Re: [PATCH] KVM: x86: Fix C++ user API for structures with variable length arrays

From: Sean Christopherson

Date: Thu Mar 05 2026 - 14:32:19 EST


On Thu, Mar 05, 2026, David Woodhouse wrote:
> On Thu, 2026-03-05 at 10:36 -0800, Sean Christopherson wrote:
> > > + __DECLARE_FLEX_ARRAY(__u32, extra);
> > >  };
> >
> > There are several structs that got missed:
> >
> >   kvm_pmu_event_filter
> >   kvm_reg_list
> >   kvm_signal_mask
> >   kvm_coalesced_mmio_ring
> >   kvm_cpuid
> >   kvm_stats_desc
>
> Ack. Shall we do just the __DECLARE_FLEX_ARRAY() part, including those
> missed structures?

Ya, can you send a v2?