[dpdk-dev] [PATCH 4/4] vhost: avoid populate guest memory
Tan, Jianfeng
jianfeng.tan at intel.com
Fri Feb 23 04:17:58 CET 2018
> -----Original Message-----
> From: Maxime Coquelin [mailto:maxime.coquelin at redhat.com]
> Sent: Thursday, February 22, 2018 8:33 PM
> To: Tan, Jianfeng; dev at dpdk.org
> Cc: yliu at fridaylinux.org
> Subject: Re: [PATCH 4/4] vhost: avoid populate guest memory
>
>
> >> What could be done is maybe to have an EAL API for mmaping, with an
> >> associated EAL parameter to state whether it want populating or not.
> >> This option would be disabled by default.
> >>
> >> Does that sounds reasonable?
> >
> > If we look for an application-level configuration, it's not necessary to have
> such a parameter. Refer to the 3rd patch in this series, if we make all
> (current/future) memory locked, the mmap() syscall will populate the
> memory.
>
> OK, but in that case it should be documented.
> I see OVS has also a parameter to request the memory to be locked, but
> it seems not to be the default, so the user could face a change in the
> behavior it didn't expect.
Make sense, will send v2 with the note.
Thanks,
Jianfeng
More information about the dev
mailing list