Re: [PATCH] KVM: arm64: selftests: Check ID regs are immutable after a failed run

Mark Brown <[email protected]>
Newsgroups org.infradead.lists.linux-arm-kernel,dev.linux.lists.kvmarm,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Tue, Aug 04, 2026 at 07:30:44PM +0100, Fuad Tabba wrote:
> On Tue, 4 Aug 2026 at 19:14, Mark Brown <[email protected]> wrote:

> > > +     TEST_ASSERT(r < 0 && errno == EBUSY,
> > > +                 "ID reg write after failed first run: r=%d errno=%d",
> > > +                 r, errno);
> > > +     TEST_ASSERT_EQ(vcpu_get_reg(vcpu, reg), val);

> > > +     kvm_vm_free(vm);
> > > +     ksft_test_result_pass("%s\n", __func__);

> > Mixing TEST_ASSERT() and ksft_test_result_ in the same test program also
> > interacts really poorly with automation, TEST_ASSERT() just kills the

> Agreed, but it looks file-wide rather than specific to this test, so I
> would rather leave it to your series than convert one function. Happy
> to follow once that lands.

Unfortunately at the minute it's not even consistent within the program -
the MPAM tests in there do use ksft_ based reporting, while they do so
with inconsistent strings you at least get all the results out if it's
just them that blow up.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpyMScACgkQJNaLcl1U
h9AAbgf/W+3LTMl/N5/eGuB3SteA/AMMoqc9R14TDJVBLdsyQ54rto/8rO1S6R2K
6z5XXdzQEyAUun4VTtWRdVNC4EBGCgFmx6iL0NIA7Mq/Hgg9Y5Kg4O9J+AZhUa7s
QkyroJpscInKTT2Z6AwulpLV1DGOuoaNsWykIUzLjTT3Fy1rzBh9gGSc4SkGOXjL
iZndvJCwijyJr0Co+C/6kXSffdmtoLXShJ0GQJTjgjDzlNo/Ofp9sQyY55n3+fxW
18Onf1DAZXOpaa+XZ+SxVFPasuCDoutSoPJgVPygau5lbWJkU2bLzX24FT5QHKK0
tkolz+CDfa4jgTcf0U5aMUw5ihJTfg==
=oRTP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.