Received: by 2002:a25:fc0a:0:0:0:0:0 with SMTP id v10csp2542290ybd; Thu, 9 Jan 2020 15:48:49 -0800 (PST) X-Google-Smtp-Source: APXvYqw9bpiH6KAr6p6zBLRR3XHsqPILA/fqguEsdWNpH6/b9QbudVCAQCLQiBCWrnlS0LGRh+bE X-Received: by 2002:aca:be57:: with SMTP id o84mr21316oif.138.1578613729455; Thu, 09 Jan 2020 15:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578613729; cv=none; d=google.com; s=arc-20160816; b=zUejrRPoWOK/El+fJNCpIhhLqUXjjzujl5wmHDu/gYAppIBmlspqk65D+Jr7auo5wG wNdgm0mVpZ/3I9ly0Hs62bWFtb8xAfLB30t6kwf69V46r+PFyxgFp1nsShemgPdx6bHG ofrvEBiHqmPM3dwONVctWcVyZYM/Oi/X0lM+cug1HkyBqcc1kwzu20tPXYLf6IwpBHsU O4Fvr3A8KefjpPpANW2VTXPcZITyTCozwpReWKEXt3GTtZeXaeyREDuz3oOt1kbgjYn4 z8ehqqKtZf7Ji0qu5m5diKRntbJHDpaXD5WM9XBLw1/FP+bU4S7JmB01K5BR0bESfk0e mPBQ== 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:from:references:to:subject:dkim-signature; bh=nRKnwHomok/PpPFwHMvZtyTJWnTH8Av6uYkXPJFr5L0=; b=ibc7BJII+iZ5B6XgbReaobm4K1Pq+TXOa1s/T0jo7bgduoohR8UgTYtqVLQmdhUeL1 tAJ6NfVSpiV1BI3Ewg6GY427Tj97jEN+MsN1Qtgt5ZVBGVgY5u/I17TWZ3AMqd2+e+cF J50myt/sM0km3v4WH8Qz9bQ1fT+y5C7EKxI8tGGj+wJdanp/CGXiOXSH9+vOxrWLnhrK +YNg89Xo+xuac1gN/xKfHh4mb3QrWpox8vgUEzPZNnoalg3LmlBy7sZPJJNlAm5oCsOF XHUAYw2GpL5jhXf3lciPfkAFwVOoViQQ6Q6P+YqZeS78WgYFaENGUjc0QTx3gQhIF/nB nt5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=A+1qXt2w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id c7si65714oto.305.2020.01.09.15.48.26; Thu, 09 Jan 2020 15:48:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=A+1qXt2w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729321AbgAIXr3 (ORCPT + 99 others); Thu, 9 Jan 2020 18:47:29 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:35242 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgAIXr2 (ORCPT ); Thu, 9 Jan 2020 18:47:28 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 009NccQb003715; Thu, 9 Jan 2020 23:46:23 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-2019-08-05; bh=nRKnwHomok/PpPFwHMvZtyTJWnTH8Av6uYkXPJFr5L0=; b=A+1qXt2wKxmM3O0bCR4wk11/+OHX6zPymnH2xGsRDPxDOgPP36J7gWvT50+GAborHaRr orzlH4nhv17YJJZ1HUyBcRJBd5lQoRsr+SW68bga+0ez4jaFItUmrfPRU+7hOnoPk877 Zi4WLc7wwbvqV/f4UCx80CugqpR9UEx7Hs5Cr0JynkTioE453a2Dw7u9+iijqk7AGlP4 S7kclCvN7Tfb9M9TKQIyH+WXWGlb7G9rbVVJGssLyMxgGJ1dCgU+F9py4/iHPta9u/nl fs3NAZrv+JwM/acsSR+todj4Km0Ok/PckbiUPQC+IhFyH+1Sp5ISntCzDbNM1aJZvbQF WA== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2xaj4ue8qa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jan 2020 23:46:23 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 009Nd1pj089807; Thu, 9 Jan 2020 23:46:23 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2xdms0b9ew-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jan 2020 23:46:22 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 009NkKGp001333; Thu, 9 Jan 2020 23:46:20 GMT Received: from bostrovs-us.us.oracle.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 09 Jan 2020 15:46:20 -0800 Subject: Re: [RFC PATCH V2 01/11] xen/manage: keep track of the on-going suspend mode 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.co, 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, Woodhouse@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com, dwmw@amazon.co.uk, fllinden@amaozn.com References: <20200107233720.GA17906@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> From: Boris Ostrovsky Message-ID: <88721569-d425-8df3-2ab2-3aa9155b326c@oracle.com> Date: Thu, 9 Jan 2020 18:46:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200107233720.GA17906@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9495 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001090198 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9495 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001090198 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/7/20 6:37 PM, Anchal Agarwal wrote: > + > +static int xen_setup_pm_notifier(void) > +{ > + if (!xen_hvm_domain()) > + return -ENODEV; ARM guests are also HVM domains. Is it OK for them to register the notifier? The diffstat suggests that you are supporting ARM. -boris > + > + return register_pm_notifier(&xen_pm_notifier_block); > +} >