Re: [PATCH v9 20/22] KVM: arm64: Add vCPU device attr to partition the PMU

From: Colton Lewis

Date: Thu Oct 01 2026 - 17:21:17 EST


Hi James,

On Wed, Sep 30, 2026 at 04:27:27PM +0100, James Clark wrote:
> > @@ -77,7 +80,9 @@ Parameters: in:imaan address of a u32 value (N)
> > Returns:
> > ======= ====================================================
> > -EBUSY PMUv3 already initialized, or a vCPU has already run
> > - -EINVAL No PMUv3 explicitly selected, or value of N out of range
> > + -EINVAL No PMUv3 explicitly selected, or value of N out of
> > + range (>= max_counters when partitioning is
> > + enabled)
>
> "No PMUv3 explicitly selected, or value of N > max_counters, or N >
> max_counters - 1 when partitioning is enabled".
>
> That might be clearer, otherwise it seems like max_counters being relevant
> to "out of range" only applies to when partitioning is enabled, not that
> it's max_counters all the time but one is -1.

Agreed, that reads much better. I will update it to your phrasing in
v10.

Thanks,
Colton