aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/manager/diff/diff_test.go
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2026-01-21 17:13:39 +0100
committerAlexander Potapenko <glider@google.com>2026-01-26 09:30:24 +0000
commitef19d9861dee87bb537df2d765b8b132ab4ec420 (patch)
tree76805c71a9c8b8163d80b06740660ad2d736c16a /pkg/manager/diff/diff_test.go
parentc4910df85852c512a7cb0170a72603a903106302 (diff)
executor: isolate x86 page table pool to high memory in SYZOS
Refactor the SYZOS guest memory layout to decouple the dynamic page table allocator from the fixed system data structures (GDT, IDT, initial PML4). Previously, the page table pool was located at 0x5000, tightly packed with the initial system pages. This rigid structure made it difficult to expand the pool or inject configuration data without shifting fixed offsets. Move X86_SYZOS_ADDR_PT_POOL to 0x180000, creating a distinct high-memory region well above the L2 VCPU data, and increase the pool size to 64 pages (256KB) to support deeper nested hierarchies. Update the syz_kvm_setup_syzos_vm logic to handle non-contiguous Guest-to-Host address translation via a new get_host_pte_ptr() helper. This is necessary because the executor's host memory allocation remains strictly linear while the guest physical address space now contains significant gaps. This layout change is a prerequisite for enabling "SYZOS inside SYZOS" (L2 nesting), allowing the future injection of boot arguments into the gap created between fixed data and dynamic regions.
Diffstat (limited to 'pkg/manager/diff/diff_test.go')
0 files changed, 0 insertions, 0 deletions