[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/55] include/hw/virtio: more comment for VIRTIO_F_BAD_FEATURE
From: |
Michael S. Tsirkin |
Subject: |
[PULL 02/55] include/hw/virtio: more comment for VIRTIO_F_BAD_FEATURE |
Date: |
Mon, 10 Oct 2022 13:28:46 -0400 |
From: Alex Bennée <alex.bennee@linaro.org>
When debugging a new vhost user you may be surprised to see
VHOST_USER_F_PROTOCOL getting squashed in the maze of
backend_features, acked_features and guest_features. Expand the
description here to help the next poor soul trying to work through
this.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220802095010.3330793-6-alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
include/hw/virtio/virtio.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index db1c0ddf6b..9bb2485415 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -24,7 +24,12 @@
#include "qom/object.h"
#include "hw/virtio/vhost.h"
-/* A guest should never accept this. It implies negotiation is broken. */
+/*
+ * A guest should never accept this. It implies negotiation is broken
+ * between the driver frontend and the device. This bit is re-used for
+ * vhost-user to advertise VHOST_USER_F_PROTOCOL_FEATURES between QEMU
+ * and a vhost-user backend.
+ */
#define VIRTIO_F_BAD_FEATURE 30
#define VIRTIO_LEGACY_FEATURES ((0x1ULL << VIRTIO_F_BAD_FEATURE) | \
--
MST
- [PULL 00/55] pc,virtio: features, tests, fixes, cleanups, Michael S. Tsirkin, 2022/10/10
- [PULL 01/55] hw/virtio: incorporate backend features in features, Michael S. Tsirkin, 2022/10/10
- [PULL 02/55] include/hw/virtio: more comment for VIRTIO_F_BAD_FEATURE,
Michael S. Tsirkin <=
- [PULL 03/55] include/hw: document vhost_dev feature life-cycle, Michael S. Tsirkin, 2022/10/10
- [PULL 04/55] hw/virtio: fix some coding style issues, Michael S. Tsirkin, 2022/10/10
- [PULL 05/55] hw/virtio: log potentially buggy guest drivers, Michael S. Tsirkin, 2022/10/10
- [PULL 06/55] hw/virtio: add some vhost-user trace events, Michael S. Tsirkin, 2022/10/10
- [PULL 07/55] hw/virtio: move vm_running check to virtio_device_started, Michael S. Tsirkin, 2022/10/10
- Re: Regression save/restore of vsock: (was [PULL 07/55] hw/virtio: move vm_running check to virtio_device_started), Alex Bennée, 2022/10/14