Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp915ybl; Thu, 9 Jan 2020 15:51:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwYExHXJM3EQk0qm6Ngnm75rWXy5ZeyvXy5xeq5m3HdViJePi2RkPyyhlD12xz0tlToGqyf X-Received: by 2002:a05:6830:15a:: with SMTP id j26mr313790otp.137.1578613868621; Thu, 09 Jan 2020 15:51:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578613868; cv=none; d=google.com; s=arc-20160816; b=HeKBuqfr0pNtTwwAf5nWrC4faFVyhEIG8RNr3keyNlJUvQ2QXsxy4MCRgAEAX4aVGd XAnDzu1Tf0mcYXf7FYWVA915r7Ci0pWJiVNbpiR8y99X3fhyezoxtrJS8oAQqml87cEq GPidCYX1ynUEf7eQApCtk6HSdm8WD9jNDesfoMsZCNMYHiWeyn8vQXjT1yoYT1ALyBEG pwdAGiNoAliQekLiO34zbAMviu/34QmVmZBhgkd/xVD9F57mMQTXdmAJ92PqJ+asMv0c WdOD0VvF6+s/tGHnRkeDCf9rPma0EQCX+oIC40uu9t1sWAxXe/i//fpjwMNIj2XW+sL3 WwUQ== 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:references:to:from:subject:dkim-signature; bh=d9JtxMjLZbVfmlyhMLAFcumf9Weh4khNDXMC9OowByU=; b=eVu05XQr1sKqYn9ovRfY890PVm9ymc2En8d8tAZ6ad9W5cnKhVP/FjxB1FtVOcLlTk 5HzPqQDJHXQvaauEdXun/V4bF7JGTgxBqKEcyjWdMSaUsMSCbLDALU8gWZ4DY3EGko8o Mo8xIrIvKBKkhHFIEHYaiX/D9+BfCWCKNX4RFA66ezBRvN2YcdducCl4xmWU33WkLSuE ffQ+prV0K2s+ApJHezabMB/NruZtawTG9mfsF6GHaRh98m36RkyAD6rJQ7sOi4tKarGb I1wTX/WsLU7OesYfr3SVTGCFV/mu0pGjjRCT0kl56c+DfGAchdDC1dNmh1n5U2kIFIvH eaZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=NecdLtd9; 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 v202si50859oie.79.2020.01.09.15.50.56; Thu, 09 Jan 2020 15:51:08 -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=NecdLtd9; 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 S1729512AbgAIXtx (ORCPT + 99 others); Thu, 9 Jan 2020 18:49:53 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:39028 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728241AbgAIXtw (ORCPT ); Thu, 9 Jan 2020 18:49:52 -0500 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-Transfer-Encoding: 8bit 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) >> +{ >> +    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. I obviously meant *not* supporting ARM, sorry. -boris > > -boris > >> + >> +    return register_pm_notifier(&xen_pm_notifier_block); >> +} >> >