Re: [PATCH 2/2] qxl: Fix race on accessing cursor in struct SimpleSpiceDisplay

2024-12-20 Thread Philippe Mathieu-Daudé
Hi Hyman, On 19/12/24 19:46, Hyman Huang wrote: Both the spice server and the qemu (iothread/main loop) context can access the cursor field in struct SimpleSpiceDisplay. Add the mutex lock before accessing cursor in qxl_spice_reset_cursor(). Signed-off-by: Hyman Huang --- hw/display/qxl.c |

[PATCH 2/2] qxl: Fix race on accessing cursor in struct SimpleSpiceDisplay

2024-12-19 Thread Hyman Huang
Both the spice server and the qemu (iothread/main loop) context can access the cursor field in struct SimpleSpiceDisplay. Add the mutex lock before accessing cursor in qxl_spice_reset_cursor(). Signed-off-by: Hyman Huang --- hw/display/qxl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a