From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [patch] KVM: T60 resume fix Date: Sat, 3 Mar 2007 03:57:42 -0800 Message-ID: <20070303035742.72eed3df.akpm@linux-foundation.org> References: <20070227103407.GA17819@elte.hu> <20070227105922.GD2250@kernel.dk> <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 Cc: Jens Axboe , Daniel Walker , Michal Piotrowski , Pavel@smtp.osdl.org, linux-pm@lists.osdl.org, List , Len@smtp.osdl.org, Adrian Bunk , Machek , Linux@smtp.osdl.org, "Michael S. Tsirkin" , Thomas Gleixner , Linus Torvalds , Ingo Molnar , git@vger.kernel.org To: Avi Kivity X-From: linux-pm-bounces@lists.osdl.org Sat Mar 03 12:58:13 2007 Return-path: Envelope-to: gll-linux-pm@gmane.org Received: from smtp.osdl.org ([65.172.181.24]) by lo.gmane.org with esmtp (Exim 4.50) id 1HNSsM-0001qo-Bc for gll-linux-pm@gmane.org; Sat, 03 Mar 2007 12:58:10 +0100 Received: from fire-2.osdl.org (localhost [127.0.0.1]) by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id l23Bvqq8026195; Sat, 3 Mar 2007 03:57:54 -0800 Received: from shell0.pdx.osdl.net (fw.osdl.org [65.172.181.6]) by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id l23Bviq8026189 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 3 Mar 2007 03:57:44 -0800 Received: from box (shell0.pdx.osdl.net [10.9.0.31]) by shell0.pdx.osdl.net (8.13.1/8.11.6) with SMTP id l23Bvg68004843; Sat, 3 Mar 2007 03:57:43 -0800 In-Reply-To: <45E93012.4000100@qumranet.com> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) X-Spam-Status: No, hits=-2.951 required=5 tests=AWL,OSDL_HEADER_LISTID_KNOWN,OSDL_HEADER_SUBJECT_BRACKETED,PATCH_SUBJECT_OSDL X-Spam-Checker-Version: SpamAssassin 2.63-osdl_revision__1.119__ X-MIMEDefang-Filter: osdl$Revision: 1.176 $ X-BeenThere: linux-pm@lists.osdl.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: Linux power management 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 Received-SPF: pass (localhost is always allowed.) Archived-At: On Sat, 03 Mar 2007 10:21:38 +0200 Avi Kivity wrote: > Ingo Molnar wrote: > > Subject: [patch] KVM: T60 resume fix > > From: Ingo Molnar > > > > my T60 laptop does not resume correctly due to KVM attempting to send a= n = > > IPI to a CPU that might be down (or not up yet). (Doing so also trigger= s = > > 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. ] > > > > Signed-off-by: Ingo Molnar > > --- > > drivers/kvm/kvm_main.c | 6 ------ > > 1 file changed, 6 deletions(-) > > > > Index: linux/drivers/kvm/kvm_main.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- linux.orig/drivers/kvm/kvm_main.c > > +++ linux/drivers/kvm/kvm_main.c > > @@ -2083,12 +2083,6 @@ static int kvm_cpu_hotplug(struct notifi > > case CPU_DEAD: > > case CPU_UP_CANCELED: > > decache_vcpus_on_cpu(cpu); > > - smp_call_function_single(cpu, kvm_arch_ops->hardware_disable, > > - NULL, 0, 1); > > - break; > > - case CPU_UP_PREPARE: > > - smp_call_function_single(cpu, kvm_arch_ops->hardware_enable, > > - NULL, 0, 1); > > break; > > } > > return NOTIFY_OK; > > = > = > That is already CPU_ONLINE in my tree I noticed ;) So this mean that Ingo's bug should already be fixed there. And in rc2-mm1. > (and in the pull request sent to = > Linus a couple of days ago). Resend, please.