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

Colton Lewis coltonlewis at google.com
Thu Dec 3 10:34:03 PST 2026


Oliver Upton <oupton at kernel.org> 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.



More information about the linux-arm-kernel mailing list