Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2294390ybg; Thu, 30 Jul 2020 16:08:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzezDUcd2ZrRWOtFBqCfyV0ZTst329xiIteXFPqvOchSE5BRrmKmVP62KMDrBpeBOR7MtT4 X-Received: by 2002:a05:6402:13c4:: with SMTP id a4mr1320331edx.108.1596150532109; Thu, 30 Jul 2020 16:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596150532; cv=none; d=google.com; s=arc-20160816; b=dQ52sPhZI7HXMPwZVg4LbfPe0zx/lDCEjdb+6629x+W1up7hiFoGyJmiCL2hvdOPCm EPTN4DYEL3wkDuw1kzVCXhQ3aArODHGiqy+O4GRYy9YWs+MOqcz+Xm3Un23wPO0ht2pE Ua6YOu1i6u8IQ3zwgGMblcYmMpAi1S9PBu6lx5my+U7laV7yPyY/CNEPnSanv3xZHL4M tJgw8nWYeVhZJ1QckBLyJTUWQq/CFX7Uz8SeBgHiyi+Dr+rbP+6n7HMwpWPBTJNWkRor 3V01eHa8BRYCGXfKg+L7SdvV7fvd9ertOusmv07f7kJYh8zcOyf5YPb6nsWN5zeoFlHF 6V1A== 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-disposition:mime-version:references:message-id:cc:to:from :date:subject:ironport-sdr:dkim-signature; bh=7vMrFvtUTBg/lhMoMFfi8NrSvzxD5ruFtgpTJwVUKIE=; b=kkqcSI0HCUJR/x4Pr+OSgk+nXrWDIeBq/V864fn0YF70XnL2w8w6/W4Qqc8hRDvWUb hJjVZanNssQOI9fLJf7uTrDVqf9+pHE8TiJIJ7RmZgaEj+QqryfOtRveNhFBv7G3zV/f 08kCBTzuoXonuTDimwbU505+Dm4ZlWeIs4RJfEHT8Im/Qzx58I3EE0aSZWtYkQaq0gA9 sSYp42hWqj9PQNvVkyky2sHD1DYvtpELFJYO2Kfe6T8dQ49kbHL7Y1J5tySraDHjFhnt vtkqm8sPq+ftLZFbkCcrOl8JYteL+92hx+Llh4mW/zkAWDjJuwUgnq1HFyDGMerDEJvA RpgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=f3Ve0iJP; 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 d8si1579984edq.177.2020.07.30.16.07.15; Thu, 30 Jul 2020 16:08:52 -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=f3Ve0iJP; 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 S1730695AbgG3XHA (ORCPT + 99 others); Thu, 30 Jul 2020 19:07:00 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:10824 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729995AbgG3XHA (ORCPT ); Thu, 30 Jul 2020 19:07:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1596150420; x=1627686420; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=7vMrFvtUTBg/lhMoMFfi8NrSvzxD5ruFtgpTJwVUKIE=; b=f3Ve0iJP/GTxNZ8Sy0ZyZA/rVceEoPt/2ymn3zvTrutSV/Lh7NT1d8o+ Q7diDvLuLezlrrL8A2BIU2F+RBEap58T2UGoY3r+87U4rys5fAnKi53gx IuPPaic8LxEDeTd/zjBChTupF+n35y1UHjsHYonhej/DCgKjQfNvt1DTu 0=; IronPort-SDR: QtZ+XaoPa1wpxqYDTq2G1f0sXs4cmexTY/A+g/lEhuRJZ3WCcxB5sOu3b78fnTjQ8rKbrbn3ky jsdilpsZgCJg== X-IronPort-AV: E=Sophos;i="5.75,415,1589241600"; d="scan'208";a="64407396" Subject: Re: [PATCH v2 01/11] xen/manage: keep track of the on-going suspend mode Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 30 Jul 2020 23:06:55 +0000 Received: from EX13MTAUEE002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com (Postfix) with ESMTPS id 143F3A2573; Thu, 30 Jul 2020 23:06:47 +0000 (UTC) Received: from EX13D08UEE001.ant.amazon.com (10.43.62.126) by EX13MTAUEE002.ant.amazon.com (10.43.62.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Jul 2020 23:06:35 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D08UEE001.ant.amazon.com (10.43.62.126) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Jul 2020 23:06:35 +0000 Received: from dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com (172.22.96.68) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 30 Jul 2020 23:06:35 +0000 Received: by dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com (Postfix, from userid 4335130) id BFA4640384; Thu, 30 Jul 2020 23:06:34 +0000 (UTC) Date: Thu, 30 Jul 2020 23:06:34 +0000 From: Anchal Agarwal To: Boris Ostrovsky CC: Stefano Stabellini , , , , , , , , , , , , , , , , , , , , , , , , , Message-ID: <20200730230634.GA17221@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> References: <20200717191009.GA3387@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <5464f384-d4b4-73f0-d39e-60ba9800d804@oracle.com> <20200721000348.GA19610@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <408d3ce9-2510-2950-d28d-fdfe8ee41a54@oracle.com> <20200722180229.GA32316@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <20200723225745.GB32316@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <66a9b838-70ed-0807-9260-f2c31343a081@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <66a9b838-70ed-0807-9260-f2c31343a081@oracle.com> 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 Mon, Jul 27, 2020 at 06:08:29PM -0400, Boris Ostrovsky 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 7/24/20 7:01 PM, Stefano Stabellini wrote: > > Yes, it does, thank you. I'd rather not introduce unknown regressions so > > I would recommend to add an arch-specific check on registering > > freeze/thaw/restore handlers. Maybe something like the following: > > > > #ifdef CONFIG_X86 > > .freeze = blkfront_freeze, > > .thaw = blkfront_restore, > > .restore = blkfront_restore > > #endif > > > > > > maybe Boris has a better suggestion on how to do it > > > An alternative might be to still install pm notifier in > drivers/xen/manage.c (I think as result of latest discussions we decided > we won't need it) and return -ENOTSUPP for ARM for > PM_HIBERNATION_PREPARE and friends. Would that work? > I think the question here is for registering driver specific freeze/thaw/restore callbacks for x86 only. I have dropped the pm_notifier in the v3 still pending testing. So I think just registering driver specific callbacks for x86 only is a good option. What do you think? Anchal > > -boris > > >