On 04/05/2025 11:51 pm, Demi Marie Obenour wrote: > What are the appropriate Xen internal functions for: > > 1. Turning a PFN into an MFN? > 2. Mapping an MFN into a guest? > 3. Unmapping that MFN from a guest? > > The first patch I am going to send with this information is a documentation > patch so that others do not need to figure this out for themselves. > I remember being unsure even after looking through the source code, which > is why I am asking here.
See the top of xen/include/xen/mm.h which has an overview of terminology, including an explanation of why Xen doesn't know what the guest thinks of as PFN. ~Andrew