[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 00/15] Dynamic allocation of memory regions and IBM vTPM v2
From: |
Daniel Axtens |
Subject: |
[PATCH v3 00/15] Dynamic allocation of memory regions and IBM vTPM v2 |
Date: |
Thu, 21 Apr 2022 15:24:12 +1000 |
Hi,
This is a small update to v2
(https://lists.gnu.org/archive/html/grub-devel/2022-03/msg00242.html)
Changes since v2:
- A fix to patch 11 that does IBM CAS, as it turns out my old approach
caused some more extreme configurations to fail to boot. Oops.
- Code style fixes (tabs vs spaces).
- Add Daniel's R-Bs.
This series is also available on github.com/daxtens/grub branch
memrework+vtpm-202204
The v2 cover letter:
This is, at long last, an updated version of my series extending Patrick's
dynamic memory regions to ieee1275.
Noteworthy changes:
- reworked debug prints as grub_dprintfs. Folded the ieee1275 ones into the
ieee1275 patches.
- reworked the ieee1275 runtime memory claiming to be more resilient and better
documented.
- fixed comment style and hopefully addressed all other change requests.
- grub will now try asking for contiguous memory and then, if that fails, for
discontiguous memory - in case region merging with the discontiguous memory
is sufficient to allow the eventual allocation to succeed.
- The ieee1275 code agressively rounds up the size of the region for a dynamic
allocation - it will now retry with a more precise size if the larger
allocation fails.
The memtool module is included as an RFC only and will require more work, as
discussed in the patch.
I've also included Stefan's vTPM patch - Stefan kindly tested that his patch
worked with my memory rework series. I have added his tested-by to relevant
Power-specific patches only.
Kind regards,
Daniel
Daniel Axtens (8):
grub-shell: only pass SeaBIOS fw_opt in for x86 BIOS platforms
mm: assert that we preserve header vs region alignment
mm: when adding a region, merge with region after as well as before
mm: debug support for region operations
ieee1275: request memory with ibm,client-architecture-support
ieee1275: drop len -= 1 quirk in heap_init
ieee1275: support runtime memory claiming
[RFC] Add memtool module with memory allocation stress-test
Patrick Steinhardt (6):
mm: Drop unused unloading of modules on OOM
mm: Allow dynamically requesting additional memory regions
efi: mm: Always request a fixed number of pages on init
efi: mm: Extract function to add memory regions
efi: mm: Pass up errors from `add_memory_regions ()`
efi: mm: Implement runtime addition of pages
Stefan Berger (1):
ibmvtpm: Add support for trusted boot using a vTPM 2.0
docs/grub-dev.texi | 7 +-
docs/grub.texi | 3 +-
grub-core/Makefile.core.def | 12 +
grub-core/commands/ieee1275/ibmvtpm.c | 152 ++++++++++
grub-core/commands/memtools.c | 155 ++++++++++
grub-core/kern/dl.c | 20 --
grub-core/kern/efi/mm.c | 83 +++---
grub-core/kern/ieee1275/cmain.c | 3 +
grub-core/kern/ieee1275/init.c | 410 +++++++++++++++++++++++++-
grub-core/kern/mm.c | 178 +++++++----
include/grub/dl.h | 1 -
include/grub/ieee1275/ieee1275.h | 11 +
include/grub/mm.h | 16 +
include/grub/mm_private.h | 23 ++
tests/util/grub-shell.in | 6 +-
15 files changed, 942 insertions(+), 138 deletions(-)
create mode 100644 grub-core/commands/ieee1275/ibmvtpm.c
create mode 100644 grub-core/commands/memtools.c
--
2.32.0
- [PATCH v3 00/15] Dynamic allocation of memory regions and IBM vTPM v2,
Daniel Axtens <=
- [PATCH v3 01/15] grub-shell: only pass SeaBIOS fw_opt in for x86 BIOS platforms, Daniel Axtens, 2022/04/21
- [PATCH v3 02/15] mm: assert that we preserve header vs region alignment, Daniel Axtens, 2022/04/21
- [PATCH v3 03/15] mm: when adding a region, merge with region after as well as before, Daniel Axtens, 2022/04/21
- [PATCH v3 04/15] mm: debug support for region operations, Daniel Axtens, 2022/04/21
- [PATCH v3 05/15] mm: Drop unused unloading of modules on OOM, Daniel Axtens, 2022/04/21
- [PATCH v3 06/15] mm: Allow dynamically requesting additional memory regions, Daniel Axtens, 2022/04/21
- [PATCH v3 07/15] efi: mm: Always request a fixed number of pages on init, Daniel Axtens, 2022/04/21
- [PATCH v3 08/15] efi: mm: Extract function to add memory regions, Daniel Axtens, 2022/04/21