1 /* 2 * vhost shadow virtqueue 3 * 4 * SPDX-FileCopyrightText: Red Hat, Inc. 2021 5 * SPDX-FileContributor: Author: Eugenio Pérez <eperezma@redhat.com> 6 * 7 * SPDX-License-Identifier: GPL-2.0-or-later 8 */ 9 10 #ifndef VHOST_SHADOW_VIRTQUEUE_H 11 #define VHOST_SHADOW_VIRTQUEUE_H 12 13 #include "qemu/event_notifier.h" 14 15 /* Shadow virtqueue to relay notifications */ 16 typedef struct VhostShadowVirtqueue { 17 /* Shadow kick notifier, sent to vhost */ 18 EventNotifier hdev_kick; 19 /* Shadow call notifier, sent to vhost */ 20 EventNotifier hdev_call; 21 } VhostShadowVirtqueue; 22 23 VhostShadowVirtqueue *vhost_svq_new(void); 24 25 void vhost_svq_free(gpointer vq); 26 G_DEFINE_AUTOPTR_CLEANUP_FUNC(VhostShadowVirtqueue, vhost_svq_free); 27 28 #endif 29