Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp58409ybl; Thu, 9 Jan 2020 16:59:30 -0800 (PST) X-Google-Smtp-Source: APXvYqze8NWvsYE6eK/DByEsbt+PoSIXg9Zhu75rWRUsYu0YS5Q0Is3+J5PjJNymk3bSxZCibdOr X-Received: by 2002:a54:4e96:: with SMTP id c22mr220174oiy.110.1578617970667; Thu, 09 Jan 2020 16:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578617970; cv=none; d=google.com; s=arc-20160816; b=z89Z3KsT3IBmEkg+aDPi3f6SzCqDRH35rwNtMbVa+S+FuJOcSn6Ta40aE5xfHYMNoH n7TtyNRM+6bjx0wtaqUvo5kpyfkc9eDKvwbTJcEhPpqIWUC93gnQ2TsrBBpy3N1LtNdG WYVucaKg/FcHHxyNhSAeqOkTirSZt9S0332pylvdmEBxcW0pIvUV5w4f6drLl5RO761a p062yqSJsHFSOvOhh5hoYgyv9lEHuYuzM4tArJuFqUke+T5OicAXH8FprdzbN/ojXVJg swn31gfuAoxmIPdCdgYr+6aofLgWrKedd4KETWBEci0jAXwCDzaVKSIKUbsCtpnJEAay ZM2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :dkim-signature; bh=gFWTLYKX2wEcgFfZMvELsMKmvJakxFojhlZCDgHoKHg=; b=YU79n85sgDNM+dNeth6fIFc5gnPH/oFQ75vhAMMjgFlGJvXFl0ZVjURzIPc5u0xv9R Xtw3B16s9VloklAzW9TMtsM5LdvYJsvCP+XM2plciImVb6dt59FX0rCScBdlO7qm8Vs4 DnpDwXCO8FddfXEDIDFtdP/W48dyGu5uuQh1+Qerpo7laTJB0BrOJZzPaDI6kbq5P1ka 2hQ9/f7wJvkr/hBZdmzsgaCZLf98XENyOXyrZnUAWFfiDLFjH2aMtKRDoG52J1iafnh6 2LGobEcXihZflJ1nFEXX4mh3QG2fn7Vt9FRo2y1SnCXI9YzzwPFTi+zv8sawO0XO0l6K tarQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=U7GKw8Jh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si154599ota.299.2020.01.09.16.59.18; Thu, 09 Jan 2020 16:59:30 -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=@amazon.com header.s=amazon201209 header.b=U7GKw8Jh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730408AbgAJAyY (ORCPT + 99 others); Thu, 9 Jan 2020 19:54:24 -0500 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:18038 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730385AbgAJAyX (ORCPT ); Thu, 9 Jan 2020 19:54:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1578617663; x=1610153663; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=gFWTLYKX2wEcgFfZMvELsMKmvJakxFojhlZCDgHoKHg=; b=U7GKw8Jhmg28KGS2rH3tbfnmhFi2Shc9gGMHZFzICGLHJdE/Eobu19B8 lWijGG8pNWbEeGxLBXOIzUbDtDsVwP38ccgEHdFUzwQStmC4Hd8JypjE1 7GQJ0KAxFnDu+V7xj0tBhBe5x+OOHMjYOtpGOmscWaNWtzkqCcAXuSvOH M=; IronPort-SDR: vrQ2rPHO9WRjY8NbeMG8xCyVhFjs61ZAlZ1Xu5GgYue07j+xSBWWpbZpefhBRW+H/Yq4LaxKAh CmVfjKPeYQZQ== X-IronPort-AV: E=Sophos;i="5.69,414,1571702400"; d="scan'208";a="12337450" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-397e131e.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 10 Jan 2020 00:54:20 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2c-397e131e.us-west-2.amazon.com (Postfix) with ESMTPS id 61930A01F7; Fri, 10 Jan 2020 00:54:18 +0000 (UTC) Received: from EX13D01UWB001.ant.amazon.com (10.43.161.75) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 10 Jan 2020 00:54:12 +0000 Received: from EX13MTAUWB001.ant.amazon.com (10.43.161.207) by EX13d01UWB001.ant.amazon.com (10.43.161.75) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 10 Jan 2020 00:54:12 +0000 Received: from dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com (172.22.96.68) by mail-relay.amazon.com (10.43.161.249) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 10 Jan 2020 00:54:12 +0000 Received: by dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com (Postfix, from userid 4335130) id A7D9340E78; Fri, 10 Jan 2020 00:54:12 +0000 (UTC) Date: Fri, 10 Jan 2020 00:54:12 +0000 From: Anchal Agarwal To: Boris Ostrovsky CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC PATCH V2 01/11] xen/manage: keep track of the on-going suspend mode Message-ID: <20200110005412.GA2095@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> References: <20200107233720.GA17906@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <88721569-d425-8df3-2ab2-3aa9155b326c@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 06:49:07PM -0500, Boris Ostrovsky wrote: > > > 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 > > TBH, I have not yet experimented with these patches on ARM guest yet but that will be the next step. The same code with changes as needed should be made to work for ARM. Currently I am focussed on getting a sane set of patches into mainline for x86 guests. Thanks, Anchal > >>+ > >>+??? return register_pm_notifier(&xen_pm_notifier_block); > >>+} > >> > > >