From patchwork Thu May 8 15:43:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 29845 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3D42820534 for ; Thu, 8 May 2014 15:45:58 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x3sf7955088qcv.11 for ; Thu, 08 May 2014 08:45:57 -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=rXcjubx7FyQPNAw8yf6YK38Le0RezRLZ62PTIqeHyTg=; b=GbsQk5iXeSljYjdbXPu4uvFCesz9p7w3lNU4+dL1Wln5Waf0toJRjfkbDQmNUJb/Iy eG2WW/4bLuX4mJFAj+vGHdZYfjLdJnM7iZPE9CoPKQvjNsZcWb86UI1lBVx/aiHreHa3 hjUyC+pmgPuZLW7MmPwoBasdMSspyWLQb2Gc+0QicBjCus5VvxX5nT+G1CorJouXkiOy qjDc3HoFH8zUEDROW9xOnd94PCEMowMJ2U6TCxx3+cAn5Ao7LjutrvZh5Prko4O+1Z6J Yw1lS5b/41/GUfFwZ4VWMqfBY3WgM1rfs6J8/xYDSWY3Cbs+x1VV5L1W6gtIwVSjviaa lCOw== X-Gm-Message-State: ALoCoQnKgK6NFW4Q7VKX8n7NPljsQMihwxkDgzk6dfjRT5RyOZ45mZEl1ywDP3J+B9kKDyaamWP1 X-Received: by 10.236.142.101 with SMTP id h65mr1727401yhj.1.1399563957956; Thu, 08 May 2014 08:45:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.42 with SMTP id 39ls4056138qgq.26.gmail; Thu, 08 May 2014 08:45:57 -0700 (PDT) X-Received: by 10.220.69.72 with SMTP id y8mr3653777vci.21.1399563957797; Thu, 08 May 2014 08:45:57 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id gq7si240508vdc.104.2014.05.08.08.45.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 May 2014 08:45:57 -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.177; Received: by mail-ve0-f177.google.com with SMTP id db11so3482220veb.36 for ; Thu, 08 May 2014 08:45:57 -0700 (PDT) X-Received: by 10.58.116.175 with SMTP id jx15mr3685529veb.9.1399563957723; Thu, 08 May 2014 08:45:57 -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 ib8csp2386vcb; Thu, 8 May 2014 08:45:57 -0700 (PDT) X-Received: by 10.224.20.196 with SMTP id g4mr6089132qab.66.1399563957181; Thu, 08 May 2014 08:45:57 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id 33si676075qgi.124.2014.05.08.08.45.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 08:45:57 -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 1WiQUP-0001fj-Ms; Thu, 08 May 2014 15:44:05 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WiQUM-0001fb-8k for xen-devel@lists.xensource.com; Thu, 08 May 2014 15:44:04 +0000 Received: from [85.158.137.68:9658] by server-9.bemta-3.messagelabs.com id EE/68-30063-146AB635; Thu, 08 May 2014 15:44:01 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-3.tower-31.messagelabs.com!1399563839!2703817!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6161 invoked from network); 8 May 2014 15:44:00 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-3.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 8 May 2014 15:44:00 -0000 X-IronPort-AV: E=Sophos; i="4.97,1010,1389744000"; d="scan'208"; a="128134079" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 08 May 2014 15:43:32 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.3.181.6; Thu, 8 May 2014 11:43:31 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WiQTr-0005LX-EN; Thu, 08 May 2014 16:43:31 +0100 Date: Thu, 8 May 2014 16:43:08 +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 v2] 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: Clarify the behaviour of SCHEDOP_shutdown: PV x86 guests need to pass a third argument, that is unused on HVM and ARM guests. Signed-off-by: Stefano Stabellini diff --git a/xen/include/public/sched.h b/xen/include/public/sched.h index a30b11d..4000ac9 100644 --- a/xen/include/public/sched.h +++ b/xen/include/public/sched.h @@ -76,9 +76,10 @@ * Halt execution of this domain (all VCPUs) and notify the system controller. * @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. + * If the sched_shutdown_t reason is SHUTDOWN_suspend then + * x86 PV guests must also set RDX (EDX for 32-bit guests) to the MFN + * of the guest's start info page. RDX/EDX is the third hypercall + * argument. * * In addition, which reason is SHUTDOWN_suspend this hypercall * returns 1 if suspend was cancelled or the domain was merely