Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4051241ybl; Mon, 13 Jan 2020 07:05:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwoDc8O9ZgFsGop/d9Db9XHnnJ5u06pn5F0qA8un29su+JXBhka1QMz0iLglIPiesSfkQAz X-Received: by 2002:a05:6830:1e37:: with SMTP id t23mr13735858otr.16.1578927910579; Mon, 13 Jan 2020 07:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578927910; cv=none; d=google.com; s=arc-20160816; b=YFVAKPnf2+me010dL1Or88ZCLPHx2R6YYQM5Z1pBAABTewOGytcnxcGtQrhxiUzMiM oJxrX6ciwiVc5Gitr7hlXkalVK44YcCCI+Mzo2HpY/61tz+M4hMdVCSVZID00UpOouqX OySpreRSb0JAPKR/cSQQyn4m+WTx9ZnE/wjZRNHReF93grHwlP63V0sLvooEibYy9CWR CY8PkVxD052qQKPylv8jxtQnEkfbPhB00uTEdMhkE3VMYzsDAzmsj1FbI3Vyi/BTdA35 iPYkw0zs26GeVzbp4yCwacyMMc1CLaL8TkRTZ+09PzzbVeg5vyEjizyfohPTtuxAjLY+ lSbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :ironport-sdr:dkim-signature; bh=00UHMfzPeMYvDihnCksaHgrF7drmY1MfJ5JQC5sgbpQ=; b=iz2NsTO3iY/xsWJWlBOH7IoDPl5MfMVWQ3xzUEb5YEPAdDKQnmXHWwuat4YIXzCJPt wuEQUgX75QXugUsedjhzWcoAG2s+2bGSDJAMSXFRqC/fZv1N/CLjc8he18yPf/4eKXN+ 2sYZ80XH4D0scB4Fw1pC3YKs4FZJZHD8C/Y7wmv1Wc96LgJC2vamydu9Oj7EQuqKmXGX KGEyEawPjW7Xq6IPLZtH5XeCgVmoesUmxpzUu0JaLJVxvdHf4HF69FSHLrw6Ul54Sde8 PdRWyDqM12VDzufh5MjOfeuLL7KgIGVB9OZz73DvJXSMwdNgrtpPCQIDVNGTjmns5a88 +12A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=UNsl+1rI; 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 b4si6005778oib.70.2020.01.13.07.04.57; Mon, 13 Jan 2020 07:05:10 -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=UNsl+1rI; 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 S1729008AbgAMPC3 (ORCPT + 99 others); Mon, 13 Jan 2020 10:02:29 -0500 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:41566 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgAMPC3 (ORCPT ); Mon, 13 Jan 2020 10:02:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1578927748; x=1610463748; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=00UHMfzPeMYvDihnCksaHgrF7drmY1MfJ5JQC5sgbpQ=; b=UNsl+1rIHJYDqXPDRoSDy/mKv9Bw1skfTR6bxcq4933Wobr/cfWhIp/v nOK2AsxXf+EW1s8XItpzefQ611bo6t47rYHMJZksnqu5Jeg9kBDdK862A gHLKB1m6gDMNZ0syf5IPv4GzM3fdSJfqGgzyoMRcBkT+hlqTImSjyEJos 0=; IronPort-SDR: FzL3tFfE8yxBII0BXAQs6wfW7bZNURvXScpp0QJqTzAlVRUbDm7vwoKF8EcLo9brCRfSd+HfIU JWdJu1alPqPQ== X-IronPort-AV: E=Sophos;i="5.69,429,1571702400"; d="scan'208";a="11285542" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-27fb8269.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 13 Jan 2020 15:02:27 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-27fb8269.us-east-1.amazon.com (Postfix) with ESMTPS id E52D9A05E4; Mon, 13 Jan 2020 15:02:18 +0000 (UTC) Received: from EX13D05UWB003.ant.amazon.com (10.43.161.26) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 13 Jan 2020 15:02:18 +0000 Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13D05UWB003.ant.amazon.com (10.43.161.26) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 13 Jan 2020 15:02:17 +0000 Received: from EX13D01UWB002.ant.amazon.com ([10.43.161.136]) by EX13d01UWB002.ant.amazon.com ([10.43.161.136]) with mapi id 15.00.1367.000; Mon, 13 Jan 2020 15:02:18 +0000 From: "Singh, Balbir" To: "peterz@infradead.org" , "Valentin, Eduardo" , "andrew.cooper3@citrix.com" CC: "boris.ostrovsky@oracle.com" , "linux-kernel@vger.kernel.org" , "Agarwal, Anchal" , "Woodhouse, David" , "vkuznets@redhat.com" , "sstabellini@kernel.org" , "linux-mm@kvack.org" , "linux-pm@vger.kernel.org" , "Woodhouse@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com" , "tglx@linutronix.de" , "pavel@ucw.cz" , "jgross@suse.com" , "axboe@kernel.dk" , "x86@kernel.org" , "roger.pau@citrix.com" , "hpa@zytor.com" , "fllinden@amaozn.com" , "mingo@redhat.com" , "rjw@rjwysocki.net" , "Kamata, Munehisa" , "bp@alien8.de" , "netdev@vger.kernel.org" , "konrad.wilk@oracle.co" , "len.brown@intel.com" , "davem@davemloft.net" , "xen-devel@lists.xenproject.org" Subject: Re: [Xen-devel] [RFC PATCH V2 11/11] x86: tsc: avoid system instability in hibernation Thread-Topic: [Xen-devel] [RFC PATCH V2 11/11] x86: tsc: avoid system instability in hibernation Thread-Index: AQHVxbSKwN2FtiBCp0yRN06uTqctz6fgl2OAgAN0VQCABF3RgIAAGFiAgAAVuQCAACHcgA== Date: Mon, 13 Jan 2020 15:02:17 +0000 Message-ID: <34c5d10f1df00345ff7ab2ba91d38a32967b3bce.camel@amazon.com> References: <20200107234526.GA19034@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <20200108105011.GY2827@hirez.programming.kicks-ass.net> <20200110153520.GC8214@u40b0340c692b58f6553c.ant.amazon.com> <20200113101609.GT2844@hirez.programming.kicks-ass.net> <857b42b2e86b2ae09a23f488daada3b1b2836116.camel@amazon.com> <7bb967ca-2a91-6397-9c0a-6eafd43c83ed@citrix.com> In-Reply-To: <7bb967ca-2a91-6397-9c0a-6eafd43c83ed@citrix.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.162.7] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk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