Thread (139 messages) 139 messages, 12 authors, 2024-08-20

Re: [PATCH v4 18/29] arm64: add POE signal support

flat view

From: Dave Martin <Dave.Martin@arm.com>
Date: 2024-07-26 16:14:10
Also in: kvmarm, linux-arm-kernel, linux-fsdevel, linux-mm

On Thu, Jul 25, 2024 at 07:11:41PM +0100, Mark Brown wrote:
On Thu, Jul 25, 2024 at 04:58:27PM +0100, Dave Martin wrote:
quoted
I'll post a draft patch separately, since I think the update could
benefit from separate discussion, but my back-of-the-envelope
calculation suggests that (before this patch) we are down to 0x90
bytes of free space (i.e., over 96% full).
quoted
I wonder whether it is time to start pushing back on adding a new
_foo_context for every individual register, though?
quoted
Maybe we could add some kind of _misc_context for miscellaneous 64-bit
regs.
That'd have to be a variably sized structure with pairs of sysreg
ID/value items in it I think which would be a bit of a pain to implement
but doable.  The per-record header is 64 bits, we'd get maximal saving
by allocating a byte for the IDs.
Or possibly the regs could be identified positionally, avoiding the
need for IDs.  Space would be at a premium, and we would have to think
carefully about what should and should not be allowed in there.
It would be very unfortunate timing to start gating things on such a
change though (I'm particularly worried about GCS here, at this point
the kernel changes are blocking the entire ecosystem).
For GCS, I wonder whether it should be made a strictly opt-in feature:
i.e., if you use it then you must tolerate large sigframes, and if it
is turned off then its state is neither dumped nor restored.  Since GCS
requires an explict prctl to turn it on, the mechanism seems partly
there already in your series.

I guess the GCS thread is the better place to discuss that, though.

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