79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
64 lines
2.2 KiB
Diff
64 lines
2.2 KiB
Diff
From e1c5d60311a7b6dba60284f07fad92dfab688605 Mon Sep 17 00:00:00 2001
|
|
From: xiaowanghe <xiaowanghe_yewu@cmss.chinamobile.com>
|
|
Date: Sun, 13 Aug 2023 23:18:07 -0700
|
|
Subject: [PATCH] vhost: Drop unused eventfd_add|del hooks
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
cherry picked from commit 560a997535937df2ea3716ba56bcbe38be37682f
|
|
|
|
These hooks were introduced in:
|
|
|
|
80a1ea3748 ("memory: move ioeventfd ops to MemoryListener", 2012-02-29)
|
|
|
|
But they seem to be never used. Drop them.
|
|
|
|
Cc: Richard Henderson <rth@twiddle.net>
|
|
Signed-off-by: Peter Xu <peterx@redhat.com>
|
|
Message-Id: <20230306193209.516011-1-peterx@redhat.com>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
|
Acked-by: Jason Wang <jasowang@redhat.com>
|
|
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
Signed-off-by: Wanghe Xiao <xiaowanghe_yewu@cmss.chinamobile.com>
|
|
---
|
|
hw/virtio/vhost.c | 14 --------------
|
|
1 file changed, 14 deletions(-)
|
|
|
|
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
|
|
index 3ac6cfde03..2d11e3c2f8 100644
|
|
--- a/hw/virtio/vhost.c
|
|
+++ b/hw/virtio/vhost.c
|
|
@@ -1268,18 +1268,6 @@ static void vhost_virtqueue_stop(struct vhost_dev *dev,
|
|
0, virtio_queue_get_desc_size(vdev, idx));
|
|
}
|
|
|
|
-static void vhost_eventfd_add(MemoryListener *listener,
|
|
- MemoryRegionSection *section,
|
|
- bool match_data, uint64_t data, EventNotifier *e)
|
|
-{
|
|
-}
|
|
-
|
|
-static void vhost_eventfd_del(MemoryListener *listener,
|
|
- MemoryRegionSection *section,
|
|
- bool match_data, uint64_t data, EventNotifier *e)
|
|
-{
|
|
-}
|
|
-
|
|
static int vhost_virtqueue_set_busyloop_timeout(struct vhost_dev *dev,
|
|
int n, uint32_t timeout)
|
|
{
|
|
@@ -1413,8 +1401,6 @@ int vhost_dev_init(struct vhost_dev *hdev, void *opaque,
|
|
.log_sync = vhost_log_sync,
|
|
.log_global_start = vhost_log_global_start,
|
|
.log_global_stop = vhost_log_global_stop,
|
|
- .eventfd_add = vhost_eventfd_add,
|
|
- .eventfd_del = vhost_eventfd_del,
|
|
.priority = 10
|
|
};
|
|
|
|
--
|
|
2.41.0.windows.1
|
|
|