[PATCH v19 03/14] KVM: arm64: Manage GCS access and registers for guests

Mark Brown broonie at kernel.org
Thu Aug 20 08:19:34 PDT 2026


On Thu, Aug 20, 2026 at 03:28:39PM +0100, Leonardo Bras wrote:
> On Thu, Aug 20, 2026 at 03:07:14PM +0100, Mark Brown wrote:

> > I think what would help here would be to move to generating more of the
> > save/restore sequences rather than open coding them, we could have lists
> > of registers and then use data about the feature dependencies that the
> > architecture has (hopefully it's already in the MRS, I didn't check) to
> > generate these optimised feature checks rather than having to open code
> > them.  Possibly even list features and generate some of the register
> > lists, though that would need far more special case handling and it's
> > *much* less clear if there could be a benefit.

> Yeah, that would automatize the feature dependency for register loading, 
> but maybe code would not be that clear on how it works? I have questionable 
> taste, though.

I was thinking of generating as part of the build process rather than as
a one off so you'd not actually look at the code in the normal course of
affairs.
-------------- 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/20260820/c2110699/attachment.sig>


More information about the linux-arm-kernel mailing list