From nobody Tue Nov 11 17:31:53 2025 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=1564413685; cv=none; d=zoho.com; s=zohoarc; b=AGW3zIp/TCF1++6VuLivRIrpq6A+J7SuuAIF7EW6Hn4dkIw+DQ+2h7IS/cc88L4K4FbkpQxndaTFW6bnp++KIIsEa15JBWA9L0gs9Qgm49dPVJLWdNH0gt6nHRUj1WQdjeOY8r+howbWBU2qp2JonqROt5K7CaBuPr5cGrhTIQk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564413685; 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=kq+GocMZNBzs7h+JrH4HUXS6sT3wW7TSwegih8ayQCc=; b=LXCT72uqLI274xOA4aPw1E6DHbsr+WPFvUirOhrB+ZiklDt3BhKZrYrc0FYB0wGWj1hDzWi9Rm4bxtT5onnr52Fy5+SrNIDEg9aR6EVsFXIERvUOEyS1+Z4qDaJ9iOV1eEtiKVMTzN6HFhxyC10s6Yxp91AJ6bxkc6PMoAAegi8= 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 1564413685896532.8585862815315; Mon, 29 Jul 2019 08:21:25 -0700 (PDT) Received: from localhost ([::1]:53600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7Sm-00056D-Rn for importer@patchew.org; Mon, 29 Jul 2019 11:21:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43528) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7PF-0006Vc-GD for qemu-devel@nongnu.org; Mon, 29 Jul 2019 11:17:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs7PE-00070C-Iy for qemu-devel@nongnu.org; Mon, 29 Jul 2019 11:17:45 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:33206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hs7PE-0006zW-D7; Mon, 29 Jul 2019 11:17:44 -0400 Received: by mail-pg1-x542.google.com with SMTP id f20so19193774pgj.0; Mon, 29 Jul 2019 08:17:44 -0700 (PDT) Received: from localhost.localdomain ([136.233.9.97]) by smtp.gmail.com with ESMTPSA id h129sm58693941pfb.110.2019.07.29.08.17.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 08:17:42 -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=kq+GocMZNBzs7h+JrH4HUXS6sT3wW7TSwegih8ayQCc=; b=QGS4tzm7A9L671zmlDCqPUdFRUyjotBK5zxFxo2k3hRIu8U4DyIR/y2QC0Rbc41RaE RfGn74Mby75wt6zS0vfiZBHwFdPiiro7SNdwUH3sSNyx4lD0XhTQkyN+vPahoojQL2zJ rB4b+liAm32VlvWJzqoMx+CFEHC0+RDEpYHBdUoGOrK+N+U1nLipQXM7mUdSBn4H4YFl jZz6KSL/6H8CHb6UbgZalsjm+U7ynvKdcUkC4H3nTlssNnNp2nnVxWh4Oubpv1AuasAO 02tC0X53YvtnkQwgrwuNZnrjudiF0ZHQnXsbYJx7/L1NXVXAAmQsL8Dm8YUQXZYLdCfB pSYQ== 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=kq+GocMZNBzs7h+JrH4HUXS6sT3wW7TSwegih8ayQCc=; b=fgL+59yNB0eYsSZcogdyW9rvQs/QlflRKgMLXWPtP6JkULxJGbltBp2hfheBMh4iBt 1S4xTelZ5Htnv6e72Hm6yuyxs9tbGB5O7Pbbjp0QrUjkTDFVextwjTSCNihG36fQ/3tQ q3HIdE6JKFaNBRqOJf33+tppSpZ3C/KuchsbvUst6AvfA0xx/P2kH2wkMaC7tV15YKXy gFDIKY1c7QvkXO5VUuvDbFJBtrmqmFO53b+gUPIzGCMhTvBgVO3oMJ//5z/uHsbTnOjW uNUoxxQIOiL6OTY8znqJhqfVjktj9Horlw3bFbbzjKAPpymvnDl/lK1YT+TEUcuKi16t U7fg== X-Gm-Message-State: APjAAAUY8W4RmtZ3VENuAIP4OGkBoDIOmZbnmN1qWXDQhSirxsnNBjHW O3EhXAJbx0qw2qlq+gjNJqKGCgXFUoKTbw== X-Google-Smtp-Source: APXvYqwp2RZp0ZUUnZ07WpEyKOm5SgzAl0TdXKac4UI2ZNWa7xU7CUMtw2IvME9LRQy0BPEm73Aq1Q== X-Received: by 2002:a63:1765:: with SMTP id 37mr36148266pgx.447.1564413463042; Mon, 29 Jul 2019 08:17:43 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Mon, 29 Jul 2019 20:46:38 +0530 Message-Id: <20190729151651.21306-3-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190729151651.21306-1-mehta.aaru20@gmail.com> References: <20190729151651.21306-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::542 Subject: [Qemu-devel] [PATCH v7 02/15] 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: Fam Zheng , Kevin Wolf , qemu-block@nongnu.org, Sergio Lopez , Markus Armbruster , Maxim Levitsky , saket.sinha89@gmail.com, Max Reitz , Stefan Hajnoczi , Paolo Bonzini , Stefan Hajnoczi , Julia Suvorova , Aarushi Mehta 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" Only enumerates option for devices that support it. Since QAPI schema supports io_uring, which is the actual name of the Linux API, it is preferred over io-uring. Signed-off-by: Aarushi Mehta Reviewed-by: Stefan Hajnoczi --- 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..3dc93b483f 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.2) # # Since: 2.9 ## { 'enum': 'BlockdevAioOptions', - 'data': [ 'threads', 'native' ] } + 'data': [ 'threads', 'native', + { 'name': 'io_uring', 'if': 'defined(CONFIG_LINUX_IO_URING)' }= ] } =20 ## # @BlockdevCacheOptions: --=20 2.21.0