* [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes
@ 2013-06-07 8:11 Cornelia Huck
2013-06-07 8:11 ` [Qemu-devel] [PULL 1/2] s390x/css: Fix concurrent sense Cornelia Huck
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Cornelia Huck @ 2013-06-07 8:11 UTC (permalink / raw)
To: qemu-devel
Cc: Blue Swirl, Cornelia Huck, Anthony Liguori, Aurélien Jarno
Please pull to get these two bugfixes:
The following changes since commit 8819c10b5d55d537d59a0ffd5d623f348fc36c47:
Merge remote-tracking branch 'sstabellini/xen_fixes_20130603' into staging (2013-06-04 14:58:58 -0500)
are available in the git repository at:
git://github.com/cohuck/qemu virtio-ccw-upstr
for you to fetch changes up to d1db1fa8dfcea9c62643f624f2a07d2fd375ce45:
virtio-ccw: Fix unsetting of indicators. (2013-06-06 10:25:59 +0200)
----------------------------------------------------------------
Cornelia Huck (2):
s390x/css: Fix concurrent sense.
virtio-ccw: Fix unsetting of indicators.
hw/s390x/css.c | 2 +-
hw/s390x/virtio-ccw.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PULL 1/2] s390x/css: Fix concurrent sense.
2013-06-07 8:11 [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes Cornelia Huck
@ 2013-06-07 8:11 ` Cornelia Huck
2013-06-07 8:11 ` [Qemu-devel] [PULL 2/2] virtio-ccw: Fix unsetting of indicators Cornelia Huck
2013-06-17 21:17 ` [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Cornelia Huck @ 2013-06-07 8:11 UTC (permalink / raw)
To: qemu-devel
Cc: Blue Swirl, Cornelia Huck, Anthony Liguori, qemu-stable,
Aurélien Jarno
Fix an off-by-one error when indicating availablity of concurrent
sense data.
Cc: qemu-stable@nongnu.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
---
hw/s390x/css.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/s390x/css.c b/hw/s390x/css.c
index e526a1c..f82abfe 100644
--- a/hw/s390x/css.c
+++ b/hw/s390x/css.c
@@ -777,7 +777,7 @@ int css_do_tsch(SubchDev *sch, IRB *target_irb)
(p->chars & PMCW_CHARS_MASK_CSENSE)) {
irb.scsw.flags |= SCSW_FLAGS_MASK_ESWF | SCSW_FLAGS_MASK_ECTL;
memcpy(irb.ecw, sch->sense_data, sizeof(sch->sense_data));
- irb.esw[1] = 0x02000000 | (sizeof(sch->sense_data) << 8);
+ irb.esw[1] = 0x01000000 | (sizeof(sch->sense_data) << 8);
}
}
/* Store the irb to the guest. */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PULL 2/2] virtio-ccw: Fix unsetting of indicators.
2013-06-07 8:11 [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes Cornelia Huck
2013-06-07 8:11 ` [Qemu-devel] [PULL 1/2] s390x/css: Fix concurrent sense Cornelia Huck
@ 2013-06-07 8:11 ` Cornelia Huck
2013-06-17 21:17 ` [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Cornelia Huck @ 2013-06-07 8:11 UTC (permalink / raw)
To: qemu-devel
Cc: Blue Swirl, Cornelia Huck, Anthony Liguori, qemu-stable,
Aurélien Jarno
Interpretation of the ccws to register (configuration) indicators contained
a thinko: We want to disallow reading from 0, but setting the indicator
pointer to 0 is fine.
Let's fix the handling for CCW_CMD_SET{,_CONF}_IND.
Cc: qemu-stable@nongnu.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
---
hw/s390x/virtio-ccw.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index 5f5e267..44f5772 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -328,10 +328,10 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw)
ret = -EINVAL;
break;
}
- indicators = ldq_phys(ccw.cda);
- if (!indicators) {
+ if (!ccw.cda) {
ret = -EFAULT;
} else {
+ indicators = ldq_phys(ccw.cda);
dev->indicators = indicators;
sch->curr_status.scsw.count = ccw.count - sizeof(indicators);
ret = 0;
@@ -348,10 +348,10 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw)
ret = -EINVAL;
break;
}
- indicators = ldq_phys(ccw.cda);
- if (!indicators) {
+ if (!ccw.cda) {
ret = -EFAULT;
} else {
+ indicators = ldq_phys(ccw.cda);
dev->indicators2 = indicators;
sch->curr_status.scsw.count = ccw.count - sizeof(indicators);
ret = 0;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes
2013-06-07 8:11 [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes Cornelia Huck
2013-06-07 8:11 ` [Qemu-devel] [PULL 1/2] s390x/css: Fix concurrent sense Cornelia Huck
2013-06-07 8:11 ` [Qemu-devel] [PULL 2/2] virtio-ccw: Fix unsetting of indicators Cornelia Huck
@ 2013-06-17 21:17 ` Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2013-06-17 21:17 UTC (permalink / raw)
To: Cornelia Huck, qemu-devel; +Cc: Blue Swirl, Anthony Liguori, None
Pulled. Thanks.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-17 21:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 8:11 [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes Cornelia Huck
2013-06-07 8:11 ` [Qemu-devel] [PULL 1/2] s390x/css: Fix concurrent sense Cornelia Huck
2013-06-07 8:11 ` [Qemu-devel] [PULL 2/2] virtio-ccw: Fix unsetting of indicators Cornelia Huck
2013-06-17 21:17 ` [Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes Anthony Liguori
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).