aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x/css.h
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2014-09-05 09:33:18 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-09-23 14:10:17 +0200
commite8601dd5d0ffa909068ddefe33bf6a53d8af063a (patch)
treeb75f2781b12431b883aa6116e761d61c14f23760 /hw/s390x/css.h
parenta327c9215d8a9b5935ea807aaa9b65ccd23ec615 (diff)
s390x/css: catch ccw sequence errors
We must not allow chains of more than 255 ccws without data transfer. Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'hw/s390x/css.h')
-rw-r--r--hw/s390x/css.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/css.h b/hw/s390x/css.h
index 384a455aa1..33104ac58e 100644
--- a/hw/s390x/css.h
+++ b/hw/s390x/css.h
@@ -78,6 +78,7 @@ struct SubchDev {
bool last_cmd_valid;
bool ccw_fmt_1;
bool thinint_active;
+ uint8_t ccw_no_data_cnt;
/* transport-provided data: */
int (*ccw_cb) (SubchDev *, CCW1);
SenseId id;