[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/31] vhost: Drop unused eventfd_add|del hooks
From: |
Michael S. Tsirkin |
Subject: |
[PULL 05/31] vhost: Drop unused eventfd_add|del hooks |
Date: |
Tue, 25 Apr 2023 03:45:01 -0400 |
From: Peter Xu <peterx@redhat.com>
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>
---
hw/virtio/vhost.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index a266396576..746d130c74 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -1291,18 +1291,6 @@ 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)
{
@@ -1457,8 +1445,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
};
--
MST
- [PULL 00/31] virtio,pc,pci: fixes, features, cleanups, Michael S. Tsirkin, 2023/04/25
- [PULL 01/31] virtio: refresh vring region cache after updating a virtqueue size, Michael S. Tsirkin, 2023/04/25
- [PULL 03/31] vdpa: accept VIRTIO_NET_F_SPEED_DUPLEX in SVQ, Michael S. Tsirkin, 2023/04/25
- [PULL 05/31] vhost: Drop unused eventfd_add|del hooks,
Michael S. Tsirkin <=
- [PULL 04/31] meson_options.txt: Enable qom-cast-debug by default again, Michael S. Tsirkin, 2023/04/25
- [PULL 06/31] docs: vhost-user: Define memory region separately, Michael S. Tsirkin, 2023/04/25
- [PULL 08/31] virtio-balloon: optimize the virtio-balloon on the ARM platform, Michael S. Tsirkin, 2023/04/25
- [PULL 07/31] docs: vhost-user: Add Xen specific memory mapping support, Michael S. Tsirkin, 2023/04/25
- [PULL 02/31] Add my old and new work email mapping and use work email to support biosbits, Michael S. Tsirkin, 2023/04/25
- [PULL 09/31] MAINTAINERS: Mark AMD-Vi emulation as orphan, Michael S. Tsirkin, 2023/04/25
- [PULL 11/31] hw/i386/amd_iommu: Remove intermediate AMDVIState::devid field, Michael S. Tsirkin, 2023/04/25
- [PULL 10/31] hw/i386/amd_iommu: Explicit use of AMDVI_BASE_ADDR in amdvi_init, Michael S. Tsirkin, 2023/04/25
- [PULL 12/31] hw/i386/amd_iommu: Move capab_offset from AMDVIState to AMDVIPCIState, Michael S. Tsirkin, 2023/04/25
- [PULL 13/31] hw/i386/amd_iommu: Set PCI static/const fields via PCIDeviceClass, Michael S. Tsirkin, 2023/04/25