On Fri, Feb 14, 2020 at 12:22 AM dwilder <dwil...@us.ibm.com> wrote: > > On 2020-02-13 14:17, Thomas Monjalon wrote: > > 13/02/2020 21:58, dwilder: > >> On 2020-02-13 12:32, Thomas Monjalon wrote: > >> > 13/02/2020 21:24, David Wilder: > >> >> - The --no-huge option requires iova-mode=VA. > >> >> On ppc64le iova-mode defaults to PA therefor > >> >> VA mode must be explicitly set. > >> > > >> > Should we make VA mode automatic when using --no-huge? > >> > Should we log an error message when using --no-huge with PA mode? > >> > >> Logging a messages sounds like a good idea. Ignoring the users > >> request > >> of iova-mode=PA (in the case of x86) and just switching modes would be > >> bad. > > > > Yes, I mean for ppc64, if --no-huge is specified, > > would you like to change the default to VA mode? > > OK, that would be better. > I will switch to VA when --no-huge is set (ppc64 only).
With no-huge, we can't ensure the physical addresses won't change (might be different if we locked the pages in memory... but not possible and/or not handled in eal afaics). This limitation is generic, not arch specific. > Add log messages if PA is selected with --no-huge (all arches). -- David Marchand