[kvm-unit-tests PATCH v4 05/13] scripts: Add 'kvmtool_params' to test definition
Alexandru Elisei
alexandru.elisei at arm.com
Fri Jun 27 02:41:54 AEST 2025
Hi Drew,
On Thu, Jun 26, 2025 at 05:34:05PM +0200, Andrew Jones wrote:
> On Wed, Jun 25, 2025 at 04:48:05PM +0100, Alexandru Elisei wrote:
> > arm/arm64 supports running tests under kvmtool, but kvmtool's syntax for
> > running and configuring a virtual machine is different to qemu. To run
> > tests using the automated test infrastructure, add a new test parameter,
> > 'kvmtool_params'. The parameter serves the exact purpose as 'qemu_params',
> > but using kvmtool's syntax.
> >
> > Signed-off-by: Alexandru Elisei <alexandru.elisei at arm.com>
> > ---
> >
> > Changes v3->v4:
> >
> > * Added params_name in scripts/common.bash::for_each_unittest() to avoid
> > checking for $TARGET when deciding to parse kvmtool_params or
> > {qemu,extra}_params.
> > * Dropped factoring out parse_opts() in for_each_unittest().
> >
> > arm/unittests.cfg | 24 ++++++++++++++++++++++++
> > docs/unittests.txt | 8 ++++++++
> > scripts/common.bash | 11 +++++++----
> > scripts/vmm.bash | 16 ++++++++++++++++
> > 4 files changed, 55 insertions(+), 4 deletions(-)
[..]
> > +function vmm_unittest_params_name()
> > +{
> > + # shellcheck disable=SC2155
> > + local target=$(vmm_get_target)
> > +
> > + case "$target" in
> > + qemu)
> > + echo "extra_params|qemu_params"
> > + ;;
> > + *)
> > + echo "$0 does not support '$target'"
> > + exit 2
> > + ;;
>
> It seems a bit odd that we've introduced kvmtool_params and applied it to
> arm in this patch, but we still don't support it. Not a huge deal, though.
Originally it was part of a huge patch that added everything in one go, it
was this patch and the next 6 or 7 patches combined. The feedback I got at
the time was to split it into more manageable chunks, which is very
understandable. So this is how I ended up with this patch, to make the
series easier to digest.
>
> Reviewed-by: Andrew Jones <andrew.jones at linux.dev>
Thanks for the review!
Alex
More information about the Linuxppc-dev
mailing list