[libvirt PATCH 1/2] conf: add support for disk "rotation_rate" property

Ján Tomko jtomko at redhat.com
Wed Mar 31 11:44:10 UTC 2021


On a Wednesday in 2021, Daniel P. Berrangé wrote:
>This lets the app expose the virtual SCSI or IDE disks as solid state
>devices by setting a rate of '1', or rotational media by setting a
>rate between 1025 and 65534.
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> docs/formatdomain.rst         | 13 ++++++++++---
> docs/schemas/domaincommon.rng |  5 +++++
> src/conf/domain_conf.c        | 11 +++++++++++
> src/conf/domain_conf.h        |  1 +
> 4 files changed, 27 insertions(+), 3 deletions(-)
>
>diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
>index 741130bf21..224f44a0a2 100644
>--- a/docs/formatdomain.rst
>+++ b/docs/formatdomain.rst
>@@ -2885,10 +2885,17 @@ paravirtualized driver is specified via the ``disk`` element.
>    to "closed". NB, the value of ``tray`` could be updated while the domain is
>    running. The optional attribute ``removable`` sets the removable flag for USB
>    disks, and its value can be either "on" or "off", defaulting to "off".
>+   The optional attribute ``rotation_rate`` sets the rotation rate of the
>+   storage for disks on a SCSI, IDE, or SATA bus. Values in the range 1025 to
>+   65534 are used to indicate rotational media spee in revolutions per minute.

speed

>+   A value of one is used to indicate solid state, or otherwise non-rotational,
>+   storage. These values are not required to match the values of the underlying
>+   host storage.
>    :since:`Since 0.0.3`; ``bus`` attribute :since:`since 0.4.3`; ``tray``
>    attribute :since:`since 0.9.11`; "usb" attribute value
>    :since:`since after 0.4.4`; "sata" attribute value :since:`since 0.9.7`;
>-   "removable" attribute value :since:`since 1.1.3`
>+   "removable" attribute value :since:`since 1.1.3`;
>+   "rotation_rate" attribute value :since:`since 7.3.0`
> ``iotune``
>    The optional ``iotune`` element provides the ability to provide additional
>    per-device I/O tuning, with values that can vary for each device (contrast

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210331/8db055cb/attachment-0001.sig>


More information about the libvir-list mailing list