Store the virtio indirect descriptor in the SVQDescState structure
Signed-off-by: Wafer Xie <[email protected]>
---
hw/virtio/vhost-shadow-virtqueue.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/hw/virtio/vhost-shadow-virtqueue.h
b/hw/virtio/vhost-shadow-virtqueue.h
index 9c273739d6..2b36df4dd5 100644
--- a/hw/virtio/vhost-shadow-virtqueue.h
+++ b/hw/virtio/vhost-shadow-virtqueue.h
@@ -23,6 +23,14 @@ typedef struct SVQDescState {
* guest's
*/
unsigned int ndescs;
+
+ /*
+ * Indirect descriptor table for this descriptor chain.
+ * NULL if not using indirect descriptors.
+ */
+ vring_desc_t *indirect_desc;
+ hwaddr indirect_iova;
+ size_t indirect_size;
} SVQDescState;
typedef struct VhostShadowVirtqueue VhostShadowVirtqueue;
--
2.34.1