Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3893991pxb; Tue, 26 Jan 2021 07:22:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCvpRAWCrRCQ5vkTTknqRDXeF1Go/FWTfblD+3xEvIPlsWUk43OqJtSbNdQJl9DA/mFfH5 X-Received: by 2002:aa7:d288:: with SMTP id w8mr4975367edq.241.1611674560515; Tue, 26 Jan 2021 07:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611674560; cv=none; d=google.com; s=arc-20160816; b=YH5qZjz4i6mL/ql5kOwaD5SUCidqk4rWvsBIAIcNjhwo06epYrECNFWZ8GnqfFHBnu nzG3GRb9g5B0HuXUKUZhj1gTKno0cqaeRen4jB4ZLpA9MRTH9ffkWESgnR8dHugvvR3r ERwkPVpEkT91azG6kVxmVnRM0mXam+VBVgyFa1JHcgieVI9klppnN6Excv0efFS0RPIb vXnTrMS53bsV3rvlpvPs8rMjR46L1VW26guvjPSKVDubgNxeSwHQYcrDv7EemdTToXae YurlaOY2JSLWZZqoj9FgQSCj0DHWZFA5d99XBepwS7qP0F/D5JtBvGqVc/OvWPeQsFr9 4MOA== 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:subject:cc:to:from:date; bh=460NPPZwyIUmxq4OnFGdo8FcYglMWQ0+AliFnnOiLnM=; b=QY70z2syVPGpfw7YUPNBQiPLFMaMlSYWfnG+3N/iF3kV1dpKr+FRTl/v5OLDwMs+KW 9zvujTY+LPOWIru476xq1C/dYmPjl7hUllscoxGR27v2aVgP/7jZxV+6LARbYexfBKFE YwNn58DDiuZQ8085qBDzWP6u4CjdFKXzgnbZ9iFQsL3WLZRF9lvThRt4D0wSB5jvazfn xIHldgif5HKQfxWRthFaeK1F6pBrr0xsB641AkckImhVOIZ9IR+XmSlsXmAgsUGWPUIf CdpYikLj/YqbWM4c3Lv2Y9GhyORO9fZKjKNBXRTOSoyYZmeoP4HDl6EFSHgx61rRXX9o JUiQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si8798349edn.219.2021.01.26.07.22.15; Tue, 26 Jan 2021 07:22:40 -0800 (PST) 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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406305AbhAZPUx (ORCPT + 99 others); Tue, 26 Jan 2021 10:20:53 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:42809 "EHLO mail-wr1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391796AbhAZPUl (ORCPT ); Tue, 26 Jan 2021 10:20:41 -0500 Received: by mail-wr1-f49.google.com with SMTP id h9so6634379wrr.9; Tue, 26 Jan 2021 07:20:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=460NPPZwyIUmxq4OnFGdo8FcYglMWQ0+AliFnnOiLnM=; b=iti1bZz1pOUuri9X1BYmMUlf3aj/FKBo2G1LohP9q3Etw5cQihAsRlFChpPIecVPQ3 PJIzkoQ9LzXHnwhZOXiknxwBja43wd3TK+84FskTJvewsKqNuEvbnP3tTEdwimQ+lIzo jbKW+y3PD2sj/n6w/WigRUgxMf3EzgAPGcwv40tOLsc52MI4U7N8NJEcEQIehlNaXBCn ED5yS294B6+HYj1xGJkeQi1lWXA2wZ05eKWV6GJOaSVMd7bEdYHFD4Y88diNCEWpAaRj czlN+95J4lJXi5q2e851mD69coD7kOnBcOIbLxrClCHm1ZcqiFqc7GBBzn4ffphG//2P dk6g== X-Gm-Message-State: AOAM53175XcP3lkLmnbq+uIbral2oFwoSPWF94zRfvt29+wEXosExtkg loHgNI8pyN8U5mRwY/iOA5E= X-Received: by 2002:adf:d206:: with SMTP id j6mr6474841wrh.427.1611674399762; Tue, 26 Jan 2021 07:19:59 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id c20sm3552041wmb.38.2021.01.26.07.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 07:19:59 -0800 (PST) Date: Tue, 26 Jan 2021 15:19:58 +0000 From: Wei Liu To: Pavel Tatashin Cc: Wei Liu , Linux on Hyper-V List , virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , Daniel Lezcano , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Thomas Gleixner Subject: Re: [PATCH v5 05/16] clocksource/hyperv: use MSR-based access if running as root Message-ID: <20210126151958.anyp2ncjykivsfvn@liuwe-devbox-debian-v2> References: <20210120120058.29138-1-wei.liu@kernel.org> <20210120120058.29138-6-wei.liu@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 11:13:28AM -0500, Pavel Tatashin wrote: > On Wed, Jan 20, 2021 at 7:01 AM Wei Liu wrote: > > > > When Linux runs as the root partition, the setup required for TSC page > > is different. > > Why would we need a TSC page as a clock source for root partition at > all? I think the above can be removed. > The TSC page is considered superior to MSR-based clock. In the future we may want to switch back to that TSC page instead. I think it provides more context than without. Wei. > Luckily Linux also has access to the MSR based > > clocksource. We can just disable the TSC page clocksource if Linux is > > the root partition. > >