mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
vhost: Track number of descs in SVQDescState
A guest's buffer continuos on GPA may need multiple descriptors on qemu's VA, so SVQ should track its length sepparatedly. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
9e87868fca
commit
ac4cfdc6f3
2 changed files with 8 additions and 2 deletions
|
@ -17,6 +17,12 @@
|
|||
|
||||
typedef struct SVQDescState {
|
||||
VirtQueueElement *elem;
|
||||
|
||||
/*
|
||||
* Number of descriptors exposed to the device. May or may not match
|
||||
* guest's
|
||||
*/
|
||||
unsigned int ndescs;
|
||||
} SVQDescState;
|
||||
|
||||
/* Shadow virtqueue to relay notifications */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue