[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 03/15] include/hw/virtio: document vhost_get_features
From: |
Alex Bennée |
Subject: |
[PATCH v2 03/15] include/hw/virtio: document vhost_get_features |
Date: |
Tue, 24 May 2022 16:40:44 +0100 |
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
include/hw/virtio/vhost.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
index b291fe4e24..9f9f57c46e 100644
--- a/include/hw/virtio/vhost.h
+++ b/include/hw/virtio/vhost.h
@@ -246,6 +246,17 @@ bool vhost_virtqueue_pending(struct vhost_dev *hdev, int
n);
*/
void vhost_virtqueue_mask(struct vhost_dev *hdev, VirtIODevice *vdev, int n,
bool mask);
+
+/**
+ * vhost_get_features() - return a sanitised set of feature bits
+ * @hdev: common vhost_dev structure
+ * @feature_bits: pointer to terminated table of feature bits
+ * @features: original feature set
+ *
+ * This returns a set of features bits that is an intersection of what
+ * is supported by the vhost backend (hdev->features), the supported
+ * feature_bits and the requested feature set.
+ */
uint64_t vhost_get_features(struct vhost_dev *hdev, const int *feature_bits,
uint64_t features);
void vhost_ack_features(struct vhost_dev *hdev, const int *feature_bits,
--
2.30.2
- [PATCH v2 00/15] virtio-gpio and various virtio cleanups, Alex Bennée, 2022/05/24
- [PATCH v2 03/15] include/hw/virtio: document vhost_get_features,
Alex Bennée <=
- [PATCH v2 08/15] tests/qtest: add a timeout for subprocess_run_one_test, Alex Bennée, 2022/05/24
- [PATCH v2 02/15] include/hw/virtio: more comment for VIRTIO_F_BAD_FEATURE, Alex Bennée, 2022/05/24
- [PATCH v2 01/15] contrib/vhost-user-blk: fix 32 bit build and enable, Alex Bennée, 2022/05/24
- [PATCH v2 06/15] hw/virtio: add vhost-user-gpio-pci boilerplate, Alex Bennée, 2022/05/24
- [PATCH v2 07/15] tests/qtest: pass stdout/stderr down to subtests, Alex Bennée, 2022/05/24