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
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
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
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
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 |
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