From nobody Mon Feb 9 03:13:41 2026 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=1560174774; cv=none; d=zoho.com; s=zohoarc; b=OZp/pPYDx5Wcms1oS6jYRuSDeAFojzPtsdrfnBGgxSimH2OyvLmUY/5pzVkltMZiS007+bTCjLzYSoCl1tOkR9RPNK+ayQtwswQT7XZZjWc2jNG4wqxBraqU9tRgM0kB30J8pQks7BW+GJD3PIhGFJ6Bq/wnAL/jN9EzvAMorB0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560174774; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=mam4w+9UfKu9WdJoSPIimpAQV6LGmM+7szCVVJxwAcM=; b=lvizUOIFEFxm7zqM9R2YWzkN6ovUT6s4iyJ871knEKFaiizwlaLN43twqTt5gI+Rl8yfmFTQ6G7kjd0d/vvBTJ3uw//BYrTt1y7ieOUF8JStC5cfoUT04bIUtRCZuHE92OYoYa8mHJhJSqRJCDLjTHD2jexWbb3xg0xDIkW1eF4= 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 1560174774265724.5977773905703; Mon, 10 Jun 2019 06:52:54 -0700 (PDT) Received: from localhost ([::1]:46706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haKjC-0002mg-7z for importer@patchew.org; Mon, 10 Jun 2019 09:52:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50986) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haKgB-00081Q-5a for qemu-devel@nongnu.org; Mon, 10 Jun 2019 09:49:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haKg8-0001TT-1O for qemu-devel@nongnu.org; Mon, 10 Jun 2019 09:49:41 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:46105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1haKg5-0001Rr-VA; Mon, 10 Jun 2019 09:49:39 -0400 Received: by mail-pg1-x544.google.com with SMTP id v9so3371015pgr.13; Mon, 10 Jun 2019 06:49:37 -0700 (PDT) Received: from localhost.localdomain ([136.233.9.100]) by smtp.gmail.com with ESMTPSA id d4sm13969837pfc.149.2019.06.10.06.49.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 06:49: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; bh=mam4w+9UfKu9WdJoSPIimpAQV6LGmM+7szCVVJxwAcM=; b=rAyJzZXLMoLscx/+WqDhRXde1jlZfQUtvzjNhz6q8M5Zzz3cYvTlwiGfDHAwjQ8FqB P7vVAE4He0zTj1F8VRBQStZMRsDMhket2DkjwdX9TvRlZiv+kEKK6m7g7p0hiww1VvWi 5Xg/RpzC5sU6882tChR4yLyfQeO1SQHIwyTKD+ZKOGSuVgKn2xqkX/RwJtyy193uzTBV 0b1Ga7XwCS0t44k62zrr8DQ1UAxgWLZCOoIBgdW5saZn/YFSrad9LGrVVvqwxDJcL0rY NgCxC45xV0zda0M2g3YtiozMMCwU9sKObtdN5XQrJ5yZt2/uZyVckEJ0yhCHUvn5Jlbf /8rw== 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; bh=mam4w+9UfKu9WdJoSPIimpAQV6LGmM+7szCVVJxwAcM=; b=DSPgZHIM/qRHNKCnaYjIk2r29zVxCFaYpyymGcHXQLV5Fdlz+4UnPBRasb774lA/cq gs0fknBIA+avI/FaEQIKQpH7uvnITReR28Vefk+4au9XF0X8dY/ZSLycwc26Yle1nGjD 2/HnHlsfYlaViBeVn6HGhY79LT93b/Q3nOXTEkfYiSsPjZw1G7/PAROb64FKXq+XGNyZ mf9cZj9nx8NJbqLima6iFs0B2ppqtPWqTKmPIl/SE36rFKRiGMdDE/3HHNMvTa4WGKv5 Dwgmd6WKZHv5L+rhs8tmBk7IoCpVxStl7NOcfARzFi19EM6IlK3PwmwBn8kZrwDIPYmT wHMw== X-Gm-Message-State: APjAAAWYYVP/emxBs5YJlwm7JoCk7+hUcA7iMw12/3BHHjHjv4xoYEd7 OW/pzCllEPFG03OUdpIPDX8WkFwQCD8Q0w== X-Google-Smtp-Source: APXvYqzlwwDBVvxUXKs8PNom0I8YERpFY023OEfEX0xJmW50/Yh8kAEs665qkLOVSjL80mzATva3IQ== X-Received: by 2002:a62:d45d:: with SMTP id u29mr10207136pfl.135.1560174576330; Mon, 10 Jun 2019 06:49:36 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Mon, 10 Jun 2019 19:18:54 +0530 Message-Id: <20190610134905.22294-2-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190610134905.22294-1-mehta.aaru20@gmail.com> References: <20190610134905.22294-1-mehta.aaru20@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 Subject: [Qemu-devel] [PATCH v5 01/12] 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 , Sergio Lopez , qemu-block@nongnu.org, Markus Armbruster , Max Reitz , saket.sinha89@gmail.com, Stefan Hajnoczi , Paolo Bonzini , Maxim Levitsky , Julia Suvorova , Aarushi Mehta Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 b091b82cb3..7aa18d308d 100755 --- a/configure +++ b/configure @@ -365,6 +365,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"" @@ -1266,6 +1267,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" @@ -1784,6 +1789,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 @@ -3973,6 +3979,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 @@ -6396,6 +6417,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" @@ -6874,6 +6896,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.17.1