[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABgObfZ6Q0t+J7=-BfZz4y9fDUtmJzt_RSyQ43LCg0KMpYC3+g@mail.gmail.com>
Date: Tue, 16 Apr 2024 21:53:21 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Sean Christopherson <seanjc@...gle.com>
Cc: Alejandro Jimenez <alejandro.j.jimenez@...cle.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, joao.m.martins@...cle.com,
boris.ostrovsky@...cle.com, mark.kanda@...cle.com,
suravee.suthikulpanit@....com, mlevitsk@...hat.com
Subject: Re: [RFC 1/3] x86: KVM: stats: Add a stat to report status of APICv inhibition
On Tue, Apr 16, 2024 at 8:19 PM Sean Christopherson <seanjc@...gle.com> wrote:
>
> > + u64 apicv_inhibited;
>
> Tracking the negative is odd, i.e. if we add a stat, KVM should probably track
> if APICv is fully enabled, not if it's inhibited.
>
> This also should be a boolean, not a u64. Precisely enumerating _why_ APICv is
> inhibited is firmly in debug territory, i.e. not in scope for "official" stats.
It is a boolean, but stats are all u64 in the file and the contents of
the file map the stats struct directly. See for example the existing
'u64 guest_mode".
Paolo
Powered by blists - more mailing lists