Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1644581pxk; Sun, 13 Sep 2020 10:29:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqPiE9f3Prsgv5fBlph3TDndpuv3t7kjEtjscy5fVF8sLxOFXyDecnIO1FfF1qiHjDR4MP X-Received: by 2002:aa7:dcd2:: with SMTP id w18mr13895453edu.288.1600018162628; Sun, 13 Sep 2020 10:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600018162; cv=none; d=google.com; s=arc-20160816; b=lkRwx7snzhT2R2zENSL+q8CTzPBbKVuZoqNcAliQ9omQ9+jZHX43zlQE+Omp/T1H19 HGTzCC4CPBv2/Y18g5YUz3jl7J19C5EPHSAtteVxBcTbfNM1nKFyY6ozgn649yMcDx9Q 8RmGtRxMrlZzmPvX+SKtwAwec6J0wapXL2sAEKKWcKsJVjp0gUOJ6PqGLYXfd9bkwe7n hN9ZCnxz7vuEa7w6FEe8GrX/CKaWB+OEDY7JfOOlUESN6ylRg5fh4txD1+Dpok3dKcc4 +31H6AA/ZYUe1d5t804dUfJZ6FBYKu72hFkhO/tkRNUCWDQVoXVehU+f4qr5xHRM4djT gGnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:dkim-signature; bh=nyBwxCnbYyUWOK+NiyWEbUqCiK98qGPkeLZjwlqCjKw=; b=pbgUss0x22EewoCCoqyCfREG3FaxT6mQMBq2bSR6pXC64xtQTb4MqgJSpJT6v6Q39+ 9UqbP2VQEYtsl3fONINKsO2lu7/CLD3NRteo/3vtGD0AC+kJ3MU72m2Xfvp08ItPym6p MlGIhxdO1Lo2ppt2IMtdBkKeBu6QPssNf3rU0T7v/S3Q0j8H1WjaSyDTGpb+2FarOWOj CinHaTI/rwYs2vqQkjQIbf1WE2pISGBJGrZolzxDiGev4dVxhj6qHq/bwIKs7IAY96n+ gzeOA0Tbir/jMkv/SkhKRADPSfN25WJkLIO9sV3wmTo+Z0JY+OO+MZO+32dbu7hYwFul 9zeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=ZR5aPxz9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v27si5806703edx.611.2020.09.13.10.29.00; Sun, 13 Sep 2020 10:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=ZR5aPxz9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725963AbgIMR0P (ORCPT + 99 others); Sun, 13 Sep 2020 13:26:15 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:42760 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbgIMR0J (ORCPT ); Sun, 13 Sep 2020 13:26:09 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08DHOwpg021278; Sun, 13 Sep 2020 17:25:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=nyBwxCnbYyUWOK+NiyWEbUqCiK98qGPkeLZjwlqCjKw=; b=ZR5aPxz9gSva9xylW6NOtGWoC1ZFSHh+ZcI/7QD2EhfR2/fz1r6q6DgSMmlx1VFCtjh0 c03slDfplrdVWH40rpvHRmf4hqr6smhR5EkrWxypcvmmx1gLB1MkHXT/S8qaFU0OPg74 HPD3Uty0sckSmjuqlgWXNIQgCc5u1eM3tE97f5ZdRSJb3FV7Pyq0bvumbC+SpL6J034Q MaAgmskllCrJFVcwFIIytl/7w1dwUzPOwfz3qSGNgHjk22BzhIX5LCZmKnez17An0oOx KHBz13eC6eGb/hK/BfEHoZ0bREzLVEFpa4jYEy2j5emUlnj2Jrnfq+/ZF6Bi0Nnqa49f 6g== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 33gp9ku6q5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 13 Sep 2020 17:25:32 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08DHPJHh104805; Sun, 13 Sep 2020 17:25:32 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 33h87xvpq2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Sep 2020 17:25:32 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08DHPTvi030996; Sun, 13 Sep 2020 17:25:30 GMT Received: from [10.74.86.192] (/10.74.86.192) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 13 Sep 2020 17:25:29 +0000 Subject: Re: [PATCH v3 04/11] x86/xen: add system core suspend and resume callbacks To: Anchal Agarwal , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, jgross@suse.com, linux-pm@vger.kernel.org, linux-mm@kvack.org, kamatam@amazon.com, sstabellini@kernel.org, konrad.wilk@oracle.com, roger.pau@citrix.com, axboe@kernel.dk, davem@davemloft.net, rjw@rjwysocki.net, len.brown@intel.com, pavel@ucw.cz, peterz@infradead.org, eduval@amazon.com, sblbir@amazon.com, xen-devel@lists.xenproject.org, vkuznets@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dwmw@amazon.co.uk, benh@kernel.crashing.org References: <6b86a4bf71ee3e3e9b0bb00f594a4edc85da19a9.1598042152.git.anchalag@amazon.com> From: boris.ostrovsky@oracle.com Organization: Oracle Corporation Message-ID: <286ac56d-7fd2-66d5-bfcb-6a329afca3d6@oracle.com> Date: Sun, 13 Sep 2020 13:25:23 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.2.1 MIME-Version: 1.0 In-Reply-To: <6b86a4bf71ee3e3e9b0bb00f594a4edc85da19a9.1598042152.git.anchalag@amazon.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9743 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009130158 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9743 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009130158 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/21/20 6:27 PM, Anchal Agarwal wrote: > From: Munehisa Kamata > > Add Xen PVHVM specific system core callbacks for PM > hibernation support. The callbacks suspend and resume > Xen primitives like shared_info, pvclock and grant table. > These syscore_ops are specifically for domU hibernation. > xen_suspend() calls syscore_suspend() during Xen suspend > operation however, during xen suspend lock_system_sleep() > lock is taken and thus system cannot trigger hibernation. > These system core callbacks will be called only from the > hibernation context. Well, they can be called from Xen suspend too, which is why you have the checks in the beginning. -boris