aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/manager/diff/patch.go
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2026-01-23 18:28:30 +0100
committerAlexander Potapenko <glider@google.com>2026-01-26 09:30:24 +0000
commita4c52dd6fa17ba8bb0a3d6a08de46c61035f693c (patch)
tree75411466e642eecacb656ca17d8698ca7895b8ea /pkg/manager/diff/patch.go
parent4589df0fc1eb4bcb09ee65d33c34136a1372bdb2 (diff)
executor: implement dynamic L2 page table allocation in SYZOS
Enable the SYZOS guest (L1) to dynamically allocate memory for nested L2 page tables, replacing the previous rigid static layout. Move the mem_region and syzos_boot_args struct definitions to the guest header (common_kvm_amd64_syzos.h) to allow the guest to parse the memory map injected by the host. Introduce a bump allocator, guest_alloc_page(), which targets the X86_SYZOS_ADDR_UNUSED heap. This allocator relies on a new struct syzos_globals located at X86_SYZOS_ADDR_GLOBALS to track the allocation offset. Refactor setup_l2_page_tables() to allocate intermediate paging levels (PDPT, PD, PT) via guest_alloc_page() instead of using fixed contiguous offsets relative to the PML4. This allows for disjoint memory usage and supports future recursion requirements.
Diffstat (limited to 'pkg/manager/diff/patch.go')
0 files changed, 0 insertions, 0 deletions