[virt-manager PATCH] disk: Support disk io mode io_uring

Han Han hhan at redhat.com
Mon Apr 27 03:55:20 UTC 2020


Support the io_uring io mode, introduced since Libvirt v6.3.0.

Signed-off-by: Han Han <hhan at redhat.com>
---
 man/virt-install.pod     | 2 +-
 virtinst/devices/disk.py | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/man/virt-install.pod b/man/virt-install.pod
index 12840253..a8fca815 100644
--- a/man/virt-install.pod
+++ b/man/virt-install.pod
@@ -977,7 +977,7 @@ storage. Typically does not need to be set by the user.
 
 =item B<driver.io>
 
-Disk IO backend. Can be either "threads" or "native".
+Disk IO backend. Can be either "threads", "native" or "io_uring".
 
 =item B<driver.error_policy>
 
diff --git a/virtinst/devices/disk.py b/virtinst/devices/disk.py
index c9db10ad..ee45454f 100644
--- a/virtinst/devices/disk.py
+++ b/virtinst/devices/disk.py
@@ -78,6 +78,7 @@ class DeviceDisk(Device):
 
     IO_MODE_NATIVE = "native"
     IO_MODE_THREADS = "threads"
+    IO_MODE_IO_URING = "io_uring"
 
 
     @staticmethod
-- 
2.25.0




More information about the virt-tools-list mailing list