From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjkmf-0002qC-9Z for qemu-devel@nongnu.org; Mon, 12 May 2014 03:36:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjkmY-00075Y-AP for qemu-devel@nongnu.org; Mon, 12 May 2014 03:36:25 -0400 Received: from cantor2.suse.de ([195.135.220.15]:46550 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjkmY-00075K-4T for qemu-devel@nongnu.org; Mon, 12 May 2014 03:36:18 -0400 Message-ID: <537079EF.3070306@suse.de> Date: Mon, 12 May 2014 09:36:15 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1399041202-26184-1-git-send-email-pbonzini@redhat.com> <1399041202-26184-6-git-send-email-pbonzini@redhat.com> In-Reply-To: <1399041202-26184-6-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 5/8] apic: do not accept SIPI on the bootstrap processor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: Igor Mammedov , "Michael S. Tsirkin" Am 02.05.2014 16:33, schrieb Paolo Bonzini: > SIPI interrupts are ignored on the bootstrap. Never accept one. >=20 > Cc: Andreas F=C3=A4rber > Cc: Michael S. Tsirkin > Signed-off-by: Paolo Bonzini > --- > hw/intc/apic_common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c > index 7ecce2d..05c0e08 100644 > --- a/hw/intc/apic_common.c > +++ b/hw/intc/apic_common.c > @@ -200,7 +200,7 @@ void apic_init_reset(DeviceState *dev) > s->initial_count =3D 0; > s->initial_count_load_time =3D 0; > s->next_time =3D 0; > - s->wait_for_sipi =3D 1; > + s->wait_for_sipi =3D !cpu_is_bsp(s->cpu); I wondered whether this will work on hot-add. I believe so, since the device is reset on realized=3Dtrue after executing the realize hook, and the APIC gets realized as part of the CPU (but before it's reset). Reviewed-by: Andreas F=C3=A4rber Andreas > =20 > if (s->timer) { > timer_del(s->timer); --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg