Skip to contentSkip to conversation

qmp: update vhost-user protocol feature maps

PATCH In review Laurent Vivier 4 participants 5 messages Dec 16, 2024 – Jan 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qmp: update vhost-user protocol feature maps

Add VHOST_USER_PROTOCOL_F_SHARED_OBJECT and VHOST_USER_PROTOCOL_F_DEVICE_STATE protocol feature maps to the virtio introspection.

Fixes 160947666276 ("vhost-user: add shared_object msg")
Fixes cda83adc62b6 ("vhost-user: Interface for migration state transfer")
---
 hw/virtio/virtio-qmp.c | 6 ++++++
 1 file changed, 6 insertions(+)
hw/virtio/virtio-qmp.c +6 -0
index cccc6fe76183..8a32a3b1052c 100644
@@ -121,6 +121,12 @@ static const qmp_virtio_feature_map_t vhost_user_protocol_map[] = {
     FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_STATUS, \
             "VHOST_USER_PROTOCOL_F_STATUS: Querying and notifying back-end "
             "device status supported"),
+    FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_SHARED_OBJECT, \
+            "VHOST_USER_PROTOCOL_F_SHARED_OBJECT: Backend shared object "
+            "supported"),
+    FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_DEVICE_STATE, \
+            "VHOST_USER_PROTOCOL_F_DEVICE_STATE: Backend device state transfer "
+            "supported"),
     { -1, "" }
 };
 
Signature · 1 line
2.47.1
#1 lore raw
Quoted 21 lines · Laurent Vivier

Add VHOST_USER_PROTOCOL_F_SHARED_OBJECT and VHOST_USER_PROTOCOL_F_DEVICE_STATE protocol feature maps to the virtio introspection.

Fixes 160947666276 ("vhost-user: add shared_object msg")
Fixes cda83adc62b6 ("vhost-user: Interface for migration state transfer")
---
  hw/virtio/virtio-qmp.c | 6 ++++++
  1 file changed, 6 insertions(+)
hw/virtio/virtio-qmp.c +0 -0
index cccc6fe76183..8a32a3b1052c 100644
@@ -121,6 +121,12 @@ static const qmp_virtio_feature_map_t vhost_user_protocol_map[] = {
      FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_STATUS, \
              "VHOST_USER_PROTOCOL_F_STATUS: Querying and notifying back-end "

hw/virtio/virtio-qmp.c static const qmp_virtio_feature_map_t vhost_user_protocol_map[] = { · line 132

Quoted 10 lines
hw/virtio/virtio-qmp.c +6 -0
              "device status supported"),
+    FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_SHARED_OBJECT, \
+            "VHOST_USER_PROTOCOL_F_SHARED_OBJECT: Backend shared object "
+            "supported"),
+    FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_DEVICE_STATE, \
+            "VHOST_USER_PROTOCOL_F_DEVICE_STATE: Backend device state transfer "
+            "supported"),
      { -1, "" }
  };
 

---
Jonah

#3 lore raw
Quoted 9 lines · Michael Tokarev

16.12.2024 20:30, Jonah Palmer wrote:
...

Quoted 1 line

Should this be a Reviewed-by instead?

Thanks,

/mjt

Oof, yes, it should've been. My apologies, I was on vacation and only saw this just now.

#4 lore raw
Quoted 6 lines · Jonah Palmer
Quoted 3 lines · Michael Tokarev

16.12.2024 20:30, Jonah Palmer wrote:
...

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Should this be a Reviewed-by instead?

Thanks,

/mjt

Oof, yes, it should've been. My apologies, I was on vacation and only saw this just now.

Already merged as commit 1e3d4d9a1a32ac6835f0d295a5117851c421fb5d.