From nobody Mon Feb 9 20:35:39 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=1558483325; cv=none; d=zoho.com; s=zohoarc; b=IxexFGoPC068cnAlHUCOcWbrem7jijF9l+ooYI1KhV+kwyd8q0z/JTfiioCt3q2KEBvOD2fWojmk9Tog/X7QEEI4EwkC3OEx5aV9iH6rDtiHS9ehf7K52BLkAupeFvjaxR/zg02AUS+0QjKK2Eg/3279RO/BtPMkU4qvoyWI90g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558483325; 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=6t8EyasZJmDI3dL3/CDwbkFcNJeDBde1hDDWAyb831A=; b=cSq2v5Bsjf6qk8Eramy5z9EMjj1I6kvKFhQRNfJ0IfwmrjnfNUPUNwQ5htxgd5NO9zXBLt43QY5ITq5hP8RlTquDwgTuXAJ2kYMivKBs/FOG2u3enjuYuPwnWzQWzYiTT03CMgYZPONNk0NuLj3vbEtzYVoBhiruRmOGGnFMu7E= 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 1558483325242581.8469892233716; Tue, 21 May 2019 17:02:05 -0700 (PDT) Received: from localhost ([127.0.0.1]:32910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTEhF-0001KU-UF for importer@patchew.org; Tue, 21 May 2019 20:01:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTEcW-0005iQ-QI for qemu-devel@nongnu.org; Tue, 21 May 2019 19:56:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTEYp-0001hC-1O for qemu-devel@nongnu.org; Tue, 21 May 2019 19:52:47 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:41192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hTEYo-0001gr-S8; Tue, 21 May 2019 19:52:46 -0400 Received: by mail-pf1-x444.google.com with SMTP id q17so271533pfq.8; Tue, 21 May 2019 16:52:46 -0700 (PDT) Received: from localhost.localdomain ([120.57.118.207]) by smtp.gmail.com with ESMTPSA id e5sm51571752pgh.35.2019.05.21.16.52.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 16:52:44 -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=6t8EyasZJmDI3dL3/CDwbkFcNJeDBde1hDDWAyb831A=; b=jHqgYbzD0MLSWwn80XgJA6ozg3JiiVqBcEWYyvc6jD/nKXFdSM0ZmmKAQtTfQ+ruY/ gRloWm2VCuN0fpdd7IRqO28eXccV0RYyNjw6DRkbAE3qpq64Svfy8CbZ0PkRyA8mE6Pd Xg36g1kdMnlSFyx0niyoZ2LvvFuJJUL9v62H1ZvrfOS59FBi2lmrzPUx+ZsoKiClwCr6 dObbxYt/1VXqu/vkJ1F59oF65a410U5Y7cV1hQ4B6uF8a/ChLFLZuh4Aa84OZF6bCVaT wy/QTq0VbP5/utrXh+HpMuApuVSyX9GRaM1++wssj38xsYcQ5Rpl+CYii8PMIllH2dcL vekA== 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=6t8EyasZJmDI3dL3/CDwbkFcNJeDBde1hDDWAyb831A=; b=r2vsYhAneTGPCx+iqGRzghZBLY+omng7aRTHBbEWsWh+hy4ZII+8/n8MVELQH8srJG Tf1OVsI3ioFhzv/Q44UAVjJssduf0Ml0Q5AaUtk6f8v1f7w4MI/LQyI89NErgNEuS98a Qj6+c2ed/Pg+F94GnCvQqOf41yqTwRT6SUi0fgxmZpEN0lzcINi+vQMaqmORJivfUK6T DABjvwuIPVRmtWLGycKsvRO6oAimEaW2Dk6SO2kcFlwv4DhJ+ioOf7fqGUQ6nGyEANlP HnnsIt8MXJtOq29TugY/2LRirarOVU9XsyyuPUnHC35DoVOWGPehBnfvDdqe38He05ZC mbSg== X-Gm-Message-State: APjAAAXdkLjFw9EbiiNtifLm/amrUBFKfnWO1vSARIgI6E+yAOR+HUhi +fWlVr7XCGmqAN5sPqcGTeb+ZxcbeHVx8g== X-Google-Smtp-Source: APXvYqzrWBbsbCPMPl8mF11WMCnG1LHB+X9TVBJWdz50dtDDFoaii6bdMnVOKj8nr5x7IjOut+eqVQ== X-Received: by 2002:a62:6dc6:: with SMTP id i189mr91080963pfc.155.1558482765576; Tue, 21 May 2019 16:52:45 -0700 (PDT) From: Aarushi Mehta To: qemu-devel@nongnu.org Date: Wed, 22 May 2019 05:22:10 +0530 Message-Id: <20190521235215.31341-5-mehta.aaru20@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190521235215.31341-1-mehta.aaru20@gmail.com> References: <20190521235215.31341-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::444 Subject: [Qemu-devel] [RFC PATCH 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: saket.sinha89@gmail.com, Julia Suvorova , qemu-block@nongnu.org, Stefan Hajnoczi , 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 --- stubs/Makefile.objs | 1 + stubs/io_uring.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 stubs/io_uring.c diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 269dfa5832..86ceca5c4e 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(); +} -- 2.17.1