From patchwork Fri Jul 19 13:27:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aarushi Mehta X-Patchwork-Id: 11050097 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 CB534746 for ; Fri, 19 Jul 2019 13:28:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB07628635 for ; Fri, 19 Jul 2019 13:28:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFCB428856; Fri, 19 Jul 2019 13:28:25 +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 6DA9428635 for ; Fri, 19 Jul 2019 13:28:25 +0000 (UTC) Received: from localhost ([::1]:45282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoSvw-0005NR-Gn for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 Jul 2019 09:28:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35619) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoSvE-00025t-P9 for qemu-devel@nongnu.org; Fri, 19 Jul 2019 09:27:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoSvD-00013X-Qw for qemu-devel@nongnu.org; Fri, 19 Jul 2019 09:27:40 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:44995) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoSvD-00013C-Ll for qemu-devel@nongnu.org; Fri, 19 Jul 2019 09:27:39 -0400 Received: by mail-pf1-x443.google.com with SMTP id t16so14174552pfe.11 for ; Fri, 19 Jul 2019 06:27:39 -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=VbxxmY/24bsPob27bllLMEzR8PuoDY5UrmHVTChvkdU=; b=MfWlAxEd6lzErwYD6x92/g8V7ZKt9qP0BL770ctR8hsChSiuFptUaMHx7KQn8HrFFB urkbejzfkKq67UorGQFpxgnYMNVqL0yfHzJc9EHV5Eon8IaCAjIUR+DwkzqLjem2UWfb ifm5BlDHFV7+MelEt8c0uGuOPmMdIDnR37DQqVRRMcljf9kyEogw9HEwTiHRZofC8+Oz gXdRulSd1DuOq6rWX50OTb9sQ3/blvn7v/rYjEJI6Aq0cBqagOjZ19bVaKUtp7O2Uenx 6EoFMHNG+C4qDLOgNSMk/8eN2eWfAdeY1j8H5rsNK5apYXV2NtzRnEps6nwawL6vl24D ySog== 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=VbxxmY/24bsPob27bllLMEzR8PuoDY5UrmHVTChvkdU=; b=QS1PtDaNmjk+ZIIggIhQNFnchUcV9zGRboZxnQyIBjz7sNiZnRL929CKSWAa+Wjc1n nBoU1r463LPPEQNhPKFpq55tW3tNMTdvQTVtedF1W5xMiCJflZvFKIGmEqA8V4Dp5ijs /nhnU3287UcF0CQZKovie8ndEIPsPrFXTSstS9HT5IXzpiUhm9gMcy9iC4mTmXK9DcKy y+UeOKFE81psYLEZ9MPfqsBx6zRMG6yqZzo0m2Tc2KHwawR0boIc6m27Uk7rmO4L+0xL VylPOtg9HtzJF7DdvA3UEw/b+/uDvA3ketGMrJc3g9bHYXeBDjr4aN6b1fryzSvLMVGB BHtQ== X-Gm-Message-State: APjAAAVuApmWJxz/1U1ETjJllL/cQ5bezJkX9Qo79HPxMYk6ZfxLQAJz QIZwtoTrYTKEl8nu+T30Kwt2rJ9r X-Google-Smtp-Source: APXvYqyaHF8j/+rL2FgSimyVubSPki+QanekU19n8Xnbd9hmCWwlv2gJPi+g4v5g9RZxawy6au+Rvg== X-Received: by 2002:a65:518a:: with SMTP id h10mr53443899pgq.117.1563542858267; Fri, 19 Jul 2019 06:27:38 -0700 (PDT) Received: from localhost.localdomain ([2402:3a80:433:31a4:f2fb:dab8:3a89:c056]) by smtp.gmail.com with ESMTPSA id s7sm26520357pjn.28.2019.07.19.06.27.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 19 Jul 2019 06:27:37 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Fri, 19 Jul 2019 18:57:08 +0530 Message-Id: <20190719132720.27519-3-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190719132720.27519-1-mehta.aaru20@gmail.com> References: <20190719132720.27519-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::443 Subject: [Qemu-devel] [PATCH v6 02/14] qapi/block-core: add option for 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: Aarushi Mehta Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Only enumerates option for devices that support it Signed-off-by: Aarushi Mehta --- qapi/block-core.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index 0d43d4f37c..0a3d4ae7d2 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -2792,11 +2792,13 @@ # # @threads: Use qemu's thread pool # @native: Use native AIO backend (only Linux and Windows) +# @io_uring: Use linux io_uring (since 4.1) # # Since: 2.9 ## { 'enum': 'BlockdevAioOptions', - 'data': [ 'threads', 'native' ] } + 'data': [ 'threads', 'native', + { 'name': 'io_uring', 'if': 'defined(CONFIG_LINUX_IO_URING)' } ] } ## # @BlockdevCacheOptions: