Re: [PATCH v4 03/10] KVM: selftests: Read binary stats desc in lib

From: Sean Christopherson
Date: Tue Apr 12 2022 - 15:02:39 EST


On Tue, Apr 12, 2022, Ben Gardon wrote:
> On Mon, Apr 11, 2022 at 5:55 PM Mingwei Zhang <mizhang@xxxxxxxxxx> wrote:
> > I was very confused on header->name_size. So this field means the
> > maximum string size of a stats name, right? Can we update the comments
> > in the kvm.h to specify that? By reading the comments, I don't really
> > feel this is how we should use this field.
>
> I believe that's right. I agree the documentation on that was a little
> confusing.

Heh, a little. I got tripped up looking at this too. Give me a few minutes and
I'll attach a cleanup patch to add comments and fix the myriad style issues.

This whole file is painful to look at. Aside from violating preferred kernel
style, it's horribly consistent with itself. Well, except for the 80 char limit,
to which it has a fanatical devotion.