Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1564030pxb; Thu, 4 Feb 2021 17:00:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRATO0oRQ3A38++rmRVUgA6xLGMaA6JWgAzh7wrXa9qrpfB+d2SX5AV8DE7zBWzCPR1so4 X-Received: by 2002:aa7:c6d9:: with SMTP id b25mr1247669eds.84.1612486808800; Thu, 04 Feb 2021 17:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612486808; cv=none; d=google.com; s=arc-20160816; b=RKRzSNhLDAJHX8MuATJEWL43P8Ruo8JyxudS7ueFiDsVkmJ8WoH631tGd8usvKZZ3Z khxziaAdMl5UzOqR7PkiaiDCuDa2tCIUbrP/tbSudysVr4lGQLWfAsnim3Bi8ThMk540 sX5VaBqp0Lj2GpXmSm6cvQ9JS7QZO8ogVjxQpagHjVTMbKWiLbSQ7QVtbBQ18buKQJcs YVJLg8y+i7MSWZrTVKhPFzqkhM3f3rZ4qZtBSUB4ligjmbVQZok9A6enVasHkXHCKM4B n8dABysY/G9kAQuDSNGj3b28/BtyPTMfbgmydOrAhd0SbypV0p6VAldv6CpC1slBgQdH GdaQ== 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=kYU9bh4CkxipE81WEoDluz6pVp6f8gibc7rj0DSwtJU=; b=IkYLLAfZBGI8Jfmi+vUoCGbJZErICyel+DoZHjIMle9iV/mnBBGk9fJhTym5DLBsyE 8fcdReR+V47cIWskrg2f/5LfNUjC/zuXxReV9SbTGG91R3tKnyIbq26qOmYBRDVbotsY PTioUroAplWVrONt2lWqM3OJk5eA8dM3B5H+uUYkEJWRzVRvShvVa2OzBYqEo/eZXONN ThS4ADqfyp26OzWjekANM9YlYdnp02liEOYzRqy7D+VyD1YNfA4ICBHAhB96ztSNF2bS 2VNSyxgzfyVpLR8djwTF7b5CS9C1/9q/O9CBQvCOZZiu89foyW6txi/O6gXoHnjkUfrS v4Kg== 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 b15si4443503edz.486.2021.02.04.16.59.44; Thu, 04 Feb 2021 17:00:08 -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 S237988AbhBDQdh (ORCPT + 99 others); Thu, 4 Feb 2021 11:33:37 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:44443 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237994AbhBDQcQ (ORCPT ); Thu, 4 Feb 2021 11:32:16 -0500 Received: by mail-wr1-f50.google.com with SMTP id d16so4201547wro.11; Thu, 04 Feb 2021 08:31:59 -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=kYU9bh4CkxipE81WEoDluz6pVp6f8gibc7rj0DSwtJU=; b=kCBFcWFsczeDEK/CqICnhJP0giiFGG3W6gwX60tzii9rK9ak04DLNtD08WTRvCu/Jy 0tkECAJuR/nFpQCs6iT3SWct0wH9jeIm6NgkIrtPSAk/QdfbbGHKnV5sGI/kZ11Ma5gH 1oazJT2nDeGVgLvmb5rYp2y3WVBFdpAAgIivVdnTsmOlVhUvc+NTCtUMJS+DV5QYPREs sMnO8HStkDF6ZaQ/qJMNhF8BK8IrICMxWl/loiR/s8aryDqIBBb2fLhO2be8UyS3J+JE g8fE0SuUXc82LE0D2pseUY+KQ0nDgKn7vt4BiMOAb/E5xl851MKLV+pG4hlXxW7NPW3J eW+w== X-Gm-Message-State: AOAM532hfjbmU8/JOFZkyUEBq1KTHMXBYuHBwu+zPHZBEmqmdLxeCe8v 9NlN5nShFQYl7RLAnWBA29I= X-Received: by 2002:adf:e381:: with SMTP id e1mr194880wrm.22.1612456293701; Thu, 04 Feb 2021 08:31:33 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id i7sm8818889wru.49.2021.02.04.08.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 08:31:33 -0800 (PST) Date: Thu, 4 Feb 2021 16:31:31 +0000 From: Wei Liu To: Michael Kelley Cc: Wei Liu , Stephen Hemminger , KY Srinivasan , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "daniel.lezcano@linaro.org" , "arnd@arndb.de" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "linux-arch@vger.kernel.org" Subject: Re: [PATCH 08/10] clocksource/drivers/hyper-v: Handle sched_clock differences inline Message-ID: <20210204163131.4i63wpyyauvcsdpc@liuwe-devbox-debian-v2> References: <1611779025-21503-1-git-send-email-mikelley@microsoft.com> <1611779025-21503-9-git-send-email-mikelley@microsoft.com> <20210201185513.or4eilecqhmxqjme@liuwe-devbox-debian-v2> 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 Thu, Feb 04, 2021 at 04:28:38PM +0000, Michael Kelley wrote: > From: Wei Liu Sent: Monday, February 1, 2021 10:55 AM > > > > On Wed, Jan 27, 2021 at 12:23:43PM -0800, Michael Kelley wrote: > > [...] > > > +/* > > > + * Reference to pv_ops must be inline so objtool > > > + * detection of noinstr violations can work correctly. > > > + */ > > > +static __always_inline void hv_setup_sched_clock(void *sched_clock) > > > > sched_clock_register is not trivial. Having __always_inline here is > > going to make the compiled object bloated. > > > > Given this is a static function, I don't think we need to specify any > > inline keyword. The compiler should be able to determine whether this > > function should be inlined all by itself. > > > > Wei. > > There was an explicit request from Peter Zijlstra and Thomas Gleixner > to force it inline. See https://lore.kernel.org/patchwork/patch/1283635/ and > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/include/asm/mshyperv.h?id=b9d8cf2eb3ceecdee3434b87763492aee9e28845 Oh. noinstr. I failed to notice the comment. Sorry for the noise. Wei.