Thread (41 messages) flat view 41 messages, 4 authors, 17d ago

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

From: Mark Brown <broonie@kernel.org>
Date: 2026-08-20 15:19:40
Also in: kvmarm, linux-doc, linux-kselftest, lkml

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:
quoted
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.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help