2020-07-01 17:55:37 +03:00
|
|
|
/*
|
|
|
|
* vhost-vdpa.h
|
|
|
|
*
|
|
|
|
* Copyright(c) 2017-2018 Intel Corporation.
|
|
|
|
* Copyright(c) 2020 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HW_VIRTIO_VHOST_VDPA_H
|
|
|
|
#define HW_VIRTIO_VHOST_VDPA_H
|
|
|
|
|
|
|
|
#include "hw/virtio/virtio.h"
|
|
|
|
|
2021-04-15 10:33:56 +03:00
|
|
|
typedef struct VhostVDPAHostNotifier {
|
|
|
|
MemoryRegion mr;
|
|
|
|
void *addr;
|
|
|
|
} VhostVDPAHostNotifier;
|
|
|
|
|
2020-07-01 17:55:37 +03:00
|
|
|
typedef struct vhost_vdpa {
|
|
|
|
int device_fd;
|
|
|
|
uint32_t msg_type;
|
|
|
|
MemoryListener listener;
|
2020-09-07 13:49:03 +03:00
|
|
|
struct vhost_dev *dev;
|
2021-04-15 10:33:56 +03:00
|
|
|
VhostVDPAHostNotifier notifier[VIRTIO_QUEUE_MAX];
|
2020-07-01 17:55:37 +03:00
|
|
|
} VhostVDPA;
|
|
|
|
|
|
|
|
#endif
|