[PATCH 14/27] KVM: arm64: Restructure FGT register switching

Mark Brown broonie at kernel.org
Wed Jul 12 10:15:41 PDT 2023


On Wed, Jul 12, 2023 at 03:57:57PM +0100, Marc Zyngier wrote:

> As we're about to majorly extend the handling of FGT registers,
> restructure the code to actually save/restore the registers
> as required. This is made easy thanks to the previous addition
> of the EL2 registers, allowing us to use the host context for
> this purpose.

> +/*
> + * FGT register definitions
> + *
> + * RES0 and polarity masks as of DDI0487J.a, to be updated as needed.
> + * We're not using the generated masks as they are usually ahead of
> + * the published ARM ARM, which we use as a reference.
> + *
> + * Once we get to a point where the two describe the same thing, we'll
> + * merge the definitions. One day.
> + */

What's the issue here?  The generated definitions should be aligned with
what's published in DDI0601.  That AIUI exists in large part due to
concerns people were having with the amount of time it can take to fold
new features into the ARM, it's official.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230712/f6324ec1/attachment-0001.sig>


More information about the linux-arm-kernel mailing list