search for: virtq_desc

Displaying 10 results from an estimated 10 matches for "virtq_desc".

2017 Aug 02
0
[virtio-dev] repost: af_packet vs virtio (was packed ring layout proposal v2)
...#define VRING_DESC_F_WRITE? ? ? 2 > > * Scatter/gather support > > We can use 1 bit to chain s/g entries in a request, same as virtio 1.0: > > /* This marks a buffer as continuing via the next field. */ > > > This comment here is confusing to me. In 1.0, virtq_desc has the next field. > When the flag VRING_DESC_F_NEXT is set, the next entry to continue is specified > in the next field. > > Here in 1.1, struct desc does not have the next field, only addr, len, index, > and flags. So when VRING_DESC_F_NEXT is set in struct desc's flags field...
2017 Aug 02
0
[virtio-dev] repost: af_packet vs virtio (was packed ring layout proposal v2)
...#define VRING_DESC_F_WRITE? ? ? 2 > > * Scatter/gather support > > We can use 1 bit to chain s/g entries in a request, same as virtio 1.0: > > /* This marks a buffer as continuing via the next field. */ > > > This comment here is confusing to me. In 1.0, virtq_desc has the next field. > When the flag VRING_DESC_F_NEXT is set, the next entry to continue is specified > in the next field. > > Here in 1.1, struct desc does not have the next field, only addr, len, index, > and flags. So when VRING_DESC_F_NEXT is set in struct desc's flags field...
2017 Apr 14
0
repost: af_packet vs virtio (was packed ring layout proposal v2)
...t buffers Can be marked like in virtio 1.0: /* This means the buffer contains a table of buffer descriptors. */ #define VRING_DESC_F_INDIRECT 4 Unlike virtio 1.0, this is a table, not a list: struct indirect_descriptor_table { /* The actual descriptors (16 bytes each) */ struct virtq_desc desc[len / 16]; }; The first descriptor is located at start of the indirect descriptor table, additional indirect descriptors come immediately afterwards. DESC_F_WRITE is the only valid flag for descriptors in the indirect table. Others should be set to 0 and are ignored. id is also set to 0 and...
2017 Apr 14
0
repost: af_packet vs virtio (was packed ring layout proposal v2)
...t buffers Can be marked like in virtio 1.0: /* This means the buffer contains a table of buffer descriptors. */ #define VRING_DESC_F_INDIRECT 4 Unlike virtio 1.0, this is a table, not a list: struct indirect_descriptor_table { /* The actual descriptors (16 bytes each) */ struct virtq_desc desc[len / 16]; }; The first descriptor is located at start of the indirect descriptor table, additional indirect descriptors come immediately afterwards. DESC_F_WRITE is the only valid flag for descriptors in the indirect table. Others should be set to 0 and are ignored. id is also set to 0 and...
2017 Jul 16
1
[virtio-dev] packed ring layout proposal v2
...1.0: > > /* This means the buffer contains a table of buffer descriptors. */ > #define VRING_DESC_F_INDIRECT 4 > > Unlike virtio 1.0, this is a table, not a list: > struct indirect_descriptor_table { > /* The actual descriptors (16 bytes each) */ > struct virtq_desc desc[len / 16]; > }; > > The first descriptor is located at start of the indirect descriptor > table, additional indirect descriptors come immediately afterwards. > DESC_F_WRITE is the only valid flag for descriptors in the indirect > table. Others should be set to 0 and are igno...
2017 Jul 19
1
[virtio-dev] packed ring layout proposal v2
...f buffer descriptors. */ > > > #define VRING_DESC_F_INDIRECT 4 > > > > > > Unlike virtio 1.0, this is a table, not a list: > > > struct indirect_descriptor_table { > > > /* The actual descriptors (16 bytes each) */ > > > struct virtq_desc desc[len / 16]; > > > }; > > > > > > The first descriptor is located at start of the indirect descriptor > > > table, additional indirect descriptors come immediately afterwards. > > > DESC_F_WRITE is the only valid flag for descriptors in the indirect &...
2017 Jul 19
1
[virtio-dev] packed ring layout proposal v2
...f buffer descriptors. */ > > > #define VRING_DESC_F_INDIRECT 4 > > > > > > Unlike virtio 1.0, this is a table, not a list: > > > struct indirect_descriptor_table { > > > /* The actual descriptors (16 bytes each) */ > > > struct virtq_desc desc[len / 16]; > > > }; > > > > > > The first descriptor is located at start of the indirect descriptor > > > table, additional indirect descriptors come immediately afterwards. > > > DESC_F_WRITE is the only valid flag for descriptors in the indirect &...
2017 Jul 18
0
[virtio-dev] packed ring layout proposal v2
...the buffer contains a table of buffer descriptors. */ > > #define VRING_DESC_F_INDIRECT 4 > > > > Unlike virtio 1.0, this is a table, not a list: > > struct indirect_descriptor_table { > > /* The actual descriptors (16 bytes each) */ > > struct virtq_desc desc[len / 16]; > > }; > > > > The first descriptor is located at start of the indirect descriptor > > table, additional indirect descriptors come immediately afterwards. > > DESC_F_WRITE is the only valid flag for descriptors in the indirect > > table. Others s...
2017 Feb 08
16
packed ring layout proposal v2
...t buffers Can be marked like in virtio 1.0: /* This means the buffer contains a table of buffer descriptors. */ #define VRING_DESC_F_INDIRECT 4 Unlike virtio 1.0, this is a table, not a list: struct indirect_descriptor_table { /* The actual descriptors (16 bytes each) */ struct virtq_desc desc[len / 16]; }; The first descriptor is located at start of the indirect descriptor table, additional indirect descriptors come immediately afterwards. DESC_F_WRITE is the only valid flag for descriptors in the indirect table. Others should be set to 0 and are ignored. id is also set to 0 and...
2017 Feb 08
16
packed ring layout proposal v2
...t buffers Can be marked like in virtio 1.0: /* This means the buffer contains a table of buffer descriptors. */ #define VRING_DESC_F_INDIRECT 4 Unlike virtio 1.0, this is a table, not a list: struct indirect_descriptor_table { /* The actual descriptors (16 bytes each) */ struct virtq_desc desc[len / 16]; }; The first descriptor is located at start of the indirect descriptor table, additional indirect descriptors come immediately afterwards. DESC_F_WRITE is the only valid flag for descriptors in the indirect table. Others should be set to 0 and are ignored. id is also set to 0 and...