qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-s390x <qemu-s390x@nongnu.org>,
	Eric Farman <farman@linux.ibm.com>,
	Cornelia Huck <cohuck@redhat.com>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: getting the console output for s390 cdrom-test?
Date: Mon, 8 Feb 2021 12:34:09 +0100	[thread overview]
Message-ID: <5213f033-19dc-bc40-bfd7-10b8c676539b@redhat.com> (raw)
In-Reply-To: <CAFEAcA8q1ewJ4F-pijt81Qc_rO0xNpy6jJY2DrW0ggTzg27aEQ@mail.gmail.com>

On 08/02/2021 11.27, Peter Maydell wrote:
> On Thu, 4 Feb 2021 at 16:08, Thomas Huth <thuth@redhat.com> wrote:
>>
>> On 22/01/2021 21.32, Peter Maydell wrote:
>>> 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?
>>
>>    Hi!
>>
>> Sorry for the late reply ... did you get any further with this already?
> 
> No, I've been mostly working on other stuff. Thanks for the instructions
> on how to capture stdio. This is what a success looks like:
> 
> LOADPARM=[        ]
> Using virtio-scsi.
> Warning: Could not locate a usable virtio-scsi device
> Using virtio-blk.
> Using guessed DASD geometry.
> Using ECKD scheme (block size  4096), CDL
> No zIPL section in IPL2 record.
> zIPL load failed.
> Using virtio-blk.
> ISO boot image size verified
> 
> And this is a failure:
> 
> LOADPARM=[        ]
> Using virtio-scsi.
> target: 0x0000000000000094
> 
> ! SCSI cannot report LUNs: response VS RESP=09 !

Looks like the SCSI controller returned VIRTIO_SCSI_S_FAILURE instead of the 
expected VIRTIO_SCSI_S_BAD_TARGET here (see virtio_scsi_locate_device() in 
pc-bios/s390-ccw/virtio-scsi.c).

The question is: How could that happen? If I get hw/scsi/virtio-scsi.c 
right, this is only set by virtio_scsi_fail_cmd_req(), i.e. it only happens 
if virtio_scsi_parse_req() returned -ENOTSUP ... which indicates that there 
was something wrong with the VirtIOSCSIReq request?

Could you maybe try to add some debug printfs to virtio_scsi_parse_req() in 
hw/scsi/virtio-scsi.c and/or to scsi_report_luns() / vs_run() in 
pc-bios/s390-ccw/virtio-scsi.c to see whether there is something obviously 
wrong in the request?

  Thomas



  reply	other threads:[~2021-02-08 18:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5213f033-19dc-bc40-bfd7-10b8c676539b@redhat.com \
    --to=thuth@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=farman@linux.ibm.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).