[Qemu-devel] [PATCH V3 2/2] virtio-block: support auto-sensing of block sizes

2013-02-08 Thread Einar Lueck
virtio-blk context. For s390-virtio, this patch configures auto lookup as default. For virtio-ccw, this is already a default in the existing upstream implementation. Signed-off-by: Einar Lueck --- hw/block-common.c | 23 +++ hw/block-common.h | 12

[Qemu-devel] [PATCH V3 1/2] hd-geometry.c: Integrate HDIO_GETGEO in guessing for target-s390x

2013-02-08 Thread Einar Lueck
in the guest. Signed-off-by: Einar Lueck Signed-off-by: Jens Freimann Reviewed-by: Carsten Otte Signed-off-by: Christian Borntraeger --- hw/Makefile.objs | 6 - hw/hd-geometry.c | 70 +++- 2 files changed, 74 insertions(+), 2 deletions

[Qemu-devel] [PATCH V3 0/2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-02-08 Thread Einar Lueck
Hi, here is a reworked version. V2->V3: * introduced a hook for target specific geoemtry guessing ** target-s390x: as suggested in previous patch ** all other: like before Einar Lueck (2): hd-geometry.c: Integrate HDIO_GETGEO in guessing for target-s390x virtio-block: support auto-sensing

Re: [Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-14 Thread Einar Lueck
On 01/14/2013 02:23 PM, Markus Armbruster wrote: Einar Lueck writes: This patch extends the function hd_geometry_guess. If no geo could be guessed via guess_disk_lchs, a new function called guess_disk_pchs is called. The latter utilizes HDIO_GET_GEO ioctl to ask the underlying disk for

[Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-11 Thread Einar Lueck
Hi, here is a reworked version. V1 -> V2: * removed useless code movements * corrected terminology into logical and physical CHS and structured/layered functions accordingly Einar Lueck (1): hd-geometry.c: Integrate HDIO_GETGEO in guessing hw/hd-geometry.c |

[Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-11 Thread Einar Lueck
this patch, fdisk -l on the host would return different results then fdisk -l in the guest. Signed-off-by: Einar Lueck Signed-off-by: Jens Freimann Reviewed-by: Carsten Otte Signed-off-by: Christian Borntraeger --- hw/hd-geometry.c | 45 ++--- 1 file