qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* getting the console output for s390 cdrom-test?
@ 2021-01-22 20:32 Peter Maydell
  2021-02-04 16:08 ` Thomas Huth
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Maydell @ 2021-01-22 20:32 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Thomas Huth, Cornelia Huck, Eric Farman

Hi; I've been looking at why the s390 cdrom test has an intermittent
failure on my aarch64 box. Looking at some TCG debug log output
I think what is happening is that sometimes execution diverges from
a successful run inside virtio_scsi_setup() and we end up failing
a vs_assert(), which triggers a "Guest crashed on cpu 0: disabled-wait"
which then makes the qtest hang until its timeout.

I think that vs_assert() ought to be printing some information
to the console about which assert fails when it happens, but
how do I need to tweak the qtest to get it to capture this
console log somewhere?

Specifically, the test in question is this one:
QTEST_QEMU_BINARY=qemu-system-s390x
./build/s390/tests/qtest/cdrom-test -p
/s390x/cdrom/boot/without-bootindex

PS: it would be nice if "guest BIOS asserts and puts the
system into a detected-guest-crash state" resulted in the
test failing rather than hanging :-)

(Annoyingly, most of my attempts to get more information about
where things go wrong seem to cause the bug to stop manifesting
itself: eg building the s390-ccw.img without -O2; enabling
TCG 'exec' logging; enabling 'trace:virtio*' tracepoints.
The failure itself started with commit 7a3d37a3f233 updating
the s390 bios blobs, but the changes that went into the new
blobs don't really look like they would be responsible.
I am starting to have gloomy thoughts about potential missing
memory barrier insns between the CPU thread and the iothread
doing the virtio device end of things...)

thanks
-- PMM


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-02-12 14:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-22 20:32 getting the console output for s390 cdrom-test? Peter Maydell
2021-02-04 16:08 ` Thomas Huth
2021-02-08 10:27   ` Peter Maydell
2021-02-08 11:34     ` Thomas Huth
2021-02-08 12:08       ` Peter Maydell
2021-02-09 14:58         ` Peter Maydell
2021-02-09 17:10           ` Cornelia Huck
2021-02-09 17:17             ` Peter Maydell
2021-02-09 17:24               ` Cornelia Huck
2021-02-09 18:25                 ` Peter Maydell
2021-02-12 11:44                   ` Thomas Huth
2021-02-12 12:05                     ` Peter Maydell
2021-02-12 14:10                       ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).