From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Gleb Natapov <gleb@redhat.com>,
Glauber de Oliveira Costa <gcosta@redhat.com>,
kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH] qemu-kvm initialize vcpu state after machine initialization
Date: Tue, 15 Dec 2009 14:31:16 +0200 [thread overview]
Message-ID: <4B278194.7000209@redhat.com> (raw)
In-Reply-To: <20091215122415.GA9715@amt.cnet>
On 12/15/2009 02:24 PM, Marcelo Tosatti wrote:
>>
>> This patch essentially revers commit 898c51c3. This commit fixes two
>> races. First race is like this:
>>
>> vcpu0 vcpu1
>>
>> starts running
>> loads lapic state into kernel
>> sends event to vcpu1
>> starts running
>> loads lapic state into kernel
>> overwrites event from vcpu0
>>
>> At the time 898c51c3 was committed the race was easily reproducible
>> by starting VM with 16 cpus + seabios. Sometimes some vcpus lost INIT/SIPI
>> events. Now I am not able to reproduce it even with this patch applied,
>> so something else changed, but it doesn't make the race non existent or
>> acceptable.
>>
> Note qemu_kvm_load_lapic depends on env->created set (kvm_vcpu_inited),
> so having init_vcpu+load_regs before signalling vcpu creation did not
> fix this one (but yeah, thanks for the reminder on the races).
>
So safest to revert and wait for a fixed patch?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-12-15 12:31 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-09 17:46 qemu-kvm requires apic initialized before vcpu main loop Marcelo Tosatti
2009-12-09 18:23 ` Jan Kiszka
2009-12-09 19:23 ` Gleb Natapov
2009-12-09 20:09 ` Jan Kiszka
2009-12-09 20:13 ` Marcelo Tosatti
2009-12-09 20:21 ` Jan Kiszka
2009-12-09 20:50 ` Gleb Natapov
2009-12-09 21:01 ` Jan Kiszka
2009-12-10 6:36 ` Gleb Natapov
2009-12-10 8:12 ` Jan Kiszka
2009-12-09 20:02 ` Marcelo Tosatti
2009-12-09 20:22 ` Marcelo Tosatti
2009-12-09 18:25 ` Glauber Costa
2009-12-09 19:00 ` Jan Kiszka
2009-12-09 20:21 ` Marcelo Tosatti
2009-12-10 11:06 ` Glauber Costa
2009-12-09 20:09 ` Marcelo Tosatti
2009-12-09 19:20 ` Gleb Natapov
2009-12-09 20:26 ` Marcelo Tosatti
2009-12-10 9:33 ` Avi Kivity
2009-12-10 9:45 ` Avi Kivity
2009-12-14 20:36 ` [PATCH] qemu-kvm initialize vcpu state after machine initialization Marcelo Tosatti
2009-12-15 10:16 ` Avi Kivity
2009-12-15 11:20 ` Gleb Natapov
2009-12-15 12:24 ` Marcelo Tosatti
2009-12-15 12:31 ` Avi Kivity [this message]
2009-12-15 12:51 ` Marcelo Tosatti
2009-12-15 12:33 ` Gleb Natapov
2009-12-16 14:12 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B278194.7000209@redhat.com \
--to=avi@redhat.com \
--cc=gcosta@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.