From: Christian Borntraeger <borntraeger@de.ibm.com>
To: kwolf@redhat.com, stefanha@gmail.com
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, agraf@suse.de,
borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com,
cornelia.huck@de.ibm.com, pbonzini@redhat.com,
Einar Lueck <elelueck@de.ibm.com>
Subject: [Qemu-devel] [PATCH 0/3] block patches for auto detection of geometry and block size
Date: Tue, 13 Nov 2012 09:50:09 +0100 [thread overview]
Message-ID: <1352796612-49081-1-git-send-email-borntraeger@de.ibm.com> (raw)
Here are three patches that allow to detect the host configuration of
geometry and block sizes. This is necessary on s390 to make the guest partition
detection work (on dasds the geometry still influences the layout), as well as
to not break cache=none (e.g. dasd disks often have 4k block size)
These patches try to minize the impact by:
- using HGIO_GETGEO only in cases were the layout cannot be read from disk
- using host block size only if the user or the bus specifies the special
value of 0 for logical_block_size
Einar Lueck (3):
hd-geometry.c: Integrate HDIO_GETGEO in guessing
hd-geometry.c/s390: Disable geometry translation
block: support auto-sensing of block sizes
hw/block-common.c | 29 ++++++++++++
hw/block-common.h | 12 +++--
hw/hd-geometry.c | 129 +++++++++++++++++++++++++++++++++++---------------
hw/ide/qdev.c | 1 +
hw/qdev-properties.c | 4 +-
hw/s390-virtio-bus.c | 2 +-
hw/scsi-disk.c | 1 +
hw/virtio-blk.c | 1 +
8 files changed, 137 insertions(+), 42 deletions(-)
--
1.7.10.1
next reply other threads:[~2012-11-13 8:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 8:50 Christian Borntraeger [this message]
2012-11-13 8:50 ` [Qemu-devel] [PATCH 1/3] hd-geometry.c: Integrate HDIO_GETGEO in guessing Christian Borntraeger
2012-11-19 15:08 ` Markus Armbruster
2012-11-19 15:30 ` Christian Borntraeger
2012-11-13 8:50 ` [Qemu-devel] [PATCH 2/3] hd-geometry.c/s390: Disable geometry translation Christian Borntraeger
2012-11-17 16:07 ` Blue Swirl
2012-11-18 16:10 ` Paolo Bonzini
2012-11-18 19:14 ` Blue Swirl
2012-11-19 10:59 ` Christian Borntraeger
2012-11-19 11:20 ` Alexander Graf
2012-11-13 8:50 ` [Qemu-devel] [PATCH 3/3] block: support auto-sensing of block sizes Christian Borntraeger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352796612-49081-1-git-send-email-borntraeger@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=elelueck@de.ibm.com \
--cc=jfrei@linux.vnet.ibm.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).