On Mon, Jan 21, 2019 at 7:27 PM Michael S. Tsirkin <m...@redhat.com> wrote: [..] > > 2. The reset of cases: > > - we will never pass the MAP_SYNC to mmap2 > > I don't see code probing for MAP_SYNC support. Did I miss it? > But if all you want is to have old linux ignore MAP_SYNC, > I think you got your wish automatically - just do not set > MAP_SHARED_VALIDATE.
That will also cause new Linux to ignore MAP_SYNC.