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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Apr 30, 2020 at 8:28 PM Cole Robinson <crobinso@xxxxxxxxxx> wrote:
On 4/26/20 11:55 PM, Han Han wrote:
> Support the io_uring io mode, introduced since Libvirt v6.3.0.
>
> Signed-off-by: Han Han <hhan@xxxxxxxxxx>
> ---
>  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
>

Actually I'd rather remove the IO_MODE constants entirely,
IO_MODE_THREADS is only used in one place so they don't add much. Want
to submit a separate patch for that? The docs change can be its own commit
Sure. I will remove the IO_MODE_THREADS in the next patch series.

Thanks,
Cole



--
Best regards,
-----------------------------------
Han Han
Quality Engineer
Redhat.

Email: hhan@xxxxxxxxxx
Phone: +861065339333

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux