Re: [PATCH 1/2] selftests/liveupdate: Move luo_test_utils.* into a reusable library

From: Vipin Sharma

Date: Wed Jun 10 2026 - 14:08:45 EST


On Mon, Jun 08, 2026 at 04:31:57PM +0200, Pratyush Yadav wrote:
> On Mon, May 11 2026, Vipin Sharma wrote:
>
> > Move luo_test_utils.[ch] into a lib/ directory and pull the rules to
> > build them out into a separate make script. This will enable these
> > utilities to be also built by and used within other selftests (such as
> > VFIO).
> >
> > No functional change intended.
> >
> > Signed-off-by: Vipin Sharma <vipinsh@xxxxxxxxxx>
> > Co-developed-by: David Matlack <dmatlack@xxxxxxxxxx>
> > Signed-off-by: David Matlack <dmatlack@xxxxxxxxxx>
> > Signed-off-by: Vipin Sharma <vipinsh@xxxxxxxxxx>
> > ---
> > tools/testing/selftests/liveupdate/.gitignore | 1 +
> > tools/testing/selftests/liveupdate/Makefile | 14 ++++---------
> > .../include/libliveupdate.h} | 8 ++++----
>
> Nit: perhaps libluo is a bit less wordy?
>
> No strong opinions on it though, so I am fine with anything.
>

Thought more about it, I think libliveupdate seems more appropriate:

- VFIO is using similar strategy libvfio
- Name matches selftest folder name, so, kind of easy to know where the
library is from.

As you seem fine with anything, I will keep it libliveupdate. Thanks!