Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp945106imm; Wed, 13 Jun 2018 10:43:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkBF3b3rxWu/VbDYuIWXCh4Wx3apsJ5e5+Wg0WGmD79UK/LEal8jnX2hqFJWYw9VdA1TYe X-Received: by 2002:a63:ac57:: with SMTP id z23-v6mr4712020pgn.394.1528911833781; Wed, 13 Jun 2018 10:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528911833; cv=none; d=google.com; s=arc-20160816; b=ekv19P7kXjpLQYA+TLFlpmWleKyMXj+poi2n2FyIvNyXL/98lh4ZAxS9L4c60ZXSCj ugalqFgg+Br6aujHyugpX8CAprE8X7/4HrEg1M/aLcY+LACd/ttcy68Knl0Z7fUoHZhd k2930UFxULPeWHQGyLjNagrAbBvkP4Vrq/epB+3GCmDmPxIFobo9FPPbNw1dLkYhMRso bEk7M7Fv1KSWgnJRIrOeeru6jpI4FIypGXwN/bwoMOaDQl84NXzpxtpuyG1lx4WcYekg noqqUhVLaNSbvYPFtbSoXQOnw/NFmg0bYry0m+ngIB7ABOMxcyLloHRNED6f3k+BjKfh 8Y4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Hdfke7xyHfX+4uznM6VQtOrySiq8rWl/NTKolzN4WIM=; b=jyoar5+RTQWVAKtyzFIRg05Kuw/DmPr5Fd25QBxLhpr9/XTDqBJ3pYIrWjy7QcajiF Qwz/83IDesqtwi0vOF79gNCGeqaFPzkXHbLwuwWUJv0m+IUBkCUbOoPNoDss4NUVSgYS 449jqAQE64L3wAXMRqjx1FO0F8fOeyGYWFu3yNevilf7aOtAHy+9CuvtpEtBAGsO/amh N2rbQJ9pHfcpSZe+JlLVStELp/LN911MZ9Wmj8mammQYiCdho9pZlwOAaZXWOeVepA3x EVjubB7iizmVYFmPljALtIPswPTQtzjXPqVPWAJFgWR+3Wh4Jq9Yh8uBru5Yw56d0oiR hDIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XHJUlyT5; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si3150505pfk.93.2018.06.13.10.43.39; Wed, 13 Jun 2018 10:43:53 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=XHJUlyT5; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935256AbeFMRl7 (ORCPT + 99 others); Wed, 13 Jun 2018 13:41:59 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:42293 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934737AbeFMRl5 (ORCPT ); Wed, 13 Jun 2018 13:41:57 -0400 Received: by mail-vk0-f68.google.com with SMTP id s187-v6so2024220vke.9; Wed, 13 Jun 2018 10:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Hdfke7xyHfX+4uznM6VQtOrySiq8rWl/NTKolzN4WIM=; b=XHJUlyT5cMAV5qwgXQyV1PuaptE2vrhaIg1s8fzTw6Huv2h26OaXxjPLs1YUSYXVwr efSuoRp4Palj4OUYPpB8l0sqNO8Ve7oqCMRC1F7F+CCj++TNubecrch/H6js3gf6LKB9 3Idh5/3PLiALi/9yjdojQXnaM1xMYcvkobUcNpjDfxst4cdG6Nv2CRWwpFR7v8SRk/zm vM9uuJdm729Otw/LyeJrEgBXNwNR38bNGylMjnSW5IGIAriT1ESFvhbl7mKrwdMyUjlB R99Qgq392fJ9rrdpNLkySEcJ6CsVDLKWyngbln4x8embYlDNB2kp2Fvt6zHDyoB6sO1F Bbxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Hdfke7xyHfX+4uznM6VQtOrySiq8rWl/NTKolzN4WIM=; b=tjnT3jvm5ZuKRI3HeKQ3bTF8CEuSmEKV1DpykQ1AbRhZiBEW17gA14GM8c6b5XwaKh zJQyUML0xdyMUjMENF9wiOqh9kV/pNgJdQEdO0fUpg5MPXiiJtpD2kOCIg9sofSH/4My lT1KNJBORHiocau18WC+SAOmsA8nHTQRxStmXaSdd1xdQUi0gPmU430T4IyHRxPUVR5S YSz/76DQdq0sXSmAIamfp/yLRMJ3j43DXk7dm2F9gMa0tuhe0N12SWYYi6S1+1IRzlLj IM1yCGjb88YPv5qV+7y93KHCRkAm8Jv61U8PmXuNPiGzY/AYdSxps70WCZxTKjTGIfGW 5BKw== X-Gm-Message-State: APt69E0xnYzRh3Z+JrvX5zOqM3qrjGC3N/MLDwWP5OTjqrqxSQJctnk+ 6jIrzZVRkADaU05XA0kCuLDURmPfQysQFJC/OMM= X-Received: by 2002:a1f:ae96:: with SMTP id x144-v6mr3652647vke.52.1528911715846; Wed, 13 Jun 2018 10:41:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:549e:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 10:41:55 -0700 (PDT) In-Reply-To: <20180612205619.28156-3-anchalag@amazon.com> References: <20180612205619.28156-1-anchalag@amazon.com> <20180612205619.28156-3-anchalag@amazon.com> From: Balbir Singh Date: Thu, 14 Jun 2018 03:41:55 +1000 Message-ID: Subject: Re: [RFC PATCH 02/12] xen/manage: introduce helper function to know the on-going suspend mode To: Anchal Agarwal Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, roger.pau@citrix.com, netdev , jgross@suse.com, xen-devel , "linux-kernel@vger.kernel.org" , kamatam@amazon.com, Frank van der Linden , vallish@amazon.com, guruanb@amazon.com, eduval@amazon.com, "Rafael J. Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org, cyberax@amazon.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 13, 2018 at 6:56 AM, Anchal Agarwal wrote: > From: Munehisa Kamata > > Introduce simple functions which help to know the on-going suspend mode > so that other Xen-related code can behave differently according to the > current suspend mode. I'd squash this patch with the previous, the previous one just left too many open questions about how suspend mode is used. Looks like suspend mode is a state, but I am not sure if valid transitions are defined/checked? Balbir Singh.