From nobody Tue Nov 11 17:31:54 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1564413817; cv=none; d=zoho.com; s=zohoarc; b=b5BIKO/vY1JoJmhpcjkM6EutNZDMxfisfawLxixGYzbKOIzc3zSPSyOhbM0ggo+51rRD4ZNmCG4mYg3fJw1D/gXAyi9sBxCc0oC2HNeqif5eA+rr9e3SU4Tn/5bNxpmmYU9LYXOTP/E2xmDz1wadV/ioWaeJ+jx0dlfoSIwS+xc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564413817; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=dbXKSdV5tn5FcTOHM2GayIdaoxtdtsUeiXsLP0/PfEA=; b=ogpa73S18rB8Frb/09wJI4bNi7vfAdB6SLp2X+IwQ8ChaL6oGMgMdQFKdJfUDa6T+PxPgz2fPVqeFUZoIYWv2PdIVoK55yGo1OSutIziyDxWlvGg/Q1EScyRtZtLqhGiQLUmYfdel9l0N2FPEg3braSlhq8FoA0MMNRdgWpkDVA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156441381726578.54891174716647; Mon, 29 Jul 2019 08:23:37 -0700 (PDT) Received: from localhost ([::1]:53736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7Uu-0001eh-Ai for importer@patchew.org; Mon, 29 Jul 2019 11:23:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43493) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7P8-0006DB-Eh for qemu-devel@nongnu.org; Mon, 29 Jul 2019 11:17:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs7P7-0006nA-Dm for qemu-devel@nongnu.org; Mon, 29 Jul 2019 11:17:38 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:45803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hs7P7-0006ls-7N; Mon, 29 Jul 2019 11:17:37 -0400 Received: by mail-pf1-x443.google.com with SMTP id r1so28193024pfq.12; Mon, 29 Jul 2019 08:17:37 -0700 (PDT) Received: from localhost.localdomain ([136.233.9.97]) by smtp.gmail.com with ESMTPSA id h129sm58693941pfb.110.2019.07.29.08.17.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 08:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dbXKSdV5tn5FcTOHM2GayIdaoxtdtsUeiXsLP0/PfEA=; b=FaYq2WWRYuMymDWVl/iaKLoUG5kdYOHO0tzuCxEWNmJPXN1nY2E9G/GCh34gFPVUVH MV33u+ilM/fgIoagP7dhj49A0J1XAd4SacNByTPJstIPzqrwHyQ9ieDQZL41N1tzNafY 8rZEChyR1WTMxfLvK1tPLjG14l3P9J1BEwCNlRgi2L6kChHiuduQmaQTua5Km2OZbQoY IOu50MBDxL2JnfxxxJZMJdbbapxpQz/gIShwBRoYXkCBP5eIcPYVe0GpkcbCjAk0xPra qL7KIfLyl4mBUMlTtxfdjScXs4SFh/3d9Xv5dd13hNyJgjl/jM8yXah1uLSUBgk3VWU6 YMaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dbXKSdV5tn5FcTOHM2GayIdaoxtdtsUeiXsLP0/PfEA=; b=SQLMG1aLDj1ax6Jnv7mW4RK79/Q+xwh4xMqSmShJOE29xeYiUVh0pMq5p963tE+VvS 6x2KDNwY8aKQB4mlw89LHHlc/azkROhOq72Jw10f27ivBR07VQ5dyKAWjElhIZiW0a3n xhpQrO7iOShVUATNElaLu6DzOuPjEBb0fENujrvFQJFdJpChPfBH5t5ySUbHNfz8cjrb NqHkBEtF05KfhgqsDfyBCehM2eX9qbndPbaRgLfSorO2VqbmmukCmqduIWOoGxroCzRM HadSpZ2u6Upf3OC8IZw0+d3vbmgGZlEraT+O8ZT0aArG1+QTLFNolcq8MSWrfGaxRAIG Jaiw== X-Gm-Message-State: APjAAAUnoC3U4R2YLRYgGwpEwcXMfoWZC4sMEOVj0qkuxAdcJqF5MsnK ztU9FK5DUbT2ap7CF1gwBvVbJWnMQmjXfQ== X-Google-Smtp-Source: APXvYqzYLM3VoeH98v4I54eB4N9PUQZDfHBJOWHTvzgWRxVM48cRbWLKC7gNFsntw1MyXOeoVdLd/w== X-Received: by 2002:a17:90a:1c17:: with SMTP id s23mr113243093pjs.108.1564413455755; Mon, 29 Jul 2019 08:17:35 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Mon, 29 Jul 2019 20:46:37 +0530 Message-Id: <20190729151651.21306-2-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190729151651.21306-1-mehta.aaru20@gmail.com> References: <20190729151651.21306-1-mehta.aaru20@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 Subject: [Qemu-devel] [PATCH v7 01/15] configure: permit use of io_uring X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Kevin Wolf , qemu-block@nongnu.org, Sergio Lopez , Markus Armbruster , Maxim Levitsky , saket.sinha89@gmail.com, Max Reitz , Stefan Hajnoczi , Paolo Bonzini , Stefan Hajnoczi , Julia Suvorova , Aarushi Mehta , Maxim Levitsky Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Aarushi Mehta Reviewed-by: Stefan Hajnoczi Reviewed-by: Maxim Levitsky --- configure | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/configure b/configure index 714e7fb6a1..493dbc2ec5 100755 --- a/configure +++ b/configure @@ -371,6 +371,7 @@ xen=3D"" xen_ctrl_version=3D"" xen_pci_passthrough=3D"" linux_aio=3D"" +linux_io_uring=3D"" cap_ng=3D"" attr=3D"" libattr=3D"" @@ -1272,6 +1273,10 @@ for opt do ;; --enable-linux-aio) linux_aio=3D"yes" ;; + --disable-linux-io-uring) linux_io_uring=3D"no" + ;; + --enable-linux-io-uring) linux_io_uring=3D"yes" + ;; --disable-attr) attr=3D"no" ;; --enable-attr) attr=3D"yes" @@ -1790,6 +1795,7 @@ disabled with --disable-FEATURE, default is enabled i= f available: vde support for vde network netmap support for netmap network linux-aio Linux AIO support + linux-io-uring Linux io_uring support cap-ng libcap-ng support attr attr and xattr support vhost-net vhost-net kernel acceleration support @@ -3975,6 +3981,21 @@ EOF linux_aio=3Dno fi fi +########################################## +# linux-io-uring probe + +if test "$linux_io_uring" !=3D "no" ; then + if $pkg_config liburing; then + linux_io_uring_cflags=3D$($pkg_config --cflags liburing) + linux_io_uring_libs=3D$($pkg_config --libs liburing) + linux_io_uring=3Dyes + else + if test "$linux_io_uring" =3D "yes" ; then + feature_not_found "linux io_uring" "Install liburing devel" + fi + linux_io_uring=3Dno + fi +fi =20 ########################################## # TPM emulation is only on POSIX @@ -6398,6 +6419,7 @@ echo "PIE $pie" echo "vde support $vde" echo "netmap support $netmap" echo "Linux AIO support $linux_aio" +echo "Linux io_uring support $linux_io_uring" echo "ATTR/XATTR support $attr" echo "Install blobs $blobs" echo "KVM support $kvm" @@ -6885,6 +6907,11 @@ fi if test "$linux_aio" =3D "yes" ; then echo "CONFIG_LINUX_AIO=3Dy" >> $config_host_mak fi +if test "$linux_io_uring" =3D "yes" ; then + echo "CONFIG_LINUX_IO_URING=3Dy" >> $config_host_mak + echo "LINUX_IO_URING_CFLAGS=3D$linux_io_uring_cflags" >> $config_host_mak + echo "LINUX_IO_URING_LIBS=3D$linux_io_uring_libs" >> $config_host_mak +fi if test "$attr" =3D "yes" ; then echo "CONFIG_ATTR=3Dy" >> $config_host_mak fi --=20 2.21.0