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

2025-01-02 Thread Yong Huang
- Ping On Fri, Dec 20, 2024 at 7:46 PM 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 >

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

2024-12-20 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 | 9 ++--- 1 file changed, 6 insertions(+), 3 del