From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E07A2C282DD for ; Thu, 9 Jan 2020 23:49:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9960F2073A for ; Thu, 9 Jan 2020 23:49:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="NecdLtd9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9960F2073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 34B3A8E0005; Thu, 9 Jan 2020 18:49:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2FBAA8E0001; Thu, 9 Jan 2020 18:49:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E9898E0005; Thu, 9 Jan 2020 18:49:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0157.hostedemail.com [216.40.44.157]) by kanga.kvack.org (Postfix) with ESMTP id 08FFB8E0001 for ; Thu, 9 Jan 2020 18:49:32 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id C0CC263D for ; Thu, 9 Jan 2020 23:49:31 +0000 (UTC) X-FDA: 76359740142.24.fang50_703f7c4661218 X-HE-Tag: fang50_703f7c4661218 X-Filterd-Recvd-Size: 4697 Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Thu, 9 Jan 2020 23:49:31 +0000 (UTC) Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 009Nmqum179731; Thu, 9 Jan 2020 23:49:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=d9JtxMjLZbVfmlyhMLAFcumf9Weh4khNDXMC9OowByU=; b=NecdLtd9CrIf1BHCVKW+DxXL8AZg4MWZI62vwXbOuT8SE/lP2jl2QAuQZBrguc0IhnEi wpnMbnArM4eNOp7hMEI9cxuMPvWyHwHp0fY+AYrTHART5KEi54GPypiC6WZEXsa74xRP tkcMkSPzldfNzutjAzFI5l2iqTR5j4LlYj0CW03iACV4t9vuawIsnkDZhU1wft+pky7q P0HNvFAAyz294RoLaTsVua0artLyWdddzqsUsjzuzHQjLGPuZF+jbe2t3PU0J4ARXQDZ iBWA8+wx9vK0PiJa3iQDz/f/RVjAE3DpjKF+FE5qH2ZxK0Omc3qzcpRshaK1tWkpRboJ ew== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2xajnqe4dt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jan 2020 23:49:12 +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 009NmnwJ105792; Thu, 9 Jan 2020 23:49:11 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2xdms0bcgn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jan 2020 23:49:11 +0000 Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 009Nn9AW008309; Thu, 9 Jan 2020 23:49:09 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:49:09 -0800 Subject: Re: [RFC PATCH V2 01/11] xen/manage: keep track of the on-going suspend mode From: Boris Ostrovsky 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> <88721569-d425-8df3-2ab2-3aa9155b326c@oracle.com> Message-ID: Date: Thu, 9 Jan 2020 18:49:07 -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: <88721569-d425-8df3-2ab2-3aa9155b326c@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed 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-2001090199 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=1015 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-2001090199 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 1/9/20 6:46 PM, Boris Ostrovsky wrote: > > > On 1/7/20 6:37 PM, Anchal Agarwal wrote: >> + >> +static int xen_setup_pm_notifier(void) >> +{ >> +=C2=A0=C2=A0=C2=A0 if (!xen_hvm_domain()) >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return -ENODEV; > > ARM guests are also HVM domains. Is it OK for them to register the=20 > notifier? The diffstat suggests that you are supporting ARM. I obviously meant *not* supporting ARM, sorry. -boris > > -boris > >> + >> +=C2=A0=C2=A0=C2=A0 return register_pm_notifier(&xen_pm_notifier_block= ); >> +} >> >