Christian Borntraeger 136be99e6e 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>
2012-05-30 14:51:04 +02:00
2012-05-24 19:35:27 +04:00
2012-05-01 00:17:27 +02:00
2012-05-30 10:28:44 +08:00
2012-05-01 19:08:44 -03:00
2012-05-01 10:58:04 +00:00
2012-04-27 11:44:50 -03:00
2012-05-14 07:27:24 +02:00
2012-05-01 10:45:02 +00:00
2012-05-12 09:14:38 +00:00
2012-05-14 07:27:24 +02:00
2012-05-19 15:49:40 +00:00
2012-05-10 11:01:59 +02:00
2012-05-08 14:30:09 -03:00
2012-05-10 08:33:34 -05:00
2012-04-26 13:14:58 -05:00
2012-05-14 17:02:19 +02:00
2012-05-10 10:32:13 +02:00
2012-05-01 00:17:27 +02:00
2012-04-26 13:14:58 -05:00
2012-05-10 12:37:57 -05:00
2012-05-10 12:37:57 -05:00
2012-05-08 14:30:09 -03:00
2012-04-24 09:50:31 -05:00
2012-05-08 11:15:18 -05:00
2012-05-22 09:21:01 -05:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme 531 MiB
Languages
C 82.5%
C++ 7%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%