#!/usr/bin/env python3 # gr_walk.py - find the RM window memdesc records in the guest's own RAM # (via /proc/kcore direct map) and walk their kernel page-list pointers in # the SAME pass (addresses go stale otherwise). Prints VA->PA candidates. import sys, struct sys.path.insert(0, "/tmp") import guest_pin_stream as gps PAT_SIZE = struct.pack("= 2: print(" PA-like: %s" % ["0x%x" % w for w in npas[:16]]) return 0 if __name__ == "__main__": sys.exit(main())