diff options
| author | Eugenio Pérez <eperezma@redhat.com> | 2022-07-20 08:59:43 +0200 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2022-07-20 16:58:08 +0800 |
| commit | 2df4dd31e194c94da7d28c02e92449f4a989fca9 (patch) | |
| tree | 5bb87c15ad72591141ce63e357c6a7519c8d1af4 /python/qemu/utils/qemu_ga_client.py | |
| parent | bd907ae4b00ebedad5e586af05ea3d6490318d45 (diff) | |
| download | focaccia-qemu-2df4dd31e194c94da7d28c02e92449f4a989fca9.tar.gz focaccia-qemu-2df4dd31e194c94da7d28c02e92449f4a989fca9.zip | |
vdpa: Buffer CVQ support on shadow virtqueue
Introduce the control virtqueue support for vDPA shadow virtqueue. This is needed for advanced networking features like rx filtering. Virtio-net control VQ copies the descriptors to qemu's VA, so we avoid TOCTOU with the guest's or device's memory every time there is a device model change. Otherwise, the guest could change the memory content in the time between qemu and the device read it. To demonstrate command handling, VIRTIO_NET_F_CTRL_MACADDR is implemented. If the virtio-net driver changes MAC the virtio-net device model will be updated with the new one, and a rx filtering change event will be raised. More cvq commands could be added here straightforwardly but they have not been tested. 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>
Diffstat (limited to 'python/qemu/utils/qemu_ga_client.py')
0 files changed, 0 insertions, 0 deletions