From patchwork Mon Jun 10 13:48:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aarushi Mehta X-Patchwork-Id: 10984979 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 7068676 for ; Mon, 10 Jun 2019 13:54:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 618792876D for ; Mon, 10 Jun 2019 13:54:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5080728924; Mon, 10 Jun 2019 13:54:43 +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 EBE562876D for ; Mon, 10 Jun 2019 13:54:42 +0000 (UTC) Received: from localhost ([::1]:46742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haKl0-0005nt-9n for patchwork-qemu-devel@patchwork.kernel.org; Mon, 10 Jun 2019 09:54:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51160) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haKgc-0008Qp-2w for qemu-devel@nongnu.org; Mon, 10 Jun 2019 09:50:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haKga-0001it-U8 for qemu-devel@nongnu.org; Mon, 10 Jun 2019 09:50:09 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:44450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1haKga-0001he-OK; Mon, 10 Jun 2019 09:50:08 -0400 Received: by mail-pg1-x544.google.com with SMTP id n2so5072774pgp.11; Mon, 10 Jun 2019 06:50:06 -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=c7OL+TvejrK+J39mndDS6U2ikA3eTizaB36rrB9ZJvI=; b=LH1lcG4oVWqFJWS8E3b4H2aGCryFVZ3QxDmATzLkc128RQzYVEucsV5TeH05qmhm1o zDjB/6PuOWNd7uMorcyb4hq0lh0SWhnofFY/LxQIrNuF2Pw2eXncqeVYOby6yF0XjAr6 M3U66d1Gs8Cv4WcP7WkRXMY4MIiNVILgQ/cB5+tryVw3qlPWM2whuBsXZBohZR+ThtSF i/gAWiMKhgPazxqjHX6nx0f0Gud/+FByQmuwkMTcLe6VGvdowTIZwhByBFEKBSNs7IzV x6afVvqT4T2Tt8zYgFt150ugfExsqTR9fyjK16eWrF/pFWpGkRnoM5WaLYZuwOHWjLlc HPfA== 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=c7OL+TvejrK+J39mndDS6U2ikA3eTizaB36rrB9ZJvI=; b=U9JQiOCqbWRU731PR2yTsqWTxyKkelA16HDPGW0BsNa7Osxh6LrQ/RhMya4ZnzDJGh yCsCWmLhKSq01zvmp/B2KmXGrem4KB72dchoEHAszMdEWzYTRYgQCjUEW6a+Sf4doAyH MfkQGZGua4uvpKa1PNacVx1N4ZWK/XvGOmJmkREb5jn1cuJe6CN+ECpY9nzOL0N1oxo6 J3DL1zkNOQNRysvv/4XBY5l1IbNE4HxuWrMGrJCtwMZHoI6rbleTQBwG1206jGZQmRJC f9qFahwIKjbmPfmo0BOoRBy7ZuJmzZqyi7TL4dgY/tTU8+jIBD09T6x22yh7/+P/f18q e62w== X-Gm-Message-State: APjAAAUCgh5q4SkHzRFw7NB4mayDgtBg452nSoeUgBqSBSIpoLQbcsmd tFIzgH7WsVO245iii1NhBCoo967p/ClW7Q== X-Google-Smtp-Source: APXvYqw6jVJDVEmk6+UrSqnPoxHEaEqj5MqJBStBCjp32swIaq3aYZuCU8eeCj+OtcR4sOyiN/D21A== X-Received: by 2002:aa7:956d:: with SMTP id x13mr35258432pfq.132.1560174605239; Mon, 10 Jun 2019 06:50:05 -0700 (PDT) Received: from localhost.localdomain ([136.233.9.100]) by smtp.gmail.com with ESMTPSA id d4sm13969837pfc.149.2019.06.10.06.49.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 06:50:04 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Mon, 10 Jun 2019 19:18:58 +0530 Message-Id: <20190610134905.22294-6-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 05/12] stubs: add stubs for io_uring interface 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 --- 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 49f896796e..bc38175124 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2522,6 +2522,7 @@ R: Stefan Hajnoczi L: qemu-block@nongnu.org S: Maintained F: block/io_uring.c +F: stubs/io_uring.c qcow2 M: Kevin Wolf diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 9c7393b08c..5cf160a9c8 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -13,6 +13,7 @@ stub-obj-y += iothread.o stub-obj-y += iothread-lock.o stub-obj-y += is-daemonized.o stub-obj-$(CONFIG_LINUX_AIO) += linux-aio.o +stub-obj-$(CONFIG_LINUX_IO_URING) += io_uring.o stub-obj-y += machine-init-done.o stub-obj-y += migr-blocker.o stub-obj-y += 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 later. + * 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(); +}