[PATCH] x86/boot/compressed: Reserve more memory for page tables
Dave Hansen
dave.hansen at intel.com
Thu Sep 14 08:51:50 PDT 2023
On 9/14/23 05:30, Kirill A. Shutemov wrote:
> +/*
> + * Total number of page table kernel_add_identity_map() can allocate,
> + * including page tables consumed by startup_32().
> + */
> +# define BOOT_PGT_SIZE (32*4096)
I agree that needing to know this in advance *exactly* is troublesome.
But I do think that we should preserve the comment about the worst-case
scenario. Also, I thought this was triggered by unaccepted memory. Am
I remembering it wrong? How was it in play?
Either way, I think your general approach here is sound. But let's add
one little tweak to at least warn when we're getting close to the limit.
Now that nobody has to worry about the limit for the immediate future
it's a guarantee that in the long term someone will plow through it
accidentally.
Let's add a soft warning when we're nearing the limit so that there's a
chance to catch these things in the future.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgtbuf.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/kexec/attachments/20230914/69a1d7bf/attachment.bin>
More information about the kexec
mailing list