[LTP] [PATCH v2] userfaultfd: Use two-step handshake to probe features

Cyril Hrubis chrubis@suse.cz
Tue May 5 14:07:09 CEST 2026


Hi!
> > However I would put this code into a common header and call it only in
> > the test setup (so that it's not executed on each test iteration).
> >
> > #define CHECK_UFFD_FLAG(flag) do { \
> >          ... \
> > 	if (!(uffdio_api.features & (flag))) \
> > 		tst_brk(TCONF, #flag " not supported"); \
> > 	... \
> > } while (0)
> >
> 
> Will add this macro.  Let's keep doing the 2 step handshake though.

Sure, sounds good to me.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list