From patchwork Mon Jun 3 12:38:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aarushi Mehta X-Patchwork-Id: 10972881 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 4F58C13AD for ; Mon, 3 Jun 2019 12:56:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F410285A2 for ; Mon, 3 Jun 2019 12:56:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31225285B3; Mon, 3 Jun 2019 12:56:01 +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 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C770128641 for ; Mon, 3 Jun 2019 12:56:00 +0000 (UTC) Received: from localhost ([127.0.0.1]:34754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXmVM-0006YI-3E for patchwork-qemu-devel@patchwork.kernel.org; Mon, 03 Jun 2019 08:56:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXmKz-0007F5-8u for qemu-devel@nongnu.org; Mon, 03 Jun 2019 08:45:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXmEi-0006fZ-4E for qemu-devel@nongnu.org; Mon, 03 Jun 2019 08:38:49 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:40546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXmEh-0006dJ-U6; Mon, 03 Jun 2019 08:38:48 -0400 Received: by mail-pf1-x443.google.com with SMTP id u17so10554613pfn.7; Mon, 03 Jun 2019 05:38:47 -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=oqhNazyySRIYrazXPTmYq2UuxaK7vSiSAxrOSw+gi18=; b=X5zU45LkjQ1Ga143ma3aoN7U20HmsbW/2kKh9+4R0rbAHRbnonp4OVOv0OGsgy4S0q wdDxCbPGdZ6LT+J9MJ1BoChgqlYepuZ8tkGXzmG2GTXSSwbyKYZI/TAQxgXo1KEhDto1 uD8l66qORzJuL3F+fcsLdkToC5GX1E99dVBIqu5EbTfIvyLaKlZ6lFWU6BURBF6VLycF jJ0zwe8CwIsGEZSDACa1UjrDJ/OxjJrg9ngai5LzdHxAEHZKXTg3IDCiM32NJAx+PaIv 9oZYgzMGKDroRK+uNPxNqnIJ6bvJoSBh7Ni3FgDmUbhfFpvThfYP0jqbpwmqH4EpygwE z0LQ== 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=oqhNazyySRIYrazXPTmYq2UuxaK7vSiSAxrOSw+gi18=; b=mRK4/EM3iTvcfhG0DtHJ379LvqveuENioNobNjWUbGdIZc1LpxdfKmRxUQWI6n5QCx uyv/Hs0LsycLXw54ywMyesCVDa/g2nyuc0+a44xiC3jEHl/RSvCRuHQOcq5LC9GtAr8j zzWGIKt3+PBZP895LYsU9KjyaPLwmg2/AuMbRjHuqXjZoQcLzkhP3/kudQ9fmV189aBx SXVZbnvEoSjvnkpBBoQhdczyoyIL1SB72WU4TtsLlSOBcTXM2qANvHSC1Dagx6jrCQGH OgOgTMV93QKBUbFn84SQMPiSXUkhsqTdeBZzVQ5bNcdy0YL3dVohTZwBofNiCmyJNgOP 7KGQ== X-Gm-Message-State: APjAAAVrcttFCDgRFv31I53isl+z5RL0bUKeb/LbNsl5bS5l6uxOLqTG JfkzTRB1H+achftrzCgI0U/mNwtc2hyP2w== X-Google-Smtp-Source: APXvYqwVrX5NKCCiwYQBLkeR4n8TGYYjFuVKRa2YBenJ8q8wOn80zybnckBdgHgmBR0wPF8xIiDQpA== X-Received: by 2002:a65:620d:: with SMTP id d13mr28332716pgv.109.1559565526565; Mon, 03 Jun 2019 05:38:46 -0700 (PDT) Received: from localhost.localdomain ([136.233.9.100]) by smtp.gmail.com with ESMTPSA id k14sm34860257pga.5.2019.06.03.05.38.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 05:38:45 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Mon, 3 Jun 2019 18:08:15 +0530 Message-Id: <20190603123823.32661-2-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190603123823.32661-1-mehta.aaru20@gmail.com> References: <20190603123823.32661-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::443 Subject: [Qemu-devel] [PATCH v4 1/9] configure: permit use of io_uring X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Kevin Wolf , qemu-block@nongnu.org, Markus Armbruster , Max Reitz , saket.sinha89@gmail.com, Stefan Hajnoczi , Paolo Bonzini , Julia Suvorova , Aarushi Mehta Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Stefan Hajnoczi Signed-off-by: Aarushi Mehta Reviewed-by: Maxim Levitsky --- configure | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/configure b/configure index 6cdcfb2dc3..cb49ef0fcc 100755 --- a/configure +++ b/configure @@ -365,6 +365,7 @@ xen="" xen_ctrl_version="" xen_pci_passthrough="" linux_aio="" +linux_io_uring="" cap_ng="" attr="" libattr="" @@ -1266,6 +1267,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" @@ -1784,6 +1789,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 @@ -3973,6 +3979,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 @@ -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" @@ -6876,6 +6898,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