<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/pc-bios/s390-ccw/virtio-scsi.c, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/pc-bios/s390-ccw/virtio-scsi.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/pc-bios/s390-ccw/virtio-scsi.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-08-01T09:58:02+00:00</updated>
<entry>
<title>misc: fix commonly doubled up words</title>
<updated>2022-08-01T09:58:02+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2022-07-07T16:37:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7a21bee2aa52fc95b25e38372678986ee94f05f1'/>
<id>urn:sha1:7a21bee2aa52fc95b25e38372678986ee94f05f1</id>
<content type='text'>
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20220707163720.1421716-5-berrange@redhat.com&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>pc-bios/s390-ccw: Split virtio-scsi code from virtio_blk_setup_device()</title>
<updated>2022-07-06T16:35:10+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2022-07-04T11:19:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=cf30b7c4a9b2c64518be8037c2e6670aacdb00b9'/>
<id>urn:sha1:cf30b7c4a9b2c64518be8037c2e6670aacdb00b9</id>
<content type='text'>
The next patch is going to add more virtio-block specific code to
virtio_blk_setup_device(), and if the virtio-scsi code is also in
there, this is more cumbersome. And the calling function virtio_setup()
in main.c looks at the device type already anyway, so it's more
logical to separate the virtio-scsi stuff into a new function in
virtio-scsi.c instead.

Message-Id: &lt;20220704111903.62400-10-thuth@redhat.com&gt;
Reviewed-by: Eric Farman &lt;farman@linux.ibm.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>pc-bios/s390-ccw: Do not bail out early if not finding a SCSI disk</title>
<updated>2020-10-06T17:36:50+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2020-07-28T12:30:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=605751b5a5334e187761b0b8a8266a216897bf70'/>
<id>urn:sha1:605751b5a5334e187761b0b8a8266a216897bf70</id>
<content type='text'>
In case the user did not specify a boot device, we want to continue
looking for other devices if there are no valid SCSI disks on a virtio-
scsi controller. As a first step, do not panic in this case and let
the control flow carry the error to the upper functions instead.

Message-Id: &lt;20200806105349.632-6-thuth@redhat.com&gt;
Reviewed-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>pc-bios: s390x: Move sleep and yield to helper.h</title>
<updated>2020-07-02T07:59:51+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2020-06-24T07:52:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=12ea90dbd8fc38ca937acb53c730818077bf86fe'/>
<id>urn:sha1:12ea90dbd8fc38ca937acb53c730818077bf86fe</id>
<content type='text'>
They are definitely helper functions.

Signed-off-by: Janosch Frank &lt;frankja@linux.ibm.com&gt;
Reviewed-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Message-Id: &lt;20200624075226.92728-4-frankja@linux.ibm.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>pc-bios: s390x: Consolidate timing functions into time.h</title>
<updated>2020-07-02T07:59:24+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2020-06-24T07:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e70bc57ba0c982944cf5b71f293122dbb2b462f4'/>
<id>urn:sha1:e70bc57ba0c982944cf5b71f293122dbb2b462f4</id>
<content type='text'>
Let's consolidate timing related functions into one header.

Signed-off-by: Janosch Frank &lt;frankja@linux.ibm.com&gt;
Acked-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Message-Id: &lt;20200624075226.92728-3-frankja@linux.ibm.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>pc-bios/s390-ccw: Fix problem with invalid virtio-scsi LUN when rebooting</title>
<updated>2017-11-20T09:35:12+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2017-11-17T18:10:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8775d91a0f42d016833330881bb587982db88a3c'/>
<id>urn:sha1:8775d91a0f42d016833330881bb587982db88a3c</id>
<content type='text'>
When rebooting a guest that has a virtio-scsi disk, the s390-ccw
bios sometimes bails out with an error message like this:

! SCSI cannot report LUNs: STATUS=02 RSPN=70 KEY=05 CODE=25 QLFR=00, sure !

Enabling the scsi_req* tracing in QEMU shows that the ccw bios is
trying to execute the REPORT LUNS SCSI command with a LUN != 0, and
this causes the SCSI command to fail.
Looks like we neither clear the BSS of the s390-ccw bios during reboot,
nor do we explicitly set the default_scsi_device.lun value to 0, so
this variable can contain random values from the OS after the reboot.
By setting this variable explicitly to 0, the problem is fixed and
the reboots always succeed.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1514352
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;1510942228-22822-1-git-send-email-thuth@redhat.com&gt;
Acked-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
<entry>
<title>pc-bios/s390-ccw: Move libc functions to separate header</title>
<updated>2017-07-14T10:29:48+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2017-07-12T12:49:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=90806fec99d6cf32f627b66be3757901091dc7e9'/>
<id>urn:sha1:90806fec99d6cf32f627b66be3757901091dc7e9</id>
<content type='text'>
The upcoming netboot code will use the libc from SLOF. To be able
to still use s390-ccw.h there, the libc related functions in this
header have to be moved to a different location.
And while we're at it, remove the duplicate memcpy() function from
sclp.c.

Reviewed-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
Reviewed-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;1499863793-18627-2-git-send-email-thuth@redhat.com&gt;
Signed-off-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>pc-bios/s390-ccw: Build a reasonable max_sectors limit</title>
<updated>2017-05-19T10:29:01+00:00</updated>
<author>
<name>Eric Farman</name>
</author>
<published>2017-05-10T15:53:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=de4e3ae408ad29ca820ae68e09976e14d80289a6'/>
<id>urn:sha1:de4e3ae408ad29ca820ae68e09976e14d80289a6</id>
<content type='text'>
Now that we've read all the possible limits that have been defined for
a virtio-scsi controller and the disk we're booting from, it's possible
that we are STILL going to exceed the limits of the host device.
For example, a "-device scsi-generic" device does not support the
Block Limits VPD page.

So, let's fallback to something that seems to work for most boot
configurations if larger values were specified (including if nothing
was explicitly specified, and we took default values).

Signed-off-by: Eric Farman &lt;farman@linux.vnet.ibm.com&gt;
Message-Id: &lt;20170510155359.32727-8-farman@linux.vnet.ibm.com&gt;
Signed-off-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>pc-bios/s390-ccw: Get Block Limits VPD device data</title>
<updated>2017-05-19T10:29:01+00:00</updated>
<author>
<name>Eric Farman</name>
</author>
<published>2017-05-10T15:53:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fe921fc8b7e92020bb140079a9f47f14fb8e9075'/>
<id>urn:sha1:fe921fc8b7e92020bb140079a9f47f14fb8e9075</id>
<content type='text'>
The "Block Limits" Inquiry VPD page is optional for any SCSI device,
but if it's supported it provides a hint of the maximum I/O transfer
length for this particular device. If this page is supported by the
disk, let's issue that Inquiry and use the minimum of it and the
SCSI controller limit. That will cover this scenario:

  qemu-system-s390x ...
    -device virtio-scsi-ccw,id=scsi0,max_sectors=32768 ...
    -drive file=/dev/sda,if=none,id=drive0,format=raw ...
    -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,
            drive=drive0,id=disk0,max_io_size=1048576

controller: 32768 sectors x 512 bytes/sector = 16777216 bytes
      disk:                                     1048576 bytes

Now that we have a limit for a virtio-scsi disk, compare that with the
limit for the virtio-scsi controller when we actually build the I/O.
The minimum of these two limits should be the one we use.

Signed-off-by: Eric Farman &lt;farman@linux.vnet.ibm.com&gt;
Message-Id: &lt;20170510155359.32727-7-farman@linux.vnet.ibm.com&gt;
Signed-off-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>pc-bios/s390-ccw: Get list of supported VPD pages</title>
<updated>2017-05-19T10:29:01+00:00</updated>
<author>
<name>Eric Farman</name>
</author>
<published>2017-05-10T15:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8edfe85bef669d676ad17cd84b4e3dce43b110e4'/>
<id>urn:sha1:8edfe85bef669d676ad17cd84b4e3dce43b110e4</id>
<content type='text'>
The "Supported Pages" Inquiry EVPD page is mandatory for all SCSI devices,
and is used as a gateway for what VPD pages the device actually supports.
Let's issue this Inquiry, and dump that list with the debug facility.

Signed-off-by: Eric Farman &lt;farman@linux.vnet.ibm.com&gt;
Message-Id: &lt;20170510155359.32727-6-farman@linux.vnet.ibm.com&gt;
Signed-off-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
</content>
</entry>
</feed>
