From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [patch] KVM: T60 resume fix Date: Mon, 5 Mar 2007 09:22:51 +0100 Message-ID: <20070305082251.GA23366@elte.hu> References: <20070227111515.GA4271@kernel.dk> <20070301093450.GA8508@elte.hu> <20070301104117.GA22788@elte.hu> <20070301145204.GA25304@elte.hu> <20070302072100.GB30634@elte.hu> <20070302080441.GA12785@elte.hu> <20070302102018.GA11549@elte.hu> <20070302102216.GA13575@elte.hu> <45E93012.4000100@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <45E93012.4000100@qumranet.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: Avi Kivity Cc: Daniel Walker , Michal Piotrowski , linux-pm@lists.osdl.org, Linux Kernel Mailing List , Adrian Bunk , Pavel Machek , Jens Axboe , "Michael S. Tsirkin" , Thomas Gleixner , Linus Torvalds , Andrew Morton , git@vger.kernel.org List-Id: linux-pm@vger.kernel.org * Avi Kivity wrote: > > my T60 laptop does not resume correctly due to KVM attempting to = > > send an IPI to a CPU that might be down (or not up yet). (Doing so = > > also triggers the send_IPI_mask_bitmask() warning in = > > arch/i386/kernel/smp.c, line 732.) > > > >with this fix applied my laptop does not hang during resume. > > > >[ KVM will have to disable/enable virtualization on the CPU itself = > > that goes down / comes up, not via an IPI sent from the requesting > > CPU. ] > That is already CPU_ONLINE in my tree (and in the pull request sent to = > Linus a couple of days ago). that solves the resume problem - but doesnt solve the CPU_DEAD issue of = sending an IPI to an already offline CPU. Might be a better idea to do = it in CPU_DOWN_PREPARE? (and then to also add a CPU_DOWN_FAILED branch?) Ingo