From patchwork Wed May 7 13:05:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 29763 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C833202E4 for ; Wed, 7 May 2014 13:08:06 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id hw13sf2512292qab.11 for ; Wed, 07 May 2014 06:08:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:message-id:user-agent :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=6yDr4w5kruRG6sn8w1adIzncJIFyyJvtVXQAY72LU1Y=; b=eJVrswUQh65cSe+f5fhwl0ExykslWpTaLLWc0SfC21IFSLlJNmMFBpPsBUKLTQ0kMF qidFEEkJwIk5zVRtcucONtRKl9h6r2UWxUISF5EDkG0uuIrOnvUrWX0BalFtC7lYVtq7 hpqFZnG4haBVrPe3n8lGlvtn92UTcp6kaxZZC+hwRnf9UbEQ1p6uh8u42VKvSnn5Xfs8 GR/EOSElPI2Pr/F6u6buR7HqIOX3a16bJUnS6YfPvN3lVnahfVn5dNnOgNqOkroY+MiS MjqX5iSCJIWD6wEzpaOWyMDcPoQwoAfq5GgtHpTM0u4jZ9Mz+8q55xg9bsRg9W950VNt gBIg== X-Gm-Message-State: ALoCoQk1rCwfJiL6NqZoKVGjwDUw8NCHHDjw1iQ4ME91596qCmNKf/SkYLxV2aX6AUIg0PGbZRtY X-Received: by 10.236.69.74 with SMTP id m50mr3893519yhd.0.1399468086297; Wed, 07 May 2014 06:08:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.67 with SMTP id g61ls3342491qgg.12.gmail; Wed, 07 May 2014 06:08:06 -0700 (PDT) X-Received: by 10.52.183.228 with SMTP id ep4mr10857162vdc.30.1399468086123; Wed, 07 May 2014 06:08:06 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id uv3si2597679vdc.59.2014.05.07.06.08.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 06:08:06 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id pa12so1212079veb.12 for ; Wed, 07 May 2014 06:08:06 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr38934377vcb.0.1399468086048; Wed, 07 May 2014 06:08:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp307307vcb; Wed, 7 May 2014 06:08:05 -0700 (PDT) X-Received: by 10.224.16.199 with SMTP id p7mr29176282qaa.76.1399468085459; Wed, 07 May 2014 06:08:05 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id t40si5977686qge.154.2014.05.07.06.08.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 07 May 2014 06:08:05 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wi1XX-0008D7-7O; Wed, 07 May 2014 13:05:39 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wi1XV-0008Cv-1S for xen-devel@lists.xensource.com; Wed, 07 May 2014 13:05:37 +0000 Received: from [85.158.143.35:28338] by server-2.bemta-4.messagelabs.com id AA/9F-06539-0AF2A635; Wed, 07 May 2014 13:05:36 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-15.tower-21.messagelabs.com!1399467934!3364391!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26258 invoked from network); 7 May 2014 13:05:35 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-15.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 7 May 2014 13:05:35 -0000 X-IronPort-AV: E=Sophos; i="4.97,1003,1389744000"; d="scan'208"; a="128588963" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 07 May 2014 13:05:34 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Wed, 7 May 2014 09:05:33 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1Wi1XR-0002Ik-I7; Wed, 07 May 2014 14:05:33 +0100 Date: Wed, 7 May 2014 14:05:11 +0100 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-DLP: MIA1 Cc: Stefano Stabellini , David Vrabel , Ian Campbell Subject: [Xen-devel] [PATCH] clarify SHUTDOWN_suspend additional argument X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: SCHEDOP_shutdown has a third argument that is unused on HVM and ARM guests. Those guests pass 0 instead. Clarify the behaviour in the hypercall description. Signed-off-by: Stefano Stabellini Acked-by: Ian Campbell diff --git a/xen/include/public/sched.h b/xen/include/public/sched.h index a30b11d..c170556 100644 --- a/xen/include/public/sched.h +++ b/xen/include/public/sched.h @@ -77,8 +77,9 @@ * @arg == pointer to sched_shutdown_t structure. * * If the sched_shutdown_t reason is SHUTDOWN_suspend then this - * hypercall takes an additional extra argument which should be the - * MFN of the guest's start_info_t. + * hypercall takes an additional extra argument which should be: + * - the MFN of the guest's start_info_t for x86 PV guests; + * - 0 for x86 HVM guests and arm and arm64 guests. * * In addition, which reason is SHUTDOWN_suspend this hypercall * returns 1 if suspend was cancelled or the domain was merely