From nobody Sun Dec 14 11:14:58 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764787935; cv=none; d=zohomail.com; s=zohoarc; b=MCOQ5VtZkOEmH3HDPRlAbU4W2nUwatUjhQj1bgNeGx0DQPME4CsVrj0pNXJyZJ0ZAgwoy9MRGOuN2C36eqswqk+k4w9fPpWzgbbO1o52nrN1biuS21maXVEUZke+RmC/Sq0KcMtCjVu+pxFGEK7qU/dpeIQKno9+gQvibmIEhBA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764787935; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Eh+hIRE5qTY4KuawUkjR2tueqk8z2nUSsFLpUAHf+1U=; b=E6a6X4HSs38ceUVBlrJVSJVl1NzZUoivj27wecN9fPAr3lJ240+4dy2UC4DMc8WnGEL9BtdoSxPoz9ghrpc4keo0vxOE+6aCyTpPL9JAsIJ027ZOkbyWVJbxNleHNqojDeiqpHnT2XQ9X9+fZQHxYsdT0ryaxITZX1+CSYf+Lzc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764787935634750.5741209394528; Wed, 3 Dec 2025 10:52:15 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vQrxF-0007bg-22; Wed, 03 Dec 2025 13:51:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vQrxD-0007bG-4F for qemu-devel@nongnu.org; Wed, 03 Dec 2025 13:51:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vQrx9-00013R-71 for qemu-devel@nongnu.org; Wed, 03 Dec 2025 13:51:53 -0500 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-636-7jvbg0clM1ySDJAP82_GFw-1; Wed, 03 Dec 2025 13:51:49 -0500 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-42b3339cab7so77309f8f.0 for ; Wed, 03 Dec 2025 10:51:48 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42e1ca1a3e4sm41295804f8f.25.2025.12.03.10.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Dec 2025 10:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764787910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Eh+hIRE5qTY4KuawUkjR2tueqk8z2nUSsFLpUAHf+1U=; b=DLEDU6ZHG9f/mS/3Gnm6OSourHb7hnwVnLNwUCXJaSghxa9r0ONsBobc63G4wH730RBc9S wpEr7bm7Lc6D/MeOHt+Zuxzvb00SgPA2GBIlRLuLhUZCu6uqm6moaaBIom/ylClLGBt7oD mQShUAiAMbfzyMym2umBXuDYa1PusyA= X-MC-Unique: 7jvbg0clM1ySDJAP82_GFw-1 X-Mimecast-MFC-AGG-ID: 7jvbg0clM1ySDJAP82_GFw_1764787908 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764787906; x=1765392706; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Eh+hIRE5qTY4KuawUkjR2tueqk8z2nUSsFLpUAHf+1U=; b=V+FLUMAigGlub+4hrw/JHPSHpmZOagcIRx8NH19dnCXv8P7ly6/GGMzxWtImLVLFxU v9N0BHFkwyFmm4t8U6tgZjAP2vS/Jqg7UmgMlBDDyWCm7TPJ62DLoCux19PInYQ0TddH 5yQM5hAgGEZq9yX88b9gDwt0PZiMByrymSTpniao/2AkoFVNwqoFnCmGOH+eC1Z0tWGO rgSDUKfSQxzESMr5ZAQm3Der6D9cC/ifwkNIvR/vq5dAjrne5MOR8MGW5I6Xbgeqvm3b NemZbZxuNIpAPooXGrnEZ5zdjjE5IsNq+ndF9taS9iGufQiVkRvKIB9AEqYA4DCEFYZt UaDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764787906; x=1765392706; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Eh+hIRE5qTY4KuawUkjR2tueqk8z2nUSsFLpUAHf+1U=; b=KfdFH/SPPMgWgwHguxTQLoImTiJb605Eq46yHgCO/0MLvpqNnf+5Hz4XQJ2/toL4+9 ShUO3tqhfF8ViOmYb+W1aC/iJPw6iSYTp7UGZ9eiaZWaSRCO0xjuKomtSqssbG12wUeg R1KMbzxY9bDzi/RrbgpXzg15/bQ+0syb4cDUnB5wPyEtElRcqmQGUwSryy7W3m9K+o9b owYmN+SJBUP7EarCNwrcj+30y16f153Zhysy2gznU3UxxKtii7G2QOk9hdR7oXguRGOX ZAQTiDhO9Tg3stZE/9BSs4mpJDQjf/Zv9ME5afq2yNgOWTMVsKPXVT0rvAFNQmJhjx9i bFIA== X-Gm-Message-State: AOJu0Yx7MGyJ92lZtH+Z6gx40F1F+ds9FGyQVMV0r4JMzJF9PSmdDIvJ y8uyuRC1jc3JR6cmI0dm+w4h5QFCAPqiCsyAOnW/8dXvGTGyHaqeWZk9V31skdju/ULfBEWTW6S /gLKAdM92iJJBk2Nmon+RpiqwCyHT24fW1lsvZH7rSmXHIEO9/dNbX10nEibVb1yQ0XWSgpyxyl KIXh+G1QRkDQ7AyK/JT80gg0YhLu8/UzorbPTYQXg0 X-Gm-Gg: ASbGncvlx3mj5yIqyzCKuRCo8R/F1QHV9DxZ4ExTG/LPRXT9dCNNXhiqWFycZTQmqZd P8Tnzo2Sx0Fkg96pYm3HlNvukhZIXNuwwM8GoyK32VjL/Bmn5Hp9lYfuS6tt/rcHczyPPMsdTzL 5AfsCZRP0X/IUWCaO4Oxm+YajDf9Ov1Eoylcm7zbmouK7WrYD8ApmXY888HxY8cLdm1+cKkRyUx o8kAf2aGiqst6JDUcawpCstJMAD15fi4yrXfw5bUQ8zQ5KeIvbntcHgtgBmpxnnkOmyOvN3Ghbv xzlkbquH9al+itdCccKyXZbAlnbeZXa1ElKuFGKFpLeBljtifEjeB/3vTz8p5wzwZnhX97d5Pey f9zmOWfh0ZWprqDTHkf0pBQRiqvynh9NO/LaNBhOOEciIbo5v00oGLtIwOdB08dzGO1saYaBYWU q90lFYeOBVHjT9A48= X-Received: by 2002:a05:6000:2012:b0:42b:3978:1587 with SMTP id ffacd0b85a97d-42f79841263mr12142f8f.36.1764787905870; Wed, 03 Dec 2025 10:51:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+V1KqRbfZ0yNQu+w86hlQFh2MFR2nLuhlGsWyDSY1eg7Lf6+EhXlOiQLv7gGt8746zPArbA== X-Received: by 2002:a05:6000:2012:b0:42b:3978:1587 with SMTP id ffacd0b85a97d-42f79841263mr12102f8f.36.1764787905262; Wed, 03 Dec 2025 10:51:45 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.omc Subject: [PATCH 4/5] block: rename block/aio.h to qemu/aio.h Date: Wed, 3 Dec 2025 19:51:32 +0100 Message-ID: <20251203185133.2458207-5-pbonzini@redhat.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203185133.2458207-1-pbonzini@redhat.com> References: <20251203185133.2458207-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764787936147019200 Content-Type: text/plain; charset="utf-8" AioContexts are used as a generic event loop even outside the block layer; move the header file out of block/ just like the implementation is in util/. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 2 +- docs/devel/multiple-iothreads.rst | 4 ++-- include/block/aio-wait.h | 2 +- include/block/raw-aio.h | 2 +- include/block/thread-pool.h | 2 +- include/hw/scsi/scsi.h | 2 +- include/hw/virtio/virtio.h | 2 +- include/io/channel.h | 2 +- include/{block =3D> qemu}/aio.h | 0 include/qemu/job.h | 2 +- include/qemu/main-loop.h | 2 +- include/qemu/throttle.h | 2 +- include/scsi/pr-manager.h | 2 +- include/system/event-loop-base.h | 2 +- include/system/iothread.h | 2 +- include/system/replay.h | 2 +- tests/unit/iothread.h | 2 +- util/aio-posix.h | 2 +- block/aio_task.c | 2 +- block/export/fuse.c | 2 +- block/io_uring.c | 2 +- block/linux-aio.c | 2 +- block/win32-aio.c | 2 +- iothread.c | 2 +- qapi/qmp-dispatch.c | 2 +- replay/replay-events.c | 2 +- scsi/pr-manager.c | 2 +- stubs/linux-aio.c | 2 +- stubs/replay-tools.c | 2 +- tests/unit/iothread.c | 2 +- tests/unit/test-aio-multithread.c | 2 +- tests/unit/test-aio.c | 2 +- tests/unit/test-nested-aio-poll.c | 2 +- tests/unit/test-thread-pool.c | 2 +- tests/unit/test-throttle.c | 2 +- util/async.c | 2 +- util/main-loop.c | 2 +- util/qemu-co-timeout.c | 2 +- util/qemu-coroutine-lock.c | 2 +- util/qemu-coroutine-sleep.c | 2 +- util/qemu-coroutine.c | 2 +- util/throttle.c | 2 +- scripts/analyze-inclusions | 2 +- 43 files changed, 43 insertions(+), 43 deletions(-) rename include/{block =3D> qemu}/aio.h (100%) diff --git a/MAINTAINERS b/MAINTAINERS index dab02da37a7..24cf2946e77 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3071,7 +3071,7 @@ F: util/aio-*.h F: util/defer-call.c F: util/fdmon-*.c F: block/io.c -F: include/block/aio.h +F: include/qemu/aio.h F: include/block/aio-wait.h F: include/qemu/defer-call.h F: scripts/qemugdb/aio.py diff --git a/docs/devel/multiple-iothreads.rst b/docs/devel/multiple-iothre= ads.rst index d1f3fc4510a..a6eb0462673 100644 --- a/docs/devel/multiple-iothreads.rst +++ b/docs/devel/multiple-iothreads.rst @@ -52,7 +52,7 @@ How to program for ``IOThread``\ s ---------------------------------- The main difference between legacy code and new code that can run in an ``IOThread`` is dealing explicitly with the event loop object, ``AioContex= t`` -(see ``include/block/aio.h``). Code that only works in the main loop +(see ``include/qemu/aio.h``). Code that only works in the main loop implicitly uses the main loop's ``AioContext``. Code that supports running in ``IOThread``\ s must be aware of its ``AioContext``. =20 @@ -74,7 +74,7 @@ Since they implicitly work on the main loop they cannot b= e used in code that runs in an ``IOThread``. They might cause a crash or deadlock if called f= rom an ``IOThread`` since the BQL is not held. =20 -Instead, use the ``AioContext`` functions directly (see ``include/block/ai= o.h``): +Instead, use the ``AioContext`` functions directly (see ``include/qemu/aio= .h``): * ``aio_set_fd_handler()`` - monitor a file descriptor * ``aio_set_event_notifier()`` - monitor an event notifier * ``aio_timer_new()`` - create a timer diff --git a/include/block/aio-wait.h b/include/block/aio-wait.h index cf5e8bde1ca..57ebe21b31f 100644 --- a/include/block/aio-wait.h +++ b/include/block/aio-wait.h @@ -25,7 +25,7 @@ #ifndef QEMU_AIO_WAIT_H #define QEMU_AIO_WAIT_H =20 -#include "block/aio.h" +#include "qemu/aio.h" #include "qemu/main-loop.h" =20 /** diff --git a/include/block/raw-aio.h b/include/block/raw-aio.h index d568b887f1c..256d0468a88 100644 --- a/include/block/raw-aio.h +++ b/include/block/raw-aio.h @@ -17,7 +17,7 @@ #define QEMU_RAW_AIO_H =20 #include "qemu/aiocb.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/block-common.h" #include "qemu/iov.h" =20 diff --git a/include/block/thread-pool.h b/include/block/thread-pool.h index 65cabfc1388..e9ddb2b6d3c 100644 --- a/include/block/thread-pool.h +++ b/include/block/thread-pool.h @@ -19,7 +19,7 @@ #define QEMU_THREAD_POOL_H =20 #include "qemu/aiocb.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 #define THREAD_POOL_MAX_THREADS_DEFAULT 64 =20 diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h index 75b4d781a5c..d26f1127bb5 100644 --- a/include/hw/scsi/scsi.h +++ b/include/hw/scsi/scsi.h @@ -2,7 +2,7 @@ #define QEMU_HW_SCSI_H =20 #include "qemu/aiocb.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "hw/block/block.h" #include "hw/core/qdev.h" #include "scsi/utils.h" diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 91ff2fa21a5..27cd98d2fe1 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -23,7 +23,7 @@ #include "standard-headers/linux/virtio_config.h" #include "standard-headers/linux/virtio_ring.h" #include "qom/object.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 /* * A guest should never accept this. It implies negotiation is broken diff --git a/include/io/channel.h b/include/io/channel.h index f42be760f9f..1b02350437d 100644 --- a/include/io/channel.h +++ b/include/io/channel.h @@ -23,7 +23,7 @@ =20 #include "qom/object.h" #include "qemu/coroutine-core.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 #define TYPE_QIO_CHANNEL "qio-channel" OBJECT_DECLARE_TYPE(QIOChannel, QIOChannelClass, diff --git a/include/block/aio.h b/include/qemu/aio.h similarity index 100% rename from include/block/aio.h rename to include/qemu/aio.h diff --git a/include/qemu/job.h b/include/qemu/job.h index 2b163602c56..0e40e8b4570 100644 --- a/include/qemu/job.h +++ b/include/qemu/job.h @@ -31,7 +31,7 @@ #include "qemu/queue.h" #include "qemu/progress_meter.h" #include "qemu/coroutine.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/graph-lock.h" =20 typedef struct JobDriver JobDriver; diff --git a/include/qemu/main-loop.h b/include/qemu/main-loop.h index 241dc87be50..8c1241a2c11 100644 --- a/include/qemu/main-loop.h +++ b/include/qemu/main-loop.h @@ -25,7 +25,7 @@ #ifndef QEMU_MAIN_LOOP_H #define QEMU_MAIN_LOOP_H =20 -#include "block/aio.h" +#include "qemu/aio.h" #include "qom/object.h" #include "system/event-loop-base.h" =20 diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h index 8fa2b29452a..06b6589c946 100644 --- a/include/qemu/throttle.h +++ b/include/qemu/throttle.h @@ -25,7 +25,7 @@ #ifndef THROTTLE_H #define THROTTLE_H =20 -#include "block/aio.h" +#include "qemu/aio.h" #include "qapi/qapi-types-block-core.h" #include "qemu/timer.h" =20 diff --git a/include/scsi/pr-manager.h b/include/scsi/pr-manager.h index 45de28d3542..5045d115c44 100644 --- a/include/scsi/pr-manager.h +++ b/include/scsi/pr-manager.h @@ -4,7 +4,7 @@ #include "qom/object.h" #include "qapi/visitor.h" #include "qom/object_interfaces.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 #define TYPE_PR_MANAGER "pr-manager" =20 diff --git a/include/system/event-loop-base.h b/include/system/event-loop-b= ase.h index a6c24f13513..130629e7f31 100644 --- a/include/system/event-loop-base.h +++ b/include/system/event-loop-base.h @@ -13,7 +13,7 @@ #define QEMU_EVENT_LOOP_BASE_H =20 #include "qom/object.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 #define TYPE_EVENT_LOOP_BASE "event-loop-base" OBJECT_DECLARE_TYPE(EventLoopBase, EventLoopBaseClass, diff --git a/include/system/iothread.h b/include/system/iothread.h index d95c17a6456..e26d13c6c71 100644 --- a/include/system/iothread.h +++ b/include/system/iothread.h @@ -14,7 +14,7 @@ #ifndef IOTHREAD_H #define IOTHREAD_H =20 -#include "block/aio.h" +#include "qemu/aio.h" #include "qemu/thread.h" #include "qom/object.h" #include "system/event-loop-base.h" diff --git a/include/system/replay.h b/include/system/replay.h index 68f91bdfbf2..f8715ca9feb 100644 --- a/include/system/replay.h +++ b/include/system/replay.h @@ -15,7 +15,7 @@ #include "qapi/qapi-types-misc.h" #include "qapi/qapi-types-run-state.h" #include "qapi/qapi-types-ui.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "qemu/audio.h" =20 /* replay clock kinds */ diff --git a/tests/unit/iothread.h b/tests/unit/iothread.h index 4877cea6a31..eb4d0c77f86 100644 --- a/tests/unit/iothread.h +++ b/tests/unit/iothread.h @@ -13,7 +13,7 @@ #ifndef TEST_IOTHREAD_H #define TEST_IOTHREAD_H =20 -#include "block/aio.h" +#include "qemu/aio.h" #include "qemu/thread.h" =20 typedef struct IOThread IOThread; diff --git a/util/aio-posix.h b/util/aio-posix.h index babbfa83141..0cedb8d1891 100644 --- a/util/aio-posix.h +++ b/util/aio-posix.h @@ -17,7 +17,7 @@ #ifndef AIO_POSIX_H #define AIO_POSIX_H =20 -#include "block/aio.h" +#include "qemu/aio.h" #include "qapi/error.h" =20 struct AioHandler { diff --git a/block/aio_task.c b/block/aio_task.c index bb5c05f455d..21b68a9fc02 100644 --- a/block/aio_task.c +++ b/block/aio_task.c @@ -23,7 +23,7 @@ */ =20 #include "qemu/osdep.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/aio_task.h" =20 struct AioTaskPool { diff --git a/block/export/fuse.c b/block/export/fuse.c index 465cc9891d6..8cf4572f78d 100644 --- a/block/export/fuse.c +++ b/block/export/fuse.c @@ -20,7 +20,7 @@ =20 #include "qemu/osdep.h" #include "qemu/memalign.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/block_int-common.h" #include "block/export.h" #include "block/fuse.h" diff --git a/block/io_uring.c b/block/io_uring.c index f1514cf024a..cb131d3b8b5 100644 --- a/block/io_uring.c +++ b/block/io_uring.c @@ -10,7 +10,7 @@ */ #include "qemu/osdep.h" #include -#include "block/aio.h" +#include "qemu/aio.h" #include "block/block.h" #include "block/raw-aio.h" #include "qemu/coroutine.h" diff --git a/block/linux-aio.c b/block/linux-aio.c index c200e7ad20f..53c3e9af8ae 100644 --- a/block/linux-aio.c +++ b/block/linux-aio.c @@ -8,7 +8,7 @@ * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "qemu/queue.h" #include "block/block.h" #include "block/raw-aio.h" diff --git a/block/win32-aio.c b/block/win32-aio.c index 539f1c81c65..6e1b34fb95f 100644 --- a/block/win32-aio.c +++ b/block/win32-aio.c @@ -26,7 +26,7 @@ #include "qemu/timer.h" #include "block/block-io.h" #include "block/block_int.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/raw-aio.h" #include "qemu/aiocb.h" #include "qemu/event_notifier.h" diff --git a/iothread.c b/iothread.c index 8810376dcea..caf68e07645 100644 --- a/iothread.c +++ b/iothread.c @@ -15,7 +15,7 @@ #include "qom/object.h" #include "qom/object_interfaces.h" #include "qemu/module.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/block.h" #include "system/event-loop-base.h" #include "system/iothread.h" diff --git a/qapi/qmp-dispatch.c b/qapi/qmp-dispatch.c index e569224eaea..9bb1e6a9f4a 100644 --- a/qapi/qmp-dispatch.c +++ b/qapi/qmp-dispatch.c @@ -13,7 +13,7 @@ =20 #include "qemu/osdep.h" =20 -#include "block/aio.h" +#include "qemu/aio.h" #include "qapi/compat-policy.h" #include "qapi/error.h" #include "qapi/qmp-registry.h" diff --git a/replay/replay-events.c b/replay/replay-events.c index a96e47e7740..9e5af5e8495 100644 --- a/replay/replay-events.c +++ b/replay/replay-events.c @@ -13,7 +13,7 @@ #include "qemu/error-report.h" #include "system/replay.h" #include "replay-internal.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "ui/input.h" #include "hw/core/cpu.h" =20 diff --git a/scsi/pr-manager.c b/scsi/pr-manager.c index 40e1210eb21..fec0d68c4cc 100644 --- a/scsi/pr-manager.c +++ b/scsi/pr-manager.c @@ -13,7 +13,7 @@ #include =20 #include "qapi/error.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/thread-pool.h" #include "scsi/pr-manager.h" #include "trace.h" diff --git a/stubs/linux-aio.c b/stubs/linux-aio.c index 84d1f784aed..b1a27e926e3 100644 --- a/stubs/linux-aio.c +++ b/stubs/linux-aio.c @@ -8,7 +8,7 @@ * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/raw-aio.h" =20 void laio_detach_aio_context(LinuxAioState *s, AioContext *old_context) diff --git a/stubs/replay-tools.c b/stubs/replay-tools.c index c537485f401..17dc3babd9b 100644 --- a/stubs/replay-tools.c +++ b/stubs/replay-tools.c @@ -1,6 +1,6 @@ #include "qemu/osdep.h" #include "system/replay.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 bool replay_events_enabled(void) { diff --git a/tests/unit/iothread.c b/tests/unit/iothread.c index f9b0791084e..a363bf8f709 100644 --- a/tests/unit/iothread.c +++ b/tests/unit/iothread.c @@ -14,7 +14,7 @@ =20 #include "qemu/osdep.h" #include "qapi/error.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "qemu/main-loop.h" #include "qemu/rcu.h" #include "iothread.h" diff --git a/tests/unit/test-aio-multithread.c b/tests/unit/test-aio-multit= hread.c index c24200a7121..9179cdc6a32 100644 --- a/tests/unit/test-aio-multithread.c +++ b/tests/unit/test-aio-multithread.c @@ -11,7 +11,7 @@ */ =20 #include "qemu/osdep.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "qemu/coroutine.h" #include "qemu/thread.h" #include "qemu/error-report.h" diff --git a/tests/unit/test-aio.c b/tests/unit/test-aio.c index 010d65b79a5..b3ca4d8a596 100644 --- a/tests/unit/test-aio.c +++ b/tests/unit/test-aio.c @@ -11,7 +11,7 @@ */ =20 #include "qemu/osdep.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "qapi/error.h" #include "qemu/timer.h" #include "qemu/sockets.h" diff --git a/tests/unit/test-nested-aio-poll.c b/tests/unit/test-nested-aio= -poll.c index d13ecccd8c0..9ab1ad08a79 100644 --- a/tests/unit/test-nested-aio-poll.c +++ b/tests/unit/test-nested-aio-poll.c @@ -13,7 +13,7 @@ * aio_poll() calls. This test case checks that this is indeed what happen= s. */ #include "qemu/osdep.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "qapi/error.h" #include "util/aio-posix.h" =20 diff --git a/tests/unit/test-thread-pool.c b/tests/unit/test-thread-pool.c index ea5234f9f48..1e2f05f8416 100644 --- a/tests/unit/test-thread-pool.c +++ b/tests/unit/test-thread-pool.c @@ -1,5 +1,5 @@ #include "qemu/osdep.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/thread-pool.h" #include "block/block.h" #include "qapi/error.h" diff --git a/tests/unit/test-throttle.c b/tests/unit/test-throttle.c index dfa61c75ea4..52eb8966b3f 100644 --- a/tests/unit/test-throttle.c +++ b/tests/unit/test-throttle.c @@ -14,7 +14,7 @@ =20 #include "qemu/osdep.h" #include -#include "block/aio.h" +#include "qemu/aio.h" #include "qapi/error.h" #include "qemu/throttle.h" #include "qemu/error-report.h" diff --git a/util/async.c b/util/async.c index 39f391fb71a..80d6b01a8aa 100644 --- a/util/async.c +++ b/util/async.c @@ -25,7 +25,7 @@ =20 #include "qemu/osdep.h" #include "qapi/error.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/thread-pool.h" #include "block/graph-lock.h" #include "qemu/main-loop.h" diff --git a/util/main-loop.c b/util/main-loop.c index b462598f76e..ad8645c30a4 100644 --- a/util/main-loop.c +++ b/util/main-loop.c @@ -30,7 +30,7 @@ #include "exec/icount.h" #include "system/replay.h" #include "qemu/main-loop.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "block/thread-pool.h" #include "qemu/error-report.h" #include "qemu/queue.h" diff --git a/util/qemu-co-timeout.c b/util/qemu-co-timeout.c index 00cd335649f..6774440b287 100644 --- a/util/qemu-co-timeout.c +++ b/util/qemu-co-timeout.c @@ -25,7 +25,7 @@ =20 #include "qemu/osdep.h" #include "qemu/coroutine.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 typedef struct QemuCoTimeoutState { CoroutineEntry *entry; diff --git a/util/qemu-coroutine-lock.c b/util/qemu-coroutine-lock.c index 2534435388f..fac91582b5f 100644 --- a/util/qemu-coroutine-lock.c +++ b/util/qemu-coroutine-lock.c @@ -30,7 +30,7 @@ #include "qemu/coroutine_int.h" #include "qemu/processor.h" #include "qemu/queue.h" -#include "block/aio.h" +#include "qemu/aio.h" #include "trace.h" =20 void qemu_co_queue_init(CoQueue *queue) diff --git a/util/qemu-coroutine-sleep.c b/util/qemu-coroutine-sleep.c index af59f9af984..edef1172844 100644 --- a/util/qemu-coroutine-sleep.c +++ b/util/qemu-coroutine-sleep.c @@ -14,7 +14,7 @@ #include "qemu/osdep.h" #include "qemu/coroutine_int.h" #include "qemu/timer.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 static const char *qemu_co_sleep_ns__scheduled =3D "qemu_co_sleep_ns"; =20 diff --git a/util/qemu-coroutine.c b/util/qemu-coroutine.c index 64d6264fc74..d17135f585a 100644 --- a/util/qemu-coroutine.c +++ b/util/qemu-coroutine.c @@ -19,7 +19,7 @@ #include "qemu/coroutine_int.h" #include "qemu/coroutine-tls.h" #include "qemu/cutils.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 enum { COROUTINE_POOL_BATCH_MAX_SIZE =3D 128, diff --git a/util/throttle.c b/util/throttle.c index 9582899da3e..8044f04ffc9 100644 --- a/util/throttle.c +++ b/util/throttle.c @@ -26,7 +26,7 @@ #include "qapi/error.h" #include "qemu/throttle.h" #include "qemu/timer.h" -#include "block/aio.h" +#include "qemu/aio.h" =20 /* This function make a bucket leak * diff --git a/scripts/analyze-inclusions b/scripts/analyze-inclusions index 50a7d95d9e7..c30e44f02ec 100644 --- a/scripts/analyze-inclusions +++ b/scripts/analyze-inclusions @@ -52,7 +52,7 @@ echo $(grep_include -F 'qapi-types.h') files include qapi= -types.h echo $(grep_include -F 'trace/generated-tracers.h') files include generate= d-tracers.h echo $(grep_include -F 'qapi/error.h') files include qapi/error.h echo $(grep_include -F 'qom/object.h') files include qom/object.h -echo $(grep_include -F 'block/aio.h') files include block/aio.h +echo $(grep_include -F 'qemu/aio.h') files include block/aio.h echo $(grep_include -F 'system/memory.h') files include system/memory.h echo $(grep_include -F 'fpu/softfloat.h') files include fpu/softfloat.h echo $(grep_include -F 'qemu/bswap.h') files include qemu/bswap.h --=20 2.52.0