Skip to content

hyperfile: back native mmap with a QEMU aperture#801

Merged
lacraig2 merged 6 commits into
mainfrom
native-mmap-aperture-main
May 18, 2026
Merged

hyperfile: back native mmap with a QEMU aperture#801
lacraig2 merged 6 commits into
mainfrom
native-mmap-aperture-main

Conversation

@lacraig2

Copy link
Copy Markdown
Collaborator

Summary

  • add the qemu_mem plugin to suballocate native mmap regions from a single QEMU aperture
  • plumb native mmap physical addresses into devfs, procfs, and anonfs when qemu_mem is loaded while preserving the legacy fallback otherwise
  • add native mmap smoke coverage for /dev, /proc, anonfs, and MTD registration/read-write, and fix --test-file forwarding in the target test harness
  • use 0x90000000 in the smoke config because 0xfe000000 collides with PC machine MMIO on the focused x86_64 smoke

Dependency

Testing

  • flake8
  • python3 -m py_compile pyplugins/compat/qemu_compat.py pyplugins/hyperfile/qemu_mem.py pyplugins/hyperfile/devfs.py pyplugins/hyperfile/procfs.py pyplugins/hyperfile/anonfs.py pyplugins/testing/native_mmap.py tests/unit_tests/test_target/test.py
  • tests/unit_tests/test_target/test.py --kernel 4.10 --arch x86_64 --image penguin-native-mmap-smoke --test-file native_mmap.yaml --mode kvm --name native_mmap_smoke_mainbase
  • tests/unit_tests/test_target/test.py --kernel 4.10 --arch x86_64 --image penguin-native-mmap-smoke --test-file devfs_test.yaml --mode kvm --name devfs_mmap_regression_mainbase
  • tests/unit_tests/test_target/test.py --kernel 4.10 --arch x86_64 --image penguin-native-mmap-smoke --test-file procfs_test.yaml --mode kvm --name procfs_mmap_regression_mainbase

@lacraig2 lacraig2 force-pushed the native-mmap-aperture-main branch 2 times, most recently from 4899ddb to 00d552b Compare May 18, 2026 04:38
@lacraig2 lacraig2 force-pushed the native-mmap-aperture-main branch from 91a47a7 to bd71b49 Compare May 18, 2026 05:03
@lacraig2 lacraig2 enabled auto-merge (rebase) May 18, 2026 05:09
@lacraig2 lacraig2 merged commit 5a6858e into main May 18, 2026
18 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant