mirror of https://github.com/xemu-project/xemu.git
util/vhost-user-server: drop unused DevicePanicNotifier
The device panic notifier callback is not used. Drop it. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20200924151549.913737-7-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
df6af7ce77
commit
47ba680466
|
@ -439,8 +439,7 @@ static void vhost_user_blk_server_start(VuBlockDev *vu_block_device,
|
||||||
ctx = bdrv_get_aio_context(blk_bs(vu_block_device->backend));
|
ctx = bdrv_get_aio_context(blk_bs(vu_block_device->backend));
|
||||||
|
|
||||||
if (!vhost_user_server_start(&vu_block_device->vu_server, addr, ctx,
|
if (!vhost_user_server_start(&vu_block_device->vu_server, addr, ctx,
|
||||||
VHOST_USER_BLK_MAX_QUEUES,
|
VHOST_USER_BLK_MAX_QUEUES, &vu_block_iface,
|
||||||
NULL, &vu_block_iface,
|
|
||||||
errp)) {
|
errp)) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,10 +81,6 @@ static void panic_cb(VuDev *vu_dev, const char *buf)
|
||||||
close_client(server);
|
close_client(server);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (server->device_panic_notifier) {
|
|
||||||
server->device_panic_notifier(server);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set the callback function for network listener so another
|
* Set the callback function for network listener so another
|
||||||
* vhost-user client can connect to this server
|
* vhost-user client can connect to this server
|
||||||
|
@ -385,7 +381,6 @@ bool vhost_user_server_start(VuServer *server,
|
||||||
SocketAddress *socket_addr,
|
SocketAddress *socket_addr,
|
||||||
AioContext *ctx,
|
AioContext *ctx,
|
||||||
uint16_t max_queues,
|
uint16_t max_queues,
|
||||||
DevicePanicNotifierFn *device_panic_notifier,
|
|
||||||
const VuDevIface *vu_iface,
|
const VuDevIface *vu_iface,
|
||||||
Error **errp)
|
Error **errp)
|
||||||
{
|
{
|
||||||
|
@ -402,7 +397,6 @@ bool vhost_user_server_start(VuServer *server,
|
||||||
.vu_iface = vu_iface,
|
.vu_iface = vu_iface,
|
||||||
.max_queues = max_queues,
|
.max_queues = max_queues,
|
||||||
.ctx = ctx,
|
.ctx = ctx,
|
||||||
.device_panic_notifier = device_panic_notifier,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
qio_net_listener_set_name(server->listener, "vhost-user-backend-listener");
|
qio_net_listener_set_name(server->listener, "vhost-user-backend-listener");
|
||||||
|
|
|
@ -29,12 +29,10 @@ typedef struct VuFdWatch {
|
||||||
} VuFdWatch;
|
} VuFdWatch;
|
||||||
|
|
||||||
typedef struct VuServer VuServer;
|
typedef struct VuServer VuServer;
|
||||||
typedef void DevicePanicNotifierFn(VuServer *server);
|
|
||||||
|
|
||||||
struct VuServer {
|
struct VuServer {
|
||||||
QIONetListener *listener;
|
QIONetListener *listener;
|
||||||
AioContext *ctx;
|
AioContext *ctx;
|
||||||
DevicePanicNotifierFn *device_panic_notifier;
|
|
||||||
int max_queues;
|
int max_queues;
|
||||||
const VuDevIface *vu_iface;
|
const VuDevIface *vu_iface;
|
||||||
VuDev vu_dev;
|
VuDev vu_dev;
|
||||||
|
@ -54,7 +52,6 @@ bool vhost_user_server_start(VuServer *server,
|
||||||
SocketAddress *unix_socket,
|
SocketAddress *unix_socket,
|
||||||
AioContext *ctx,
|
AioContext *ctx,
|
||||||
uint16_t max_queues,
|
uint16_t max_queues,
|
||||||
DevicePanicNotifierFn *device_panic_notifier,
|
|
||||||
const VuDevIface *vu_iface,
|
const VuDevIface *vu_iface,
|
||||||
Error **errp);
|
Error **errp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue