[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-08 Thread Avi Kivity
On 03/08/2011 11:28 AM, Paolo Bonzini wrote: On 03/08/2011 10:17 AM, Avi Kivity wrote: Memory map can be protected by a read-write lock initially, so that vcpu thread holds it for read. Later can be converted to URCU. rwlock is insufficient, need a way to force the vcpu off so a writer can ac

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-08 Thread Paolo Bonzini
On 03/08/2011 10:17 AM, Avi Kivity wrote: Memory map can be protected by a read-write lock initially, so that vcpu thread holds it for read. Later can be converted to URCU. rwlock is insufficient, need a way to force the vcpu off so a writer can actually do something. So we need some kind of p

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-08 Thread Avi Kivity
On 03/07/2011 06:13 PM, Marcelo Tosatti wrote: On Sun, Mar 06, 2011 at 12:38:44PM +0200, Avi Kivity wrote: > On 03/05/2011 06:35 PM, Marcelo Tosatti wrote: > >Regarding global mutex, TCG and KVM execution behaviour can become more > >similar wrt locking by dropping qemu_global_mutex during gen

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-07 Thread Paolo Bonzini
On 03/07/2011 05:13 PM, Marcelo Tosatti wrote: Is write access to memory map necessary from vcpu context? At least in x86 world SMM is entered from vcpu context, so I guess yes. Paolo

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-07 Thread Marcelo Tosatti
On Sun, Mar 06, 2011 at 12:30:59PM +0200, Alon Levy wrote: > On Sat, Mar 05, 2011 at 01:35:58PM -0300, Marcelo Tosatti wrote: > > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > > > > at > > > > /var/tmp/portage/app-emulation/qemu-kvm-0.14.0/work/qemu-kvm-0.14.0/qemu-kvm.c:1466 >

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-07 Thread Marcelo Tosatti
On Sun, Mar 06, 2011 at 12:38:44PM +0200, Avi Kivity wrote: > On 03/05/2011 06:35 PM, Marcelo Tosatti wrote: > >Regarding global mutex, TCG and KVM execution behaviour can become more > >similar wrt locking by dropping qemu_global_mutex during generation and > >execution of TBs. > > How can you do

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-06 Thread Avi Kivity
On 03/05/2011 06:35 PM, Marcelo Tosatti wrote: Regarding global mutex, TCG and KVM execution behaviour can become more similar wrt locking by dropping qemu_global_mutex during generation and execution of TBs. How can you do that? During generation, a device can assert the reset line, changing

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-06 Thread Alon Levy
On Sat, Mar 05, 2011 at 01:35:58PM -0300, Marcelo Tosatti wrote: > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > > > at > > > /var/tmp/portage/app-emulation/qemu-kvm-0.14.0/work/qemu-kvm-0.14.0/qemu-kvm.c:1466 > > > #12 0x777bb944 in start_thread () from /lib/libpthread

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-05 Thread Paolo Bonzini
On 03/05/2011 05:35 PM, Marcelo Tosatti wrote: TCG and KVM execution behaviour can become more similar wrt locking by dropping qemu_global_mutex during generation and execution of TBs. Of course for memory or PIO accesses from vcpu context qemu_global_mutex must be acquired. -icount already ha

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-05 Thread Marcelo Tosatti
On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > > at > > /var/tmp/portage/app-emulation/qemu-kvm-0.14.0/work/qemu-kvm-0.14.0/qemu-kvm.c:1466 > > #12 0x777bb944 in start_thread () from /lib/libpthread.so.0 > > #13 0x75e491dd in clone () from /lib/libc.so.6 > > (gdb

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-02 Thread Alon Levy
On Wed, Mar 02, 2011 at 12:34:24PM +0100, Jan Kiszka wrote: > On 2011-03-02 11:56, Alon Levy wrote: > > On Wed, Mar 02, 2011 at 09:22:35AM +0100, Jan Kiszka wrote: > >> On 2011-03-01 13:58, Alon Levy wrote: > >>> On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: > On 2011-02-27 20:03

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-02 Thread Jan Kiszka
On 2011-03-02 11:56, Alon Levy wrote: > On Wed, Mar 02, 2011 at 09:22:35AM +0100, Jan Kiszka wrote: >> On 2011-03-01 13:58, Alon Levy wrote: >>> On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: On 2011-02-27 20:03, Alon Levy wrote: > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-02 Thread Alon Levy
On Wed, Mar 02, 2011 at 09:22:35AM +0100, Jan Kiszka wrote: > On 2011-03-01 13:58, Alon Levy wrote: > > On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: > >> On 2011-02-27 20:03, Alon Levy wrote: > >>> On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > On 2011-02-26 12:43

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-02 Thread Jan Kiszka
On 2011-03-01 13:58, Alon Levy wrote: > On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: >> On 2011-02-27 20:03, Alon Levy wrote: >>> On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: On 2011-02-26 12:43, xming wrote: > When trying to start X (and it loads qxl driver)

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-01 Thread Alon Levy
On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: > On 2011-02-27 20:03, Alon Levy wrote: > > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > >> On 2011-02-26 12:43, xming wrote: > >>> When trying to start X (and it loads qxl driver) the kvm process just > >>> crashes. > >

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-28 Thread Rick Vernam
On Sunday 27 February 2011 13:03:14 Alon Levy wrote: > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > > On 2011-02-26 12:43, xming wrote: > > > When trying to start X (and it loads qxl driver) the kvm process just > > > crashes. > > This is fixed by Gerd's attached patch (taken from

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-28 Thread xming
On Sun, Feb 27, 2011 at 8:03 PM, Alon Levy wrote: > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: >> On 2011-02-26 12:43, xming wrote: >> > When trying to start X (and it loads qxl driver) the kvm process just >> > crashes. > > This is fixed by Gerd's attached patch (taken from rhel

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-27 Thread Alon Levy
On Sun, Feb 27, 2011 at 08:27:01PM +0100, Jan Kiszka wrote: > On 2011-02-27 20:16, Alon Levy wrote: > > On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: > >> On 2011-02-27 20:03, Alon Levy wrote: > >>> On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > On 2011-02-26 12:43

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-27 Thread Alon Levy
On Sun, Feb 27, 2011 at 08:27:01PM +0100, Jan Kiszka wrote: > On 2011-02-27 20:16, Alon Levy wrote: > > On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: > >> On 2011-02-27 20:03, Alon Levy wrote: > >>> On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > On 2011-02-26 12:43

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-27 Thread Jan Kiszka
On 2011-02-27 20:16, Alon Levy wrote: > On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: >> On 2011-02-27 20:03, Alon Levy wrote: >>> On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: On 2011-02-26 12:43, xming wrote: > When trying to start X (and it loads qxl driver)

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-27 Thread Alon Levy
On Sun, Feb 27, 2011 at 08:11:26PM +0100, Jan Kiszka wrote: > On 2011-02-27 20:03, Alon Levy wrote: > > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > >> On 2011-02-26 12:43, xming wrote: > >>> When trying to start X (and it loads qxl driver) the kvm process just > >>> crashes. > >

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-27 Thread Jan Kiszka
On 2011-02-27 20:03, Alon Levy wrote: > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: >> On 2011-02-26 12:43, xming wrote: >>> When trying to start X (and it loads qxl driver) the kvm process just >>> crashes. > > This is fixed by Gerd's attached patch (taken from rhel repository, d

Re: [Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-27 Thread Alon Levy
On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > On 2011-02-26 12:43, xming wrote: > > When trying to start X (and it loads qxl driver) the kvm process just > > crashes. This is fixed by Gerd's attached patch (taken from rhel repository, don't know why it wasn't pushed to qemu-kvm up

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-26 Thread xming
Oops forgot to send this to the list too, here we go > That's a spice bug. In fact, there are a lot of > qemu_mutex_lock/unlock_iothread in that subsystem. I bet at least a few > of them can cause even more subtle problems. Just tried spice 0.7.3 (was using 0.6.x) and still the same, should I fil

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-02-26 Thread Jan Kiszka
On 2011-02-26 12:43, xming wrote: > When trying to start X (and it loads qxl driver) the kvm process just crashes. > > qemu-kvm 0.14 > > startup line > > /usr/bin/kvm -name spaceball,process=spaceball -m 1024 -kernel > /boot/bzImage-2.6.37.2-guest -append "root=/dev/vda ro" -smp 1 -netdev > type