virtio: update the comments for transport features
PATCH v2 1/1 virtio: update the comments for transport features
The existing comments for transport features are out dated. So update them to address the latest changes in the spec.
---
This patch is generated on top of below patch:
https://lists.oasis-open.org/archives/virtio-dev/201805/msg00212.html
v2:
- Improve the comments (Cornelia);
- Improve the commit message;
include/uapi/linux/virtio_config.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
include/uapi/linux/virtio_config.h +6 -3
@@ -45,9 +45,12 @@/* We've given up on this device. */ #define VIRTIO_CONFIG_S_FAILED 0x80 -/* Some virtio feature bits (currently bits 28 through 32) are reserved for the -* transport being used (eg. virtio_ring), the rest are per-device feature -* bits. */ +/* +* Virtio feature bits VIRTIO_TRANSPORT_F_START through +* VIRTIO_TRANSPORT_F_END are reserved for the transport +* being used (e.g. virtio_ring, virtio_pci etc.), the +* rest are per-device feature bits. +*/ #define VIRTIO_TRANSPORT_F_START 28#define VIRTIO_TRANSPORT_F_END 38
Signature · 6 lines
2.17.0 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 1 line · On Fri, 1 Jun 2018 18:59:50 +0800 Tiwei Bie <[email protected]> wrote:
The existing comments for transport features are out dated.
s/out dated/outdated/
Quoted 25 lines
So update them to address the latest changes in the spec.
Suggested-by Michael S. Tsirkin <[email protected]>Signed-off-by Tiwei Bie <[email protected]>---
This patch is generated on top of below patch:
https://lists.oasis-open.org/archives/virtio-dev/201805/msg00212.htmlv2:
- Improve the comments (Cornelia);
- Improve the commit message;include/uapi/linux/virtio_config.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)include/uapi/linux/virtio_config.h +0
-2@@ -45,9 +45,12 @@/* We've given up on this device. */ #define VIRTIO_CONFIG_S_FAILED 0x80 -/* Some virtio feature bits (currently bits 28 through 32) are reserved for the -* transport being used (eg. virtio_ring), the rest are per-device feature
include/uapi/linux/virtio_config.h line 56
Quoted 10 lines
include/uapi/linux/virtio_config.h +6
-1-* bits. */ +/* +* Virtio feature bits VIRTIO_TRANSPORT_F_START through +* VIRTIO_TRANSPORT_F_END are reserved for the transport +* being used (e.g. virtio_ring, virtio_pci etc.), the +* rest are per-device feature bits. +*/ #define VIRTIO_TRANSPORT_F_START 28#define VIRTIO_TRANSPORT_F_END 38
Quoted 1 line · On Fri, 1 Jun 2018 18:59:50 +0800 Tiwei Bie <[email protected]> wrote:
The existing comments for transport features are out dated.
s/out dated/outdated/
Quoted 25 lines
So update them to address the latest changes in the spec.
Suggested-by Michael S. Tsirkin <[email protected]>Signed-off-by Tiwei Bie <[email protected]>---
This patch is generated on top of below patch:
https://lists.oasis-open.org/archives/virtio-dev/201805/msg00212.htmlv2:
- Improve the comments (Cornelia);
- Improve the commit message;include/uapi/linux/virtio_config.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)include/uapi/linux/virtio_config.h +0
-2@@ -45,9 +45,12 @@/* We've given up on this device. */ #define VIRTIO_CONFIG_S_FAILED 0x80 -/* Some virtio feature bits (currently bits 28 through 32) are reserved for the -* transport being used (eg. virtio_ring), the rest are per-device feature
include/uapi/linux/virtio_config.h line 56
Quoted 10 lines
include/uapi/linux/virtio_config.h +6
-1-* bits. */ +/* +* Virtio feature bits VIRTIO_TRANSPORT_F_START through +* VIRTIO_TRANSPORT_F_END are reserved for the transport +* being used (e.g. virtio_ring, virtio_pci etc.), the +* rest are per-device feature bits. +*/ #define VIRTIO_TRANSPORT_F_START 28#define VIRTIO_TRANSPORT_F_END 38
Quoted 6 lines · Cornelia Huck
Quoted 1 line · On Fri, 1 Jun 2018 18:59:50 +0800 Tiwei Bie <[email protected]> wrote:
The existing comments for transport features are out dated.
s/out dated/outdated/
Thanks for catching this typo!
Quoted 1 line
[...]
Quoted 11 lines
Quoted 9 lines
+/*
+ * Virtio feature bitsVIRTIO_TRANSPORT_F_STARTthrough
+ *VIRTIO_TRANSPORT_F_ENDare reserved for the transport
+ * being used (e.g.virtio_ring,virtio_pcietc.), the
+ * rest are per-device feature bits.
+ */
#defineVIRTIO_TRANSPORT_F_START28
#defineVIRTIO_TRANSPORT_F_END38Reviewed-by Cornelia Huck <[email protected]>
Thanks for your review!
Best regards,
Tiwei Bie
Quoted 6 lines · Cornelia Huck
Quoted 1 line · On Fri, 1 Jun 2018 18:59:50 +0800 Tiwei Bie <[email protected]> wrote:
The existing comments for transport features are out dated.
s/out dated/outdated/
Thanks for catching this typo!
Quoted 1 line
[...]
Quoted 11 lines
Quoted 9 lines
+/*
+ * Virtio feature bitsVIRTIO_TRANSPORT_F_STARTthrough
+ *VIRTIO_TRANSPORT_F_ENDare reserved for the transport
+ * being used (e.g.virtio_ring,virtio_pcietc.), the
+ * rest are per-device feature bits.
+ */
#defineVIRTIO_TRANSPORT_F_START28
#defineVIRTIO_TRANSPORT_F_END38Reviewed-by Cornelia Huck <[email protected]>
Thanks for your review!
Best regards,
Tiwei Bie