[roll] Roll fuchsia [kernel][vm] Compressed pointers for VmPageListNode

This CL adds two methods to PmmNode

  uint32_t PageToIndex(const vm_page_t* page);
  vm_page_t* IndexToPage(uint32_t index);

They "compress" a vm_page_t pointer to a 32 uint
with the 4 least significant bits as zero.

Then we use this page <--> index to convert VmPageOrMarker
from 64 bits to 32 bits which ends up saving 64 bytes
per VmPageListNode which in starnix-based products
which hold upwards of 80K nodes, ends up saving 5+ MiBs

This comes at some cost:
1- The max # of PMM arenas are limited to 16 and
   each arena of a max of 2^20 pages, or some other
   combination that yields 2^24 bits

2- The conversion from page to index is O(n) in
   the numbers of arenas though the cost is
   fixed and relatively small.

BUG=408058440

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1244412
Original-Revision: 0c022e8550329000427243111dca761d5a976296
GitOrigin-RevId: 41543926bfb785f2c9f15d308da9bc348cae49eb
Change-Id: Ifb945a1f6dd5751e057542d5a99fb3a53e4862b3
1 file changed
tree: 3e1c88352e52437265eec35df62b940de5cab0ee
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.