summaryrefslogtreecommitdiffstats
path: root/pc-bios/s390-ccw/s390-ccw.h
diff options
context:
space:
mode:
authorEugene (jno) Dvurechenski <jno@linux.vnet.ibm.com>2014-05-19 20:10:27 +0200
committerCornelia Huck <cornelia.huck@de.ibm.com>2014-06-27 12:10:03 +0200
commit91a03f9b6953cca0e8c05402e141a576b01063e2 (patch)
treea09959f4ebd8b7cb7db193cda86e4150bfce6507 /pc-bios/s390-ccw/s390-ccw.h
parent26f2bbd6b1c6ef6eb3f84a2ddb0be92f4d93049a (diff)
downloadhqemu-91a03f9b6953cca0e8c05402e141a576b01063e2.zip
hqemu-91a03f9b6953cca0e8c05402e141a576b01063e2.tar.gz
pc-bios/s390-ccw: handle different sector sizes
Use the virtio device's configuration to figure out the disk geometry and use a sector size based upon the layout. [CH: s/SECTOR_SIZE/MAX_SECTOR_SIZE/g] Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'pc-bios/s390-ccw/s390-ccw.h')
-rw-r--r--pc-bios/s390-ccw/s390-ccw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pc-bios/s390-ccw/s390-ccw.h b/pc-bios/s390-ccw/s390-ccw.h
index fe1dd22..b6c0a5b 100644
--- a/pc-bios/s390-ccw/s390-ccw.h
+++ b/pc-bios/s390-ccw/s390-ccw.h
@@ -130,6 +130,6 @@ static inline void yield(void)
: "memory", "cc");
}
-#define SECTOR_SIZE 512
+#define MAX_SECTOR_SIZE 4096
#endif /* S390_CCW_H */
OpenPOWER on IntegriCloud