Re: [PATCH RFC 15/21] migration: Teach qemu about minor faults and doublemap

2023-02-01 Thread Juan Quintela
Peter Xu wrote: > On Mon, Jan 30, 2023 at 06:45:20AM +0100, Juan Quintela wrote: >> Peter Xu wrote: >> > When a ramblock is backed by hugetlbfs and the user specified using >> > double-map feature, we trap the faults on these regions using minor mode. >> > Teach QEMU about that. >> > >> > Add som

Re: [PATCH RFC 15/21] migration: Teach qemu about minor faults and doublemap

2023-01-30 Thread Peter Xu
On Mon, Jan 30, 2023 at 06:45:20AM +0100, Juan Quintela wrote: > Peter Xu wrote: > > When a ramblock is backed by hugetlbfs and the user specified using > > double-map feature, we trap the faults on these regions using minor mode. > > Teach QEMU about that. > > > > Add some sanity check on the fau

Re: [PATCH RFC 15/21] migration: Teach qemu about minor faults and doublemap

2023-01-29 Thread Juan Quintela
Peter Xu wrote: > When a ramblock is backed by hugetlbfs and the user specified using > double-map feature, we trap the faults on these regions using minor mode. > Teach QEMU about that. > > Add some sanity check on the fault flags when receiving a uffd message. > For minor fault trapped ranges, w

[PATCH RFC 15/21] migration: Teach qemu about minor faults and doublemap

2023-01-17 Thread Peter Xu
When a ramblock is backed by hugetlbfs and the user specified using double-map feature, we trap the faults on these regions using minor mode. Teach QEMU about that. Add some sanity check on the fault flags when receiving a uffd message. For minor fault trapped ranges, we should always see the MINO