* Re: [kvm-commits] kvm: qemu: consume all signals available in order to reduce latency
[not found] ` <20070722102812.417CB250135-LjA0eNSCdXrQnzwC+xcbyw@public.gmane.org>
@ 2007-07-22 13:44 ` Aurelien Jarno
[not found] ` <46A35F46.8040002-rXXEIb44qovR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2007-07-22 13:44 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Avi Kivity a écrit :
> repository: /home/avi/kvm
> branch: master
> commit eae5c47eee477f63b55aab2374f702229b697626
> Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
> Date: Sun Jul 22 13:28:12 2007 +0300
>
> kvm: qemu: consume all signals available in order to reduce latency
>
[snip]
> }
> /*
> * we call select() even if no signal was received, to account for
> * for which there is no signal handler installed.
> */
> + pthread_mutex_unlock(&qemu_mutex);
> + cpu_single_env = vcpu_env;
> main_loop_wait(0);
> pthread_mutex_unlock(&qemu_mutex);
> }
The SMP problems comes from here. The first one should probably be
pthread_mutex_lock and not pthread_mutex_unlock.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org | aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org
`- people.debian.org/~aurel32 | www.aurel32.net
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [kvm-commits] kvm: qemu: consume all signals available in order to reduce latency
[not found] ` <46A35F46.8040002-rXXEIb44qovR7s880joybQ@public.gmane.org>
@ 2007-07-22 13:52 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-07-22 13:52 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Aurelien Jarno wrote:
>
>> }
>> /*
>> * we call select() even if no signal was received, to account for
>> * for which there is no signal handler installed.
>> */
>> + pthread_mutex_unlock(&qemu_mutex);
>> + cpu_single_env = vcpu_env;
>> main_loop_wait(0);
>> pthread_mutex_unlock(&qemu_mutex);
>> }
>>
>
> The SMP problems comes from here. The first one should probably be
> pthread_mutex_lock and not pthread_mutex_unlock.
>
>
Duh! Thanks for saving me potentially hours of debugging time.
Really, someone who's more careful about testing should be doing this thing.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-22 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070722102812.417CB250135@il.qumranet.com>
[not found] ` <20070722102812.417CB250135-LjA0eNSCdXrQnzwC+xcbyw@public.gmane.org>
2007-07-22 13:44 ` [kvm-commits] kvm: qemu: consume all signals available in order to reduce latency Aurelien Jarno
[not found] ` <46A35F46.8040002-rXXEIb44qovR7s880joybQ@public.gmane.org>
2007-07-22 13:52 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox