export.c (d7e2fe4aac8b74bbfe82b2309536528b4dbe0d34) export.c (2a2359b84407b35fe978e98b7396f2ab8c5dd8b7)
1/*
2 * Common block export infrastructure
3 *
4 * Copyright (c) 2012, 2020 Red Hat, Inc.
5 *
6 * Authors:
7 * Paolo Bonzini <pbonzini@redhat.com>
8 * Kevin Wolf <kwolf@redhat.com>

--- 12 unchanged lines hidden (view full) ---

21#include "block/nbd.h"
22#include "qapi/error.h"
23#include "qapi/qapi-commands-block-export.h"
24#include "qapi/qapi-events-block-export.h"
25#include "qemu/id.h"
26#ifdef CONFIG_VHOST_USER_BLK_SERVER
27#include "vhost-user-blk-server.h"
28#endif
1/*
2 * Common block export infrastructure
3 *
4 * Copyright (c) 2012, 2020 Red Hat, Inc.
5 *
6 * Authors:
7 * Paolo Bonzini <pbonzini@redhat.com>
8 * Kevin Wolf <kwolf@redhat.com>

--- 12 unchanged lines hidden (view full) ---

21#include "block/nbd.h"
22#include "qapi/error.h"
23#include "qapi/qapi-commands-block-export.h"
24#include "qapi/qapi-events-block-export.h"
25#include "qemu/id.h"
26#ifdef CONFIG_VHOST_USER_BLK_SERVER
27#include "vhost-user-blk-server.h"
28#endif
29#ifdef CONFIG_VDUSE_BLK_EXPORT
30#include "vduse-blk.h"
31#endif
29
30static const BlockExportDriver *blk_exp_drivers[] = {
31 &blk_exp_nbd,
32#ifdef CONFIG_VHOST_USER_BLK_SERVER
33 &blk_exp_vhost_user_blk,
34#endif
35#ifdef CONFIG_FUSE
36 &blk_exp_fuse,
37#endif
32
33static const BlockExportDriver *blk_exp_drivers[] = {
34 &blk_exp_nbd,
35#ifdef CONFIG_VHOST_USER_BLK_SERVER
36 &blk_exp_vhost_user_blk,
37#endif
38#ifdef CONFIG_FUSE
39 &blk_exp_fuse,
40#endif
41#ifdef CONFIG_VDUSE_BLK_EXPORT
42 &blk_exp_vduse_blk,
43#endif
38};
39
40/* Only accessed from the main thread */
41static QLIST_HEAD(, BlockExport) block_exports =
42 QLIST_HEAD_INITIALIZER(block_exports);
43
44BlockExport *blk_exp_find(const char *id)
45{

--- 319 unchanged lines hidden ---
44};
45
46/* Only accessed from the main thread */
47static QLIST_HEAD(, BlockExport) block_exports =
48 QLIST_HEAD_INITIALIZER(block_exports);
49
50BlockExport *blk_exp_find(const char *id)
51{

--- 319 unchanged lines hidden ---