Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp222170pxb; Thu, 12 Nov 2020 01:58:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJybidMI22FxSZVWgSMJzMWT4nCUa+JXnmTXO3keF8zxayOYHFo1EnxJdeEDTbPIAqICHbvu X-Received: by 2002:a50:fe18:: with SMTP id f24mr4197017edt.162.1605175084547; Thu, 12 Nov 2020 01:58:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605175084; cv=none; d=google.com; s=arc-20160816; b=V8MySqUGVhchlIly7IGYZ9vrINGNZww7JOkwg88sa7oUoQ/wrDUnxYvQz3R8eg9REl 4LePZYIKDmDJuHmQ2Xr1l3QtsMrJwisn1O9hDseAA0fZBgka+W8+apqPAGJTfK9aKUWP s/z2cHw7ucz1fd3Hyh5OQq5OrOBIn6fzx5dnY3Ww83QbUwmOShrkvVMPaQ/1sPcRAQ9J OpJKSA7tx810Y3X2QxSl+Z3AP6n/nwE3W9Qp259FNzzcr6r1WEyz1VRP9aq8sQnY+3TR gpDkH8LjwpQ0BPShcoPg7GIHpRCTF+BqUEVdFQkPFgYGvSyQ0eF8EUa5sDl9qb7LTNrG OnnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=cxDZR78f1uAjoaTSqfFbkuzSwbFVGDkZXidPHX71G9c=; b=ajyHlbwjm9Ro2dN7bGqqUepnMXVmQ9XMehdDAOZ54hfpa158PvobrifZoYOseJ88y1 SuZSOt79piF5wnPhTBCmTjIbDn5xHAWALw5xH0PK5rCxqRrRr5QrwBom3PWUN5+RmCPk tz3n0Sf/eLBWUYOYFIli/Z5KiOR24bVhrDbvvPoRdr8iny/MLqdKrxcGGQ++E4z4ygJT c8mc1v4TJD8/tiiKxVNqOCYllhi0XkdD4UTgVx83z0/XVzlqbxzblPh+qCDKZIZgWwf7 LgMFU2zxJCXS58MG30d857h5HCH82jJf5l82V0QwdDpc1ccn4zZ9utn+v5yqza9Kfnu6 euyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YJ0+2ZMB; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw16si3180476ejb.430.2020.11.12.01.57.41; Thu, 12 Nov 2020 01:58:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=YJ0+2ZMB; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbgKLJ4V (ORCPT + 99 others); Thu, 12 Nov 2020 04:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbgKLJ4U (ORCPT ); Thu, 12 Nov 2020 04:56:20 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EE23C0613D4 for ; Thu, 12 Nov 2020 01:56:20 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id d12so5269190wrr.13 for ; Thu, 12 Nov 2020 01:56:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=cxDZR78f1uAjoaTSqfFbkuzSwbFVGDkZXidPHX71G9c=; b=YJ0+2ZMBF11Z542eqUsAqitgHb1xPMZ9lech+gtY3w1F7OShr8zrOCrXG/V2z/Vf9D HvJMT0pS3sKdFvG56bx1LvN6uF/lhDOzA1YfuOcJrkfOS77zNBxHMGj8IusEA8/Evn9n vEUDFgaNl0eXFe71Zx5ivyXt/FVmjekvELTABnl8IThNTg4mQZES6Ls1Sj+/CCnAaW8s D/poUG+CS3XKDKNfiUrnWUKSQX2FNYipld7UOIAeSpgaQ152qnUGHktwJPgARaTmEEWL eZN+kAZ3YTV4KiBAUS62tIvHl3nYE2Ii0u3zoEFmkOd5nNkEQTgKsjtihGwlp/GcxvrL G9xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cxDZR78f1uAjoaTSqfFbkuzSwbFVGDkZXidPHX71G9c=; b=INkH6qOoymt/J7McErf1KsCRS7TucaPt3JMeMTOGYFxanHxyRsjEfbJxfKSqAwajPz p/D/ee5vc6Gtb4oXlOMeDv22mD2q3uBHV3oAmF6Z5gGZgLBbnUX/djaqrT74qRentHVr 4f4S7Jx/x4cXuQFEbQKaazx0t3ZDt1AXM422YfWkVsBoYodJ3ar7ntwDOGD48Cw6KYW7 5wCuUkPAb6T5/+xQD/k4bnVp8J72lPxQ3OJ6O5s21pGDYHMnBCLWGtTxmEwSGaLOsG+Y m3mxZrofbjT6GFheGxsEa89b76vg7vxVaSqZOsH2NBV72rOJAmktS5hsj+bnql2CNzXw UYYA== X-Gm-Message-State: AOAM533N16sDSjGCWHQ06npCkkuniG1q8vNMEirBvhQ+UZMhOijNFdiw CZoisY1oePLhi7cJ41cGPn7FetYVlGSw4Q== X-Received: by 2002:adf:9d44:: with SMTP id o4mr36796016wre.229.1605174979204; Thu, 12 Nov 2020 01:56:19 -0800 (PST) Received: from ?IPv6:2a01:e34:ed2f:f020:6971:b700:3764:fa96? ([2a01:e34:ed2f:f020:6971:b700:3764:fa96]) by smtp.googlemail.com with ESMTPSA id m126sm5866401wmm.0.2020.11.12.01.56.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Nov 2020 01:56:18 -0800 (PST) Subject: Re: [PATCH v2 05/17] clocksource/hyperv: use MSR-based access if running as root To: Wei Liu , Linux on Hyper-V List Cc: virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Thomas Gleixner References: <20201105165814.29233-1-wei.liu@kernel.org> <20201105165814.29233-6-wei.liu@kernel.org> From: Daniel Lezcano Message-ID: <3527e98a-faab-2360-f521-aa04bbe92edf@linaro.org> Date: Thu, 12 Nov 2020 10:56:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201105165814.29233-6-wei.liu@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/11/2020 17:58, Wei Liu wrote: > Signed-off-by: Wei Liu > --- I would like to apply this patch but the changelog is too short (one line). Please add a small paragraph (no need to resend just answer here, I will amend the log myself. > drivers/clocksource/hyperv_timer.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/clocksource/hyperv_timer.c b/drivers/clocksource/hyperv_timer.c > index ba04cb381cd3..269a691bd2c4 100644 > --- a/drivers/clocksource/hyperv_timer.c > +++ b/drivers/clocksource/hyperv_timer.c > @@ -426,6 +426,9 @@ static bool __init hv_init_tsc_clocksource(void) > if (!(ms_hyperv.features & HV_MSR_REFERENCE_TSC_AVAILABLE)) > return false; > > + if (hv_root_partition) > + return false; > + > hv_read_reference_counter = read_hv_clock_tsc; > phys_addr = virt_to_phys(hv_get_tsc_page()); > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog