mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
vhost: Add Shadow VirtQueue call forwarding capabilities
This will make qemu aware of the device used buffers, allowing it to write the guest memory with its contents if needed. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
dff4426fa6
commit
a8ac88585d
3 changed files with 71 additions and 2 deletions
|
@ -28,9 +28,13 @@ typedef struct VhostShadowVirtqueue {
|
|||
* So shadow virtqueue must not clean it, or we would lose VirtQueue one.
|
||||
*/
|
||||
EventNotifier svq_kick;
|
||||
|
||||
/* Guest's call notifier, where the SVQ calls guest. */
|
||||
EventNotifier svq_call;
|
||||
} VhostShadowVirtqueue;
|
||||
|
||||
void vhost_svq_set_svq_kick_fd(VhostShadowVirtqueue *svq, int svq_kick_fd);
|
||||
void vhost_svq_set_svq_call_fd(VhostShadowVirtqueue *svq, int call_fd);
|
||||
|
||||
void vhost_svq_stop(VhostShadowVirtqueue *svq);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue