vhost-vdpa: map virtqueue notification area if possible
[qemu/kevin.git] / include / hw / virtio / vhost-vdpa.h
blob9188226d8b5ed18afd3cf33db9622efc31d452d0
1 /*
2 * vhost-vdpa.h
4 * Copyright(c) 2017-2018 Intel Corporation.
5 * Copyright(c) 2020 Red Hat, Inc.
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.
12 #ifndef HW_VIRTIO_VHOST_VDPA_H
13 #define HW_VIRTIO_VHOST_VDPA_H
15 #include "hw/virtio/virtio.h"
17 typedef struct VhostVDPAHostNotifier {
18 MemoryRegion mr;
19 void *addr;
20 } VhostVDPAHostNotifier;
22 typedef struct vhost_vdpa {
23 int device_fd;
24 uint32_t msg_type;
25 MemoryListener listener;
26 struct vhost_dev *dev;
27 VhostVDPAHostNotifier notifier[VIRTIO_QUEUE_MAX];
28 } VhostVDPA;
30 #endif