From patchwork Mon Jun 10 13:48:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aarushi Mehta X-Patchwork-Id: 10984975 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 0A65B76 for ; Mon, 10 Jun 2019 13:52:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF0E228764 for ; Mon, 10 Jun 2019 13:52:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E36122876D; Mon, 10 Jun 2019 13:52:33 +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 746962856B for ; Mon, 10 Jun 2019 13:52:33 +0000 (UTC) Received: from localhost ([::1]:46706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haKiu-0002mg-Lp for patchwork-qemu-devel@patchwork.kernel.org; Mon, 10 Jun 2019 09:52:32 -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) 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) 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) 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+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 b091b82cb3..7aa18d308d 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" @@ -6874,6 +6896,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