From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752184AbXCEIyD (ORCPT ); Mon, 5 Mar 2007 03:54:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752182AbXCEIyC (ORCPT ); Mon, 5 Mar 2007 03:54:02 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:53300 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151AbXCEIyB (ORCPT ); Mon, 5 Mar 2007 03:54:01 -0500 Date: Mon, 5 Mar 2007 09:44:49 +0100 From: Ingo Molnar To: Avi Kivity Cc: Linus Torvalds , Jens Axboe , Pavel Machek , Adrian Bunk , Andrew Morton , Linux Kernel Mailing List , "Michael S. Tsirkin" , Thomas Gleixner , linux-pm@lists.osdl.org, Michal Piotrowski , Daniel Walker , Len Brown Subject: Re: [patch] KVM: T60 resume fix Message-ID: <20070305084449.GA1706@elte.hu> References: <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> <20070305082251.GA23366@elte.hu> <45EBD9BC.4030801@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45EBD9BC.4030801@qumranet.com> User-Agent: Mutt/1.4.2.2i X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.0.3 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Avi Kivity wrote: > >> 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?) > > Mainline now has DOWN_PREPARE and UP_CANCELED calling > ->hardware_disable(), and ONLINE calling ->hardware_enabled(). What > tree are you looking at? oh, i just hand-fixed it. I'll check current-git now. > [but I do see the need for DOWN_FAILED now. Off to find a resumable > machine...] yeah, both DOWN_FAILED and UP_FAILED might trigger when some other bug prevents a resume. Ingo