aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>2012-08-29 17:48:30 +0200
committerEric Blake <eblake@redhat.com>2012-08-31 11:27:27 -0700
commit5cc50ad7a4e139261079a5848859c84cab3b0c7c (patch)
tree80e4fcc33a5b00c426ceed0364c3633929e447f3 /docs
parentcommand: shell-quote when logging commands (diff)
downloadlibvirt-5cc50ad7a4e139261079a5848859c84cab3b0c7c.tar.gz
libvirt-5cc50ad7a4e139261079a5848859c84cab3b0c7c.tar.bz2
libvirt-5cc50ad7a4e139261079a5848859c84cab3b0c7c.zip
conf: Support for Block Device IO Limits
Introducing a new iolimits element allowing to override certain properties of a guest block device like the physical and logical block size. This can be useful for platforms with 'non-standard' disk formats like S390 DASD with its 4K block size. Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/formatdomain.html.in18
-rw-r--r--docs/schemas/domaincommon.rng17
2 files changed, 35 insertions, 0 deletions
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 671ce170e..d8ad54ac8 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -1264,6 +1264,7 @@
&lt;driver name='qemu' type='raw'/&gt;
&lt;source dev='/dev/sda'/&gt;
&lt;geometry cyls='16383' heads='16' secs='63' trans='lba'/&gt;
+ &lt;iolimits logical_block_size='512' physical_block_size='4096'/&gt;
&lt;target dev='hda' bus='ide'/&gt;
&lt;/disk&gt;
&lt;/devices&gt;
@@ -1632,6 +1633,23 @@
BIOS-Translation-Modus (none, lba or auto)</dd>
</dl>
</dd>
+ <dt><code>iolimits</code></dt>
+ <dd>If present, the <code>iolimits</code> element allows
+ to override any of the block device properties listed below.
+ <span class="since">Since 0.10.2 (QEMU and KVM)</span>
+ <dl>
+ <dt><code>logical_block_size</code></dt>
+ <dd>The logical block size the disk will report to the guest
+ OS. For Linux this would be the value returned by the
+ BLKSSZGET ioctl and describes the smallest units for disk
+ I/O.
+ <dt><code>physical_block_size</code></dt>
+ <dd>The physical block size the disk will report to the guest
+ OS. For Linux this would be the value returned by the
+ BLKPBSZGET ioctl and describes the disk's hardware sector
+ size which can be relevant for the alignment of disk data.
+ </dl>
+ </dd>
</dl>
<h4><a name="elementsFilesystems">Filesystems</a></h4>
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 145caf78d..60cf33e0f 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -886,6 +886,9 @@
<optional>
<ref name="geometry"/>
</optional>
+ <optional>
+ <ref name="diskIoLimits"/>
+ </optional>
</interleave>
</define>
<define name="snapshot">
@@ -1110,6 +1113,20 @@
</optional>
</element>
</define>
+ <define name="diskIoLimits">
+ <element name="iolimits">
+ <optional>
+ <attribute name="logical_block_size">
+ <data type="integer"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="physical_block_size">
+ <data type="integer"/>
+ </attribute>
+ </optional>
+ </element>
+ </define>
<!--
Disk may use a special driver for access.
-->