From patchwork Fri May 24 14:03:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aarushi Mehta X-Patchwork-Id: 10959973 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 21FF676 for ; Fri, 24 May 2019 14:14:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DDA7288A6 for ; Fri, 24 May 2019 14:14:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F31F928897; Fri, 24 May 2019 14:14:40 +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 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8593328897 for ; Fri, 24 May 2019 14:14:40 +0000 (UTC) Received: from localhost ([127.0.0.1]:55308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAxz-0003mn-RS for patchwork-qemu-devel@patchwork.kernel.org; Fri, 24 May 2019 10:14:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAoF-0003KZ-FB for qemu-devel@nongnu.org; Fri, 24 May 2019 10:04:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUAnw-0002YT-1d for qemu-devel@nongnu.org; Fri, 24 May 2019 10:04:17 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:39268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUAnv-0002Y9-SF; Fri, 24 May 2019 10:04:15 -0400 Received: by mail-pf1-x443.google.com with SMTP id z26so5400650pfg.6; Fri, 24 May 2019 07:04:15 -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=FCCo4ZKd5wKU/RZQx2PmB632H55T8NWp+BdOu+4KPVU=; b=as+Vk1dQb/OXplBcCrodEcfjzrOyUFTkmKNpRxw4yv6TfUS5817UwshGDj0XJ6ejnM 9+ioAfKcEBh7hWfuzfrzaeimZSP183So3K2xgOBvf2HvS2mv64ogRTgzP2mAonU/TgMp qKXaqD/Ii1f/FqshcpBCxukvQFy4BqZDUCgmfyfKVXY4UWEZXhsmXl1YEtJIjCrkji3x ELwQPsQvwBt1oFOeMW6FQgejkECNLrBVhWDgSx3kgb22PLsCDaaKddiV95mMvTBlES9L 4zrPrSbKD/tjuwPtCnyO5+2dLmPMZ0VOBgpS92vYTxFP5bZR3iHZM1paYvMWCBvDNxt2 X4wA== 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=FCCo4ZKd5wKU/RZQx2PmB632H55T8NWp+BdOu+4KPVU=; b=Z6eo/z18iDMw/CLxIYhmK/Y643IYUbyw9HJynLSJUGuEDCf2yJb7WqhfTUh1s86r95 WmIMgt/HeOqUtHpS12ll3WQkPh0l8rVL3ZGRmKy+n2WIz6hm7v4f1ghH1sEgb8++23Dl VSBh5M2U7WucgRIWjX0tWZkUz3EwbPCVJAw4FMnURzi6fhwNiwsebnOAsm5HJZk1aiQV 4HPd+jTK5AV5rB/8qTpd4TyXGrIZ/3D0YrK78W12v8gRX4mACyJ0A4SljRk1/VeHv1FM UU5DBHo7Kft6JyWPmd4ze85WvWsK+5Wi+AukWN/9vPDHUMMJsvxDpmSGYMV39a3aNEc2 ofqw== X-Gm-Message-State: APjAAAW2eLTenmYS1/dq7CSYBnfqe0Za4yVr6LqTFx1Wp/eVZZTIq1nr FIA5k58uKIzxGcStQPO5b2GNoDPXslUbTQ== X-Google-Smtp-Source: APXvYqyblh9DSPxCfWtwBOq4be18VYrZfmBpEm3WGqUYA9EKA1eo8NqDaKBKhFGyKgiknrfFTbWuRg== X-Received: by 2002:a17:90a:6348:: with SMTP id v8mr9485166pjs.34.1558706654512; Fri, 24 May 2019 07:04:14 -0700 (PDT) Received: from localhost.localdomain ([120.57.120.132]) by smtp.gmail.com with ESMTPSA id u11sm2556766pfh.130.2019.05.24.07.04.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 07:04:13 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Fri, 24 May 2019 19:33:32 +0530 Message-Id: <20190524140337.13415-5-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190524140337.13415-1-mehta.aaru20@gmail.com> References: <20190524140337.13415-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::443 Subject: [Qemu-devel] [RFC PATCH v2 4/9] stubs: add aio interface stubs for io_uring 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, saket.sinha89@gmail.com, Stefan Hajnoczi , 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 --- MAINTAINERS | 10 ++++++++++ stubs/Makefile.objs | 1 + stubs/io_uring.c | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 stubs/io_uring.c -- 2.17.1 diff --git a/MAINTAINERS b/MAINTAINERS index 3cacd751bf..b8fc1e3fe3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2504,6 +2504,16 @@ F: block/file-posix.c F: block/file-win32.c F: block/win32-aio.c +Linux io_uring +M: Aarushi Mehta +R: Stefan Hajnoczi +L: qemu-block@nongnu.org +S: Maintained +F: stubs/io_uring.c + + +L: qemu-block@nongnu.original + qcow2 M: Kevin Wolf M: Max Reitz 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 += 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(); +}