Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp14632pxk; Tue, 22 Sep 2020 17:03:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa5G2gbPtqdv20Myo2DiHI415lAGhvCnyYKduiOlDbO75u+b3dwyh4+IBTs2Wq2x8IYhD9 X-Received: by 2002:a17:906:8245:: with SMTP id f5mr7202709ejx.264.1600819395751; Tue, 22 Sep 2020 17:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600819395; cv=none; d=google.com; s=arc-20160816; b=VLZbPI5ZzsxKSxJFjg0ioAeBJria5ZK0bRe+6iBMqkQGoHb+y5tDB2fSp235TfBZ4u +isFpYBggeLhjAUQF1K1paWsgupHk709n7ffS73OXem+HLKKkiPi5LPY0JKnPXw2xz60 /FHjbMrtNjp79D+mpZ76DMAXDLKhirKVS/pO6zGmWByfsrn5ksGEGNUi9UOnUM362QWN wJj5LGIebhE2VatkwQS3KQr5ux34kiFJohwfbAn48b76Mw4QRuJDj/3Bcc2MNf0rSQJa Z4C0H24SWIYik/L5PobyEeOw+8hdIrT4F2TVAdvaBSupEz6rFVDaS5fk1kWJa8+0K2Ye Hq2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:cc:to:from:date:subject :dkim-signature; bh=5R3Krtkzle1NhoP1m+0L88WAV6llnORnKP70Telk+cY=; b=tFQTbNQez9HI8wMFXpFMu+SlVcXzNcq+U60C7SrKVRWE0ACHhy5ewk34RybfQKMv/+ NMyOcII7t+0pn0Q3KRaFCD5GFDUQHyV5Z1qHww5Zqh+EN53hsjFN5wLjqhAFab8QtnO3 B4gvXiEWmVj8DZ1NMGj+J+LW3omtF3z0KnETgdy7sJo0p4s7iA7of988Qn7vwKd+9H8l KT9l6Z6Wv/aKlFc0WVub+j3gabcCYZyGnCai313IsNhlXWipUv1pVx/aWG+2XRjx42p6 RIjwwdsFWDgBbKmu7RG3v/zL5GGBFf3lX2d7C1c4LzRAcfrHRBIblNZ58uyjWIRv9nZ1 pJuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=IJcFpl9Q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si12664504ejw.227.2020.09.22.17.02.52; Tue, 22 Sep 2020 17:03:15 -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=@amazon.com header.s=amazon201209 header.b=IJcFpl9Q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbgIVXRx (ORCPT + 99 others); Tue, 22 Sep 2020 19:17:53 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:49591 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbgIVXRx (ORCPT ); Tue, 22 Sep 2020 19:17:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1600816673; x=1632352673; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=5R3Krtkzle1NhoP1m+0L88WAV6llnORnKP70Telk+cY=; b=IJcFpl9QCXh26T5Vdj8LU31Kqbuf7YD4MU5ly6hdXCNM8ECbpQsJXwoo FJ9MraRYqA5ozZYnIEWY6YPa/OVCefsdYceX/r+zRCHC7fhL+PuMcvMto DC5/8KlrN1IAiOy0wLoQQesqBCuXq4heD/+pD/ar2w1xe8uyaQzVRYfnJ Y=; X-IronPort-AV: E=Sophos;i="5.77,292,1596499200"; d="scan'208";a="55658258" Subject: Re: [PATCH v3 01/11] xen/manage: keep track of the on-going suspend mode Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-168cbb73.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 22 Sep 2020 23:17:50 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2c-168cbb73.us-west-2.amazon.com (Postfix) with ESMTPS id 84C6DA1C30; Tue, 22 Sep 2020 23:17:48 +0000 (UTC) Received: from EX13D10UWB003.ant.amazon.com (10.43.161.106) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 23:17:36 +0000 Received: from EX13MTAUWB001.ant.amazon.com (10.43.161.207) by EX13D10UWB003.ant.amazon.com (10.43.161.106) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 23:17:36 +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.1497.2 via Frontend Transport; Tue, 22 Sep 2020 23:17:36 +0000 Received: by dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com (Postfix, from userid 4335130) id 81337408C3; Tue, 22 Sep 2020 23:17:36 +0000 (UTC) Date: Tue, 22 Sep 2020 23:17:36 +0000 From: Anchal Agarwal To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , Message-ID: <20200922231736.GA24215@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> References: <9b970e12491107afda0c1d4a6f154b52d90346ac.1598042152.git.anchalag@amazon.com> <4b2bbc8b-7817-271a-4ff0-5ee5df956049@oracle.com> <20200914214754.GA19975@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <20200915180055.GB19975@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <5f1e4772-7bd9-e6c0-3fe6-eef98bb72bd8@oracle.com> <20200921215447.GA28503@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2020 at 12:18:05PM -0400, boris.ostrovsky@oracle.com wrote: > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. > > > > On 9/21/20 5:54 PM, Anchal Agarwal wrote: > > Thanks for the above suggestion. You are right I didn't find a way to declare > > a global state either. I just broke the above check in 2 so that once we have > > support for ARM we should be able to remove aarch64 condition easily. Let me > > know if I am missing nay corner cases with this one. > > > > static int xen_pm_notifier(struct notifier_block *notifier, > > unsigned long pm_event, void *unused) > > { > > int ret = NOTIFY_OK; > > if (!xen_hvm_domain() || xen_initial_domain()) > > ret = NOTIFY_BAD; > > if(IS_ENABLED(CONFIG_ARM64) && (pm_event == PM_SUSPEND_PREPARE || pm_event == HIBERNATION_PREPARE)) > > ret = NOTIFY_BAD; > > > > return ret; > > } > > > > This will allow PM suspend to proceed on x86. Right!! Missed it. Also, wrt KASLR stuff, that issue is still seen sometimes but I haven't had bandwidth to dive deep into the issue and fix it. I seem to have lost your email in my inbox hence covering the question here. > > > -boris >