From nobody Sun May 19 03:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583997501; cv=none; d=zohomail.com; s=zohoarc; b=nrBmVqlNIHEMvfIeaR0UzCPYEZhppmqpWKiBVmuq3uHI/PXUyfVhjKsFxuwcWpuHCbSFcqf+dXY1UgKfPLVsU2kwnJzinhmf2yvWaue7kCdKKQAmTpfMctyoNaZcJdvSSOhIx6FrtbwstP7d0RT+gBvwwpxO4uadL9qra9RUMPQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583997501; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=bK79J0IM7VzmFz1tCPsVmkPq0XemUh3ywnzsfm4r9LA=; b=VEGb7mrQmPQTAHjUrcQUaiQtmmVL/kWfT1BgDWx3YEywX65n5Q+KzWtjA8yoinYUZGB9q9oVTItsLUg3PkIjpEEgyVMZyECy3ArepO5DA8E/2M2w95zODIZpaUEcXLRU+of7Zm75PaPROAHvWYvIKugbAmqr9e7lt7NLeyg/rRk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1583997501922297.4275778700505; Thu, 12 Mar 2020 00:18:21 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-210-YZiBeGUIMP-DoitFR2OW2Q-1; Thu, 12 Mar 2020 03:18:17 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7030F107ACCA; Thu, 12 Mar 2020 07:18:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 969CE277B9; Thu, 12 Mar 2020 07:18:08 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9DE7D86A22; Thu, 12 Mar 2020 07:18:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02C7HxBD009455 for ; Thu, 12 Mar 2020 03:17:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id 574701005E46; Thu, 12 Mar 2020 07:17:59 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 527C8100724D for ; Thu, 12 Mar 2020 07:17:56 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C4017185A78F for ; Thu, 12 Mar 2020 07:17:56 +0000 (UTC) Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-78-GTVvKtuOO_ugA_Acc1pbrg-1; Thu, 12 Mar 2020 03:17:53 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5AFCA9BABEF3B22B6BA5 for ; Thu, 12 Mar 2020 15:17:50 +0800 (CST) Received: from DESKTOP-KKJBAGG.china.huawei.com (10.173.220.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 12 Mar 2020 15:17:43 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583997500; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bK79J0IM7VzmFz1tCPsVmkPq0XemUh3ywnzsfm4r9LA=; b=iuB1ra7krjQ+WV5+wAEd0I9oNKwg9JXiXDywnhOJkTVj2TwCu3hVPzUDUfpFJAzuwUFmyV 9oMpdxI1X3e/FZP2VxdJfDSC/mqpTn0NRfYFxOiKTh60Am/9LQ1xZWhp3oiCPiNDIgQSYw zf1/FoNAU+ay+6p5+2xykHp86/sZY/E= X-MC-Unique: YZiBeGUIMP-DoitFR2OW2Q-1 X-MC-Unique: GTVvKtuOO_ugA_Acc1pbrg-1 From: Zhenyu Ye To: Subject: [PATCH] conf: qemu: add support for io_uring Date: Thu, 12 Mar 2020 15:17:32 +0800 Message-ID: <20200312071732.2014-1-yezhenyu2@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.173.220.25] X-CFilter-Loop: Reflected X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 02C7HxBD009455 X-loop: libvir-list@redhat.com Cc: xiexiangyou@huawei.com, yezhenyu2@huawei.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" QEMU has added support for io_uring IO mode, see: https://git.qemu.org/git/qemu.git/ adcd6e93. This patch add support for io_uring in libvirt. Signed-off-by: Zhenyu Ye --- src/conf/domain_conf.c | 1 + src/conf/domain_conf.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d2d97daf80..5ced2f3b6b 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -361,6 +361,7 @@ VIR_ENUM_IMPL(virDomainDiskIo, "default", "native", "threads", + "io_uring", ); =20 VIR_ENUM_IMPL(virDomainDeviceSGIO, diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 91b776c28a..905fdecab3 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -421,6 +421,7 @@ typedef enum { VIR_DOMAIN_DISK_IO_DEFAULT =3D 0, VIR_DOMAIN_DISK_IO_NATIVE, VIR_DOMAIN_DISK_IO_THREADS, + VIR_DOMAIN_DISK_IO_URING, =20 VIR_DOMAIN_DISK_IO_LAST } virDomainDiskIo; --=20 2.19.1