diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2012-05-24 13:22:55 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-05-30 14:51:04 +0200 |
commit | 136be99e6e2130d3cd960b6b7d0ca86b6f011e5f (patch) | |
tree | 1d90cb1d778a0c361aed0051429c165f48e3318f /hw/watchdog.h | |
parent | c2d76497b6eafcaedc806e07804e7bed55a98a0b (diff) | |
download | qemu-136be99e6e2130d3cd960b6b7d0ca86b6f011e5f.zip qemu-136be99e6e2130d3cd960b6b7d0ca86b6f011e5f.tar.gz qemu-136be99e6e2130d3cd960b6b7d0ca86b6f011e5f.tar.bz2 |
virtio-blk: Fix geometry sector calculation
Currently the sector value for the geometry is masked, even if the
user usesa command line parameter that explicitely gives a number.
This breaks dasd devices on s390. A dasd device can have
a physical block size of 4096 (== same for logical block size)
and a typcial geometry of 15 heads and 12 sectors per cyl.
The ibm partition detection relies on a correct geometry
reported by the device. Unfortunately the current code changes
12 to 8. This would be necessary if the total size is
not a multiple of logical sector size, but for dasd this
is not the case.
This patch checks the device size and only applies sector
mask if necessary.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
CC: Christoph Hellwig <hch@lst.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/watchdog.h')
0 files changed, 0 insertions, 0 deletions