From: "Jan Beulich" Subject: SHUTDOWN_suspend Date: Thu, 17 Jan 2008 17:04:42 +0000 Message-ID: <478F98BA.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Could someone explain to me the mechanisms by which the SHUTDOWN_suspend sub-command of SCHEDOP_shutdown is handled? I am namely having a hard time finding where the non-zero return code unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c:bp_suspend() checks for gets injected. Besides that it puzzles me that this is being used differently by the pv-on-hvm drivers and the ones on a pv kernel: the latter pass an extra argument, the consumer of which I again cannot seem to be able to find. I'm specifically interested if it is valid to replace the pv drivers' use (through HYPERVISOR_shutdown()) with a call to HYPERVISOR_suspend(), and whether in that case passing just any value for the 'srec' parameter is possible. Thanks, Jan