Fuad Tabba wrote: > Until now, faults to private memory backed by guest_memfd are always > consumed from guest_memfd whereas faults to shared memory are consumed > from anonymous memory. Subsequent patches will allow sharing guest_memfd > backed memory in-place, and mapping it by the host. Faults to in-place > shared memory should be consumed from guest_memfd as well. > > In order to facilitate that, generalize the fault lookups. Currently, > only private memory is consumed from guest_memfd and therefore as it > stands, this patch does not change the behavior. > > Co-developed-by: David Hildenbrand <david@xxxxxxxxxx> > Signed-off-by: David Hildenbrand <david@xxxxxxxxxx> > Signed-off-by: Fuad Tabba <tabba@xxxxxxxxxx> Reviewed-by: Ira Weiny <ira.weiny@xxxxxxxxx> [snip]