[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 18/28] contrib/vhost-user-blk: enable protocol featur
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 18/28] contrib/vhost-user-blk: enable protocol feature for vhost-user-blk |
Date: |
Wed, 23 May 2018 17:43:14 +0300 |
From: Changpeng Liu <address@hidden>
This patch reports the protocol feature that is only advertised by
QEMU if the device implements the config ops.
Signed-off-by: Changpeng Liu <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
contrib/vhost-user-blk/vhost-user-blk.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/contrib/vhost-user-blk/vhost-user-blk.c
b/contrib/vhost-user-blk/vhost-user-blk.c
index 67dac81..a6a132a 100644
--- a/contrib/vhost-user-blk/vhost-user-blk.c
+++ b/contrib/vhost-user-blk/vhost-user-blk.c
@@ -311,6 +311,12 @@ vub_get_features(VuDev *dev)
1ull << VHOST_USER_F_PROTOCOL_FEATURES;
}
+static uint64_t
+vub_get_protocol_features(VuDev *dev)
+{
+ return 1ull << VHOST_USER_PROTOCOL_F_CONFIG;
+}
+
static int
vub_get_config(VuDev *vu_dev, uint8_t *config, uint32_t len)
{
@@ -373,6 +379,7 @@ vub_set_config(VuDev *vu_dev, const uint8_t *data,
static const VuDevIface vub_iface = {
.get_features = vub_get_features,
.queue_set_started = vub_queue_set_started,
+ .get_protocol_features = vub_get_protocol_features,
.get_config = vub_get_config,
.set_config = vub_set_config,
};
--
MST
- [Qemu-devel] [PULL 12/28] vhost-user: add Net prefix to internal state structure, (continued)
- [Qemu-devel] [PULL 12/28] vhost-user: add Net prefix to internal state structure, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 14/28] virtio: support setting memory region based host notifier, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 13/28] vhost-user: support receiving file descriptors in slave_read, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 11/28] linux-headers: add kvm header for mips, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 16/28] libvhost-user: Send messages with no data, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 15/28] vhost-user+postcopy: Use qemu_set_nonblock, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 10/28] linux-headers: add unistd.h on all arches, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 17/28] hw/virtio: Fix brace Werror with clang 6.0.0, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 20/28] intel-iommu: send PSI always even if across PDEs, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 19/28] nvdimm: fix typo in label-size definition, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 18/28] contrib/vhost-user-blk: enable protocol feature for vhost-user-blk,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 21/28] intel-iommu: remove IntelIOMMUNotifierNode, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 23/28] intel-iommu: only do page walk for MAP notifiers, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 22/28] intel-iommu: add iommu lock, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 24/28] intel-iommu: introduce vtd_page_walk_info, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 26/28] intel-iommu: trace domain id during page walk, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 27/28] util: implement simple iova tree, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 28/28] intel-iommu: rework the page walk logic, Michael S. Tsirkin, 2018/05/23
- [Qemu-devel] [PULL 25/28] intel-iommu: pass in address space when page walk, Michael S. Tsirkin, 2018/05/23
- Re: [Qemu-devel] [PULL 00/28] pc, pci, virtio, vhost: fixes, features, Peter Maydell, 2018/05/24
- Re: [Qemu-devel] [PULL 00/28] pc, pci, virtio, vhost: fixes, features, no-reply, 2018/05/24