From patchwork Tue Jul 30 17:34:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aarushi Mehta X-Patchwork-Id: 11066371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A5E314DB for ; Tue, 30 Jul 2019 17:39:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F4FD286BC for ; Tue, 30 Jul 2019 17:39:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3014528714; Tue, 30 Jul 2019 17:39:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C4B65286BC for ; Tue, 30 Jul 2019 17:39:31 +0000 (UTC) Received: from localhost ([::1]:35182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsW5z-00038M-59 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 30 Jul 2019 13:39:31 -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) 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) 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) 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 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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="" xen_ctrl_version="" xen_pci_passthrough="" linux_aio="" +linux_io_uring="" cap_ng="" attr="" libattr="" @@ -1272,6 +1273,10 @@ for opt do ;; --enable-linux-aio) linux_aio="yes" ;; + --disable-linux-io-uring) linux_io_uring="no" + ;; + --enable-linux-io-uring) linux_io_uring="yes" + ;; --disable-attr) attr="no" ;; --enable-attr) attr="yes" @@ -1790,6 +1795,7 @@ disabled with --disable-FEATURE, default is enabled if 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=no fi fi +########################################## +# linux-io-uring probe + +if test "$linux_io_uring" != "no" ; then + if $pkg_config liburing; then + linux_io_uring_cflags=$($pkg_config --cflags liburing) + linux_io_uring_libs=$($pkg_config --libs liburing) + linux_io_uring=yes + else + if test "$linux_io_uring" = "yes" ; then + feature_not_found "linux io_uring" "Install liburing devel" + fi + linux_io_uring=no + fi +fi ########################################## # 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" = "yes" ; then echo "CONFIG_LINUX_AIO=y" >> $config_host_mak fi +if test "$linux_io_uring" = "yes" ; then + echo "CONFIG_LINUX_IO_URING=y" >> $config_host_mak + echo "LINUX_IO_URING_CFLAGS=$linux_io_uring_cflags" >> $config_host_mak + echo "LINUX_IO_URING_LIBS=$linux_io_uring_libs" >> $config_host_mak +fi if test "$attr" = "yes" ; then echo "CONFIG_ATTR=y" >> $config_host_mak fi