From: Glauber Costa Subject: Re: [PATCH 1/4] always halt non-bsp cpu. Date: Tue, 2 Jun 2009 18:23:40 -0300 Message-ID: <20090602212340.GX30777@poweredge.glommer> References: <1243971470-31676-1-git-send-email-glommer@redhat.com> <1243971470-31676-2-git-send-email-glommer@redhat.com> <4A258D23.9080106@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, avi@redhat.com To: Jan Kiszka Return-path: Received: from mx2.redhat.com ([66.187.237.31]:42526 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514AbZFBVR4 (ORCPT ); Tue, 2 Jun 2009 17:17:56 -0400 Content-Disposition: inline In-Reply-To: <4A258D23.9080106@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jun 02, 2009 at 10:35:47PM +0200, Jan Kiszka wrote: > Glauber Costa wrote: > > This is not kvm specific, and should do fine in plain qemu > > This is fine with plain qemu already. The problem, IIUC, is that > in-kernel kvm irqchip does not have a chance to remove the halted state > again. Did you test the effect of this patch on that scenario? What > makes it safe to be removed now? IIRC, the in kernel irqchip sets halted = 0 in the very beginning of the vcpu initialization. It is tested here with in-kernel irqchip and works, so probably not a problem, unless you can spot something.