diff options
| author | Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> | 2025-06-03 18:18:29 +0900 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2025-07-14 14:51:12 +0400 |
| commit | 37ff925d5d4a70a951ade42094896246c989742f (patch) | |
| tree | 4c2d92b4b36b860862d9a31ed3a5ab2e0405d19a /hw/display/vhost-user-gpu-pci.c | |
| parent | aef22331b5a4670f42638a5f63a26e93bf779aae (diff) | |
| download | focaccia-qemu-37ff925d5d4a70a951ade42094896246c989742f.tar.gz focaccia-qemu-37ff925d5d4a70a951ade42094896246c989742f.zip | |
ui/vnc: Introduce the VncWorker type
The worker thread copies data in VncState to avoid race, but some data are too big to copy. Such data are held with pointers to avoid the overhead to copy, but it requires tedious memory management and makes them vulnerable to race. Introduce the VncWorker type to contain all data shared without copying. It allows allocating and freeing all shared data at once and shows that the race with the worker thread needs to be taken care of when accessing them. Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20250603-zlib-v3-2-20b857bd8d05@rsg.ci.i.u-tokyo.ac.jp>
Diffstat (limited to 'hw/display/vhost-user-gpu-pci.c')
0 files changed, 0 insertions, 0 deletions