Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751566AbWCOVf4 (ORCPT ); Wed, 15 Mar 2006 16:35:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751585AbWCOVfi (ORCPT ); Wed, 15 Mar 2006 16:35:38 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:46551 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S1751557AbWCOVe7 (ORCPT ); Wed, 15 Mar 2006 16:34:59 -0500 To: Zachary Amsden Cc: Linus Torvalds , Linux Kernel Mailing List , Virtualization Mailing List , Xen-devel , Andrew Morton , Dan Hecht , Dan Arai , Anne Holler , Pratap Subrahmanyam , Christopher Li , Joshua LeVasseur , Chris Wright , Rik Van Riel , Jyothy Reddy , Jack Lo , Kip Macy , Jan Beulich , Ky Srinivasan , Wim Coekaerts , Leendert van Doorn , Zachary Amsden Subject: Re: [RFC, PATCH 14/24] i386 Vmi reboot fixes References: <200603131809.k2DI9slZ005727@zach-dev.vmware.com> From: ebiederm@xmission.com (Eric W. Biederman) In-Reply-To: <200603131809.k2DI9slZ005727@zach-dev.vmware.com> (Zachary Amsden's message of "Mon, 13 Mar 2006 10:09:54 -0800") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Date: Wed, 15 Mar 2006 14:11:52 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1300 Lines: 33 Zachary Amsden writes: > Fix reboot to work with the VMI. We must support fallback to the standard > BIOS reboot mechanism. Turns out that this is required by kexec, and a good > idea for native hardware. Huh? Rebooting through the BIOS and kexec are pretty much mutually exclusive. Looking at the patch I can't see what you are talking about either. Does kexec successfully work under VMWare? > We simply insert the NOP VMI reboot hook before > calling the BIOS reboot. While here, fix SMP reboot issues as well. The > problem is the halt() macro in VMI has been defined to be equivalent to > safe_halt(), which enables interrupts. Several call sites actually want to > disable interrupts and shutdown the processor, which is what VMI_Shutdown() > does. machine_halt actually is not one of those places. machine_halt does not want to stop the processor. It is very much about killing the kernel and user space but having the software still linger a little. This needs a cleaner abstraction to make sense or go in. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/