Page MenuHomeFreeBSD

Make page size dynamic in libkvm for arm64
ClosedPublic

Authored by andrew on Mar 14 2022, 2:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 5:15 AM
Unknown Object (File)
Mon, Oct 13, 11:45 PM
Unknown Object (File)
Sat, Oct 11, 11:38 AM
Unknown Object (File)
Sun, Sep 21, 5:26 AM
Unknown Object (File)
Wed, Sep 17, 7:50 PM
Unknown Object (File)
Tue, Sep 16, 10:25 PM
Unknown Object (File)
Sep 13 2025, 10:11 PM
Unknown Object (File)
Sep 10 2025, 1:30 PM
Subscribers

Details

Summary

To allow for a future 16k or 64k page size we need to tell libkvm which
is being used. Add a flag field in unused space in minidumphdr and use
it to signal between the different options.

Test Plan

Kua tests pass & w -M <core> works

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libkvm/kvm_minidump_aarch64.c
51

The line break doesn't seem to be needed.

108

Is it supposed to be vmst->hdr.version < 1?

188–190

Maybe define aarch64_trunc_page() to complement aarch64_round_page().

  • Remove a line break
  • Fix version check
  • Add aarch64_trunc_page
This revision is now accepted and ready to land.Mar 14 2022, 4:38 PM
This revision was automatically updated to reflect the committed changes.