[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 04/25] include/sysemu/block-backend: split header into I/O
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v3 04/25] include/sysemu/block-backend: split header into I/O and global state (GS) API |
Date: |
Thu, 21 Oct 2021 15:28:57 +0100 |
On Tue, Oct 12, 2021 at 04:48:45AM -0400, Emanuele Giuseppe Esposito wrote:
> Similarly to the previous patches, split block-backend.h
> in block-backend-io.h and block-backend-global-state.h
>
> In addition, remove "block/block.h" include as it seems
> it is not necessary anymore, together with "qemu/iov.h"
>
> block-backend-common.h contains the structures shared between
> the two headers, and the functions that can't be categorized as
> I/O or global state.
>
> Assertions are added in the next patch.
>
> Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
> ---
> block/block-backend.c | 9 +-
> include/sysemu/block-backend-common.h | 74 ++++++
> include/sysemu/block-backend-global-state.h | 122 +++++++++
> include/sysemu/block-backend-io.h | 134 ++++++++++
> include/sysemu/block-backend.h | 264 +-------------------
> 5 files changed, 339 insertions(+), 264 deletions(-)
> create mode 100644 include/sysemu/block-backend-common.h
> create mode 100644 include/sysemu/block-backend-global-state.h
> create mode 100644 include/sysemu/block-backend-io.h
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
- [PATCH v3 00/25] block layer: split block APIs in global state and I/O, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 01/25] main-loop.h: introduce qemu_in_main_thread(), Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 02/25] include/block/block: split header into I/O and global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 03/25] assertions for block global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 05/25] block/block-backend.c: assertions for block-backend, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 04/25] include/sysemu/block-backend: split header into I/O and global state (GS) API, Emanuele Giuseppe Esposito, 2021/10/12
- Re: [PATCH v3 04/25] include/sysemu/block-backend: split header into I/O and global state (GS) API,
Stefan Hajnoczi <=
- [PATCH v3 06/25] include/block/block_int: split header into I/O and global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 07/25] assertions for block_int global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 08/25] block: introduce assert_bdrv_graph_writable, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 10/25] assertions for blockjob_int.h, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 09/25] include/block/blockjob_int.h: split header into I/O and GS API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 11/25] include/block/blockjob.h: global state API, Emanuele Giuseppe Esposito, 2021/10/12