From nobody Sun Feb 8 14:53:17 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=1564508386; cv=none; d=zoho.com; s=zohoarc; b=mq7BpU1RxAZp2wn4XBv+9gIMRsgoMOb6UjUUmsVZJB1hHnvm44rvAXm1YZY9OHhLC/b1dopPQcXprf3dBA9RqZwXZJOZkfC/z08mhltkP+yiSU07Ag5HD3zNm60B+PuZjx4zlvp8cdbGaK5OtNIwD1xIBDqdZVUIBZ4u6L+x9Ss= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564508386; 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=SBJRqnm1cmzjftg6plb0N6iIdn972IvUUfl+2151nLrNPJygXoDk7QmzriHpXjwFKxD/WDoOVMK8xPk9gbgHUVjpmEH1wfir60/Sx9X7Jb+HR8GbanHDl7+AgQRZIkKIF6+waM8l13mJSUxLAGXM4Fpc2U4ArCtUfH8A2KEfvUU= 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 1564508386793170.93269480793754; Tue, 30 Jul 2019 10:39:46 -0700 (PDT) Received: from localhost ([::1]:35182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsW6D-00038M-Rj for importer@patchew.org; Tue, 30 Jul 2019 13:39:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35519) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsW1x-0003Xk-7j for qemu-devel@nongnu.org; Tue, 30 Jul 2019 13:35:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsW1w-0008Ol-7G for qemu-devel@nongnu.org; Tue, 30 Jul 2019 13:35:21 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:37514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsW1w-0008OQ-1H; Tue, 30 Jul 2019 13:35:20 -0400 Received: by mail-pf1-x441.google.com with SMTP id 19so30201299pfa.4; Tue, 30 Jul 2019 10:35:19 -0700 (PDT) Received: from localhost.localdomain ([136.233.9.97]) by smtp.gmail.com with ESMTPSA id q24sm59122895pjp.14.2019.07.30.10.35.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 10:35:18 -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=ac7f/SCaAIkJICvNjagIShZ3Ql1yUbJST57mHrbSzq+mB2+3ZZvWqJ3Ejzm7L0VED6 3dC/6RUcU58HNU0ZEEETXGSCQxzzvGkKhPlr0qvj9BizNFixzYTopaaTH0SvCNC6cFRO Gkqp2RyvzjsU/1hB50WJ2B1jiPzvQ8qzx1jyskGUpGaJ0dDAKgKiN5wtqEPkGaEkTahM f3VoDlfNc1sVERWHdOSwoIEGUFWRjB6AdFklGPemEfBbHpIdET2SRNQmE7auwLHLul74 J8GyXU6uRiiCDwwF6L/dgV/qrHWYdpwYNnBD6Lz3hroKxMSWEdWVZ/6SKwhte9b29CJM vRWg== 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=HEsnOe7d6mmHFnHD5dYEOql2k6yIjiHieBkydw06apHDUGv1wJFC1vUI0Yuchjby/h Fg7T2zLt9hkcJ/yFqMFDuWURcws4VNem0tWGGL4rGDvLUvFdF71MhenD3VjDAP2kDHkS cFFXpSFVCoaIjWmlkaozMOGLo6qYXnJ3jx8CYvoHrF7ZNczIClQLS90hMQ5OdrMndhfm hc0amKkLR8a7J1Cc/88EvvLieChbDNvnTf5lF4mDy/Js/sBvMmc597eYn4FVxqcEn2ec KeHUHjX+cjkk4js3LFoyydjLZ09BzNjtQ1sAdxeGKOzRGpzzAWnSb5AmDgMUn8FPFxUr TacQ== X-Gm-Message-State: APjAAAWsRAE9sNLLM7mNpeHnJUKoDn4nS6QGy+OrEYliefjzthhHwOzS Z2gKwNX1M6ANGjG6p/RdPDSlTlzL8fF+4g== X-Google-Smtp-Source: APXvYqwwi3kJDv3s/f/uqT2nQ/DMA5NxB4gS4X7/aniZEb1ZhBIb9NBRRB+0fj73eKsOIF0VUH2BZA== X-Received: by 2002:aa7:9293:: with SMTP id j19mr44186152pfa.90.1564508118709; Tue, 30 Jul 2019 10:35:18 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Tue, 30 Jul 2019 23:04:26 +0530 Message-Id: <20190730173441.26486-2-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190730173441.26486-1-mehta.aaru20@gmail.com> References: <20190730173441.26486-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::441 Subject: [Qemu-devel] [PATCH v8 01/16] 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: Kevin Wolf , Fam Zheng , Sergio Lopez , qemu-block@nongnu.org, 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