Re: [Qemu-devel] [PATCH] spice/qxl: locking fix for qemu-kvm

2011-03-02 Thread Alon Levy
On Wed, Mar 02, 2011 at 02:32:03PM +0200, Alon Levy wrote: > From: Gerd Hoffmann Err, that "From" got there by mistake, and the title should of course not say "for qemu-kvm".. > > qxl needs to release the qemu lock before calling some libspice > functions (and re-aquire it later). In upstream

[Qemu-devel] [PATCH] spice/qxl: locking fix for qemu-kvm

2011-03-02 Thread Alon Levy
From: Gerd Hoffmann qxl needs to release the qemu lock before calling some libspice functions (and re-aquire it later). In upstream qemu qxl can just use qemu_mutex_{unlock,lock}_iothread. In qemu-kvm this doesn't work, qxl needs additionally save+restore the cpu_single_env pointer on unlock+lo

[Qemu-devel] [PATCH] spice/qxl: locking fix for qemu-kvm

2011-02-27 Thread Alon Levy
From: Gerd Hoffmann qxl needs to release the qemu lock before calling some libspice functions (and re-aquire it later). In upstream qemu qxl can just use qemu_mutex_{unlock,lock}_iothread. In qemu-kvm this doesn't work, qxl needs additionally save+restore the cpu_single_env pointer on unlock+lo