From 0b8ff5672665c3792c27c02d9d05e0951c03d440 Mon Sep 17 00:00:00 2001 From: Luo Yifan Date: Wed, 30 Nov 2022 18:13:36 +0800 Subject: [PATCH 14/24] docs: introduces new vhostuser disk type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavel Hrdina Reviewed-by: Ján Tomko Reviewed-by: Peter Krempa (cherry picked from commit e88bdaf789b6f1cc5347b217240f15afd86a94c1) Signed-off-by: Luo Yifan --- docs/formatdomain.html.in | 51 ++++++++++++++++++++++++++++++++++- docs/schemas/domaincommon.rng | 19 +++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index aaeb05961f..5860ec9f20 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -2977,6 +2977,13 @@ </source> <target dev='vde' bus='virtio'/> </disk> + <disk type='vhostuser' device='disk'> + <driver name='qemu' type='raw'/> + <source type='unix' path='/tmp/vhost-blk.sock'> + <reconnect enabled='yes' timeout='10'/> + </source> + <target dev='vdf' bus='virtio'/> + </disk> </devices> ... @@ -2991,7 +2998,8 @@ "dir" (since 0.7.5), "network" (since 0.8.7), or "volume" (since 1.0.5), or - "nvme" (since 6.0.0) + "nvme" (since 6.0.0), or + "vhostuser" (since 6.2.0) and refer to the underlying source for the disk. Since 0.0.3 @@ -3217,6 +3225,31 @@ <disk type='block'> and therefore lower latencies can be achieved. +
vhostuser
+
+ Enables the hypervisor to connect to another process using vhost-user + protocol. Requires shared memory configured for the VM, for more details + see access mode for + memoryBacking <#elementsMemoryBacking> element. + + The source element has following mandatory attributes: +
+
type
+
The type of char device. Currently only unix type + is supported. +
+ +
path
+
Path to the unix socket to be used as disk source. +
+
+ + Note that the vhost server replaces both the disk frontend and backend + thus almost all of the disk properties can't be configured via the + <disk> XML for this disk type. Additionally features + such as blockjobs, incremental backups and snapshots are not supported + for this disk type. +
With "file", "block", and "volume", one or more optional sub-elements seclabel, described @@ -3424,6 +3457,22 @@ Note that '0' is considered as if the value is not provided. Since 6.2.0 +
reconnect
+
+ For disk type vhostuser configures reconnect timeout + if the connection is lost. It has two mandatory attributes: +
+
enabled
+
If the reconnect feature is enabled, acceptsyes + and no +
+ +
timeout
+
The amount of seconds after which hypervisor tries to reconnect. +
+
+ Since 6.2.0 +

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 1807df521c..764f826df4 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -1631,6 +1631,7 @@ + @@ -2103,6 +2104,24 @@ + + + vhostuser + + + + unix + + + + + + + + + + + (ioemu:)?(fd|hd|sd|vd|xvd|ubd)[a-zA-Z0-9_]+ -- 2.27.0