Re: [PATCH v10 12/33] KVM: arm64: Set up FGT for Partitioned PMU

From: Colton Lewis

Date: Thu Dec 03 2026 - 13:34:08 EST


Oliver Upton <oupton@xxxxxxxxxx> writes:

> On Thu, Nov 19, 2026 at 06:51:54PM +0000, Colton Lewis wrote:
>> + *vcpu_fgt(vcpu, HDFGRTR_EL2) |= set & ~hdfgrtr_masks.res0;
>
> There's no reason to use the RES0 mask. If one of the FGT bits you set
> depends on a feature that's not present in hardware then it's up to
> *hardware* to ignore the value.

Good point. I'll drop that masking here.