From nobody Mon Feb 9 12:43:12 2026 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=1558944624; cv=none; d=zoho.com; s=zohoarc; b=WX0EjqBbmuTyCwwyjv7ZLfTSrG4U/NuDx749k7nY31gvAoss0IMfmQektugr6SSKP7XiCRtc0C0BC9l9QIolSWEClhh2E9qhsUFwh+8KA+Tugtbzp4WzHBuh9Z6+7hjHy2VDk5jiS77etOi33HYduGBmwhBvEDOoTIDS/PEBGOE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558944624; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=9iDE2hU2W31yYscdifZjS5ZJYVdn4yXv1JMbOqGrwXk=; b=HHxXE7TCWCn2lo7k8VaBAgRtm9wSBh1ccSusovEidcfYaUEs/GfN1BjTZfqGow+8IAvhRaeU4mI8/m9JAQViR60gS4OLW3RymxEMiYrKQI61i1sKcy96CHPh+v7KH7Quz2FofNuYYPTyaWN5RmUZ5jFWwzBS9sv1KWA4A6S+e7c= 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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1558944624738158.75779016870138; Mon, 27 May 2019 01:10:24 -0700 (PDT) Received: from localhost ([127.0.0.1]:41709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVAhw-0003X2-M0 for importer@patchew.org; Mon, 27 May 2019 04:10:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVAcC-0007o2-5q for qemu-devel@nongnu.org; Mon, 27 May 2019 04:04:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVAcB-00021a-6y for qemu-devel@nongnu.org; Mon, 27 May 2019 04:04:16 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:43060) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVAcB-000216-2I; Mon, 27 May 2019 04:04:15 -0400 Received: by mail-pl1-x642.google.com with SMTP id gn7so6724635plb.10; Mon, 27 May 2019 01:04:14 -0700 (PDT) Received: from localhost.localdomain ([120.57.119.140]) by smtp.gmail.com with ESMTPSA id j5sm10030853pfa.15.2019.05.27.01.04.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2019 01:04:12 -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=9iDE2hU2W31yYscdifZjS5ZJYVdn4yXv1JMbOqGrwXk=; b=irb0GuOobJ8X6wooKiggxIt1r+uXzbnfijGrHUrbpE8JD7TPbTgBYuGZZrJzrq698S a87+cnt6qGvswxrAevmc7yir52tlyPtFvGL/kpyKHjSWz7xkrShPwHRJqV6fwtYqc0W3 Rv+s9qB10BUPUNLPczSWhXvwvgZbdHInZ3xolOLGcRvIS6rAOyyxOQS9pIOITEOriRW1 EVBLcbpwmhwHIJUZc7Tn3CHRQUpm+DHKVcCi2at/Ygx27TtgQMsfnOhUBBfNBCUU7Eyy m660hfgZGYwGlq52IhODYR+2rz1f+dTstPYb1OkUYya3sR6D4RzZ+ckZSwew4g9tYkVw sp9A== 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=9iDE2hU2W31yYscdifZjS5ZJYVdn4yXv1JMbOqGrwXk=; b=H0GFyC5nH2q9vBQRa/EFjfGQC5RioQ2fBfdEfMjnP2jDU1euA1b6+Cxkz53zhX4Bhh Ygj6AnuuavKl91dT4f71Lu3/oaFgu/S0fsRzfSZvY+kknr/tKwc7JtfR5BDMeOrfEHY5 xBOYSTxPeikLXso0cJChoSK4wFvI0KixzF1zcJ0QnxYD6pUHucOW6mpqoXyiVcw7af9p Iz4lUlYDkFnZNOtVNvUKjFAjIFamoHVNM7j3SmbdrVUZwAYWwKJ2G+HijCLk0HBw7iqG Js5zAZl6LfjgTP2s7uYYqiY8vlQukhNrZcKKFKrmB1Aik5mpppZFFk7HHRAKOMBaojMo 63qw== X-Gm-Message-State: APjAAAVQZWdWGxiZgflaFcXZ4v75X0SLYtz//VoxVIufVDc8/7WJNKG0 i2ESmS/oKmYMbnF7Ks6qx2BwcFz9RbYmvA== X-Google-Smtp-Source: APXvYqzUc/sCy2vsPirblMP2i4aqpvVH5EWJ6M3vARFEuApRLt2xBNtJrH2CZDQ2wr3Qj1SjWxHsYw== X-Received: by 2002:a17:902:1021:: with SMTP id b30mr24438282pla.324.1558944253367; Mon, 27 May 2019 01:04:13 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Mon, 27 May 2019 13:33:24 +0530 Message-Id: <20190527080327.10780-6-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190527080327.10780-1-mehta.aaru20@gmail.com> References: <20190527080327.10780-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::642 Subject: [Qemu-devel] [PATCH v3 5/8] stubs: add stubs for io_uring interface 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: Kevin Wolf , qemu-block@nongnu.org, Max Reitz , saket.sinha89@gmail.com, 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-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Aarushi Mehta Reviewed-by: Stefan Hajnoczi --- MAINTAINERS | 1 + stubs/Makefile.objs | 1 + stubs/io_uring.c | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 stubs/io_uring.c diff --git a/MAINTAINERS b/MAINTAINERS index 462c00a021..6c6672bda3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2510,6 +2510,7 @@ R: Stefan Hajnoczi L: qemu-block@nongnu.org S: Maintained F: block/io_uring.c +F: stubs/io_uring.c =20 qcow2 M: Kevin Wolf diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 73452ad265..ea158cf0ee 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -13,6 +13,7 @@ stub-obj-y +=3D iothread.o stub-obj-y +=3D iothread-lock.o stub-obj-y +=3D is-daemonized.o stub-obj-$(CONFIG_LINUX_AIO) +=3D linux-aio.o +stub-obj-$(CONFIG_LINUX_IO_URING) +=3D io_uring.o stub-obj-y +=3D machine-init-done.o stub-obj-y +=3D migr-blocker.o stub-obj-y +=3D change-state-handler.o diff --git a/stubs/io_uring.c b/stubs/io_uring.c new file mode 100644 index 0000000000..622d1e4648 --- /dev/null +++ b/stubs/io_uring.c @@ -0,0 +1,32 @@ +/* + * Linux io_uring support. + * + * Copyright (C) 2009 IBM, Corp. + * Copyright (C) 2009 Red Hat, Inc. + * + * This work is licensed under the terms of the GNU GPL, version 2 or late= r. + * See the COPYING file in the top-level directory. + */ +#include "qemu/osdep.h" +#include "block/aio.h" +#include "block/raw-aio.h" + +void luring_detach_aio_context(LuringState *s, AioContext *old_context) +{ + abort(); +} + +void luring_attach_aio_context(LuringState *s, AioContext *new_context) +{ + abort(); +} + +LuringState *luring_init(Error **errp) +{ + abort(); +} + +void luring_cleanup(LuringState *s) +{ + abort(); +} --=20 2.17.1