[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 04/15] include/hw/virtio: document vhost_ack_features
From: |
Alex Bennée |
Subject: |
[PATCH v2 04/15] include/hw/virtio: document vhost_ack_features |
Date: |
Tue, 24 May 2022 16:40:45 +0100 |
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
include/hw/virtio/vhost.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
index 9f9f57c46e..bfe868e341 100644
--- a/include/hw/virtio/vhost.h
+++ b/include/hw/virtio/vhost.h
@@ -259,6 +259,16 @@ void vhost_virtqueue_mask(struct vhost_dev *hdev,
VirtIODevice *vdev, int n,
*/
uint64_t vhost_get_features(struct vhost_dev *hdev, const int *feature_bits,
uint64_t features);
+
+/**
+ * vhost_ack_features() - set vhost acked_features
+ * @hdev: common vhost_dev structure
+ * @feature_bits: pointer to terminated table of feature bits
+ * @features: requested feature set
+ *
+ * This sets the internal hdev->acked_features to the intersection of
+ * the backends advertised features and the supported feature_bits.
+ */
void vhost_ack_features(struct vhost_dev *hdev, const int *feature_bits,
uint64_t features);
bool vhost_has_free_slot(void);
--
2.30.2
- Re: [PATCH v2 01/15] contrib/vhost-user-blk: fix 32 bit build and enable, (continued)
- [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
- [PATCH v2 05/15] hw/virtio: add boilerplate for vhost-user-gpio device, Alex Bennée, 2022/05/24
- [PATCH v2 11/15] tests/qtest: use g_autofree for test_server_create_chr, Alex Bennée, 2022/05/24
- [PATCH v2 10/15] tests/qtest: catch unhandled vhost-user messages, Alex Bennée, 2022/05/24
- [PATCH v2 13/15] tests/qtest: implement stub for VHOST_USER_GET_CONFIG, Alex Bennée, 2022/05/24
- [PATCH v2 09/15] tests/qtest: use qos_printf instead of g_test_message, Alex Bennée, 2022/05/24
- [PATCH v2 12/15] tests/qtest: plain g_assert for VHOST_USER_F_PROTOCOL_FEATURES, Alex Bennée, 2022/05/24
- [PATCH v2 04/15] include/hw/virtio: document vhost_ack_features,
Alex Bennée <=
- [PATCH v2 15/15] tests/qtest: enable tests for virtio-gpio, Alex Bennée, 2022/05/24
- [PATCH v2 14/15] tests/qtest: add a get_features op to vhost-user-test, Alex Bennée, 2022/05/24
- Re: [PATCH v2 00/15] virtio-gpio and various virtio cleanups, Stefan Hajnoczi, 2022/05/25