Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp3077rdh; Mon, 18 Dec 2023 02:24:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4PiFu2ouQefE/hGNfce1C7MqS1mCpjzqI+xPPt6KnpoeHhOzlRho7NUrQDlPEBQ2RhW6X X-Received: by 2002:a05:6870:eca5:b0:203:d894:40e5 with SMTP id eo37-20020a056870eca500b00203d89440e5mr337495oab.46.1702895053604; Mon, 18 Dec 2023 02:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702895053; cv=none; d=google.com; s=arc-20160816; b=UIVMj6dEbpmlAZjboLVDLpXCtC87aRYZs6f4vfC0ldBn1V9LrHsgG9M3eTqFvtyBcB VXJny0CPGTQfEviNrRPDjyBwVzq0t/kP5sHnLzuQ4ToV3Fe7D0sTr2YNHdlDVXI2t6D/ yOftGxSFiOog0g9W+KFwedlfd9NB7zBykDIIYddI7ZqPvRpVT/j+V8FtIGewt+/4RzpE sJ/fqy6mz7s5d523Jqvqh3zsq6vVywp8jcMi+lAIH6uGmKkGw8P1NJ3cYmqHlnT806Ir +OIl6UerXPIHBdL9DmqAsKYuppXP5qImV4TNZn8p3tjaPQA//n6YfIq6D78fIQG/4lDx oB6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=xn/Nxtt1A2UHf0V/I0aG0tK7DEf3/8OiDRxwbSdNkVk=; fh=6mcAOhknYv2CU2qcDqO4HdH8hsi1jChIyoN5uSRbKCY=; b=bKSCEK8+etOSjlXyzmDWBstk6b6xmLWH6g2/5C8KzE1Bd+vYIgvzdB97OuU/S024WA zQsNL0pZy6027stfM4AeWpF95YHOzvn2kZH50KsWbMnWywLcOfqDDhLQ26C09d431/AY p2lDg8kVz6D8vrt+uic4IMXzc8nIgNZILGEoRUyHtEFW6ARClSl6ygYMkQ55zHFc3cBC DiCT+kKlwU6Lz6k0UOSrGDBK/4a+69v1ry9rAfeR2YFAOlKZwgd/HemWuc+Hw8FGhr3M ef71Ucks6NLRv85x2XJVZykt1uvEAWvl43+W44sRLOnTDkDoBwii5KS2HgV5aO9QF5g0 jePg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GIwHuhOy; spf=pass (google.com: domain of linux-kernel+bounces-3318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g1-20020a63dd41000000b005ca5b61caa5si7529233pgj.74.2023.12.18.02.24.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 02:24:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GIwHuhOy; spf=pass (google.com: domain of linux-kernel+bounces-3318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 663FCB219FA for ; Mon, 18 Dec 2023 10:24:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACD2E14ABA; Mon, 18 Dec 2023 10:23:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GIwHuhOy" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5558313AC2; Mon, 18 Dec 2023 10:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702895025; x=1734431025; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OR8ENRQEVanZisncmHUkNCSziQATmbvmhDTN5mpUyIE=; b=GIwHuhOybTOdTaDw5shnbLYkoOmyuhL4Rq9vErQUh9aBKsfYgdkQ/ZGp 7nlVdifKjn/9FNYuEeK2L+wfCtcvI9QxDyvZllP2/+M7WqBoAuw8zOS4n BQiF0xYpiH8/PhsDJvb8D07OP4GNoG5Yh/OGEQuvGfSD4mjJbY76vNoF9 lRWcI7Zsi/McMgnEB0JaWm89x50U5PKj1TUPmjaLNlxM3l/zo4dlIOZbi 6nNsHOW2gBpR2n4sMZrXmPcmFwFgEf39WWQlq9hBYefqjd6MXk7Z+N1pc hmQ3o4vl+QuVzsI0Tvk/qHDZPJUV9jE7iVgBT5hMC5e/ogvwKj0uP+pGv w==; X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="2692351" X-IronPort-AV: E=Sophos;i="6.04,285,1695711600"; d="scan'208";a="2692351" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 02:23:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="809764965" X-IronPort-AV: E=Sophos;i="6.04,285,1695711600"; d="scan'208";a="809764965" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 02:23:37 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rFAmb-00000006tHO-0x88; Mon, 18 Dec 2023 12:23:33 +0200 Date: Mon, 18 Dec 2023 12:23:32 +0200 From: Andy Shevchenko To: Peter Hilber Cc: linux-kernel@vger.kernel.org, "D, Lakshmi Sowjanya" , Thomas Gleixner , jstultz@google.com, giometti@enneenne.com, corbet@lwn.net, "Dong, Eddie" , "Hall, Christopher S" , Marc Zyngier , linux-arm-kernel@lists.infradead.org, Sean Christopherson , Paolo Bonzini , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Wanpeng Li , Vitaly Kuznetsov , Mark Rutland , Daniel Lezcano , Richard Cochran , kvm@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH v2 3/7] x86/kvm, ptp/kvm: Add clocksource ID, set system_counterval_t.cs_id Message-ID: References: <20231215220612.173603-1-peter.hilber@opensynergy.com> <20231215220612.173603-4-peter.hilber@opensynergy.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231215220612.173603-4-peter.hilber@opensynergy.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Dec 15, 2023 at 11:06:08PM +0100, Peter Hilber wrote: > Add a clocksource ID for the x86 kvmclock. > > Also, for ptp_kvm, set the recently added struct system_counterval_t member > cs_id to the clocksource ID (x86 kvmclock or Arm Generic Timer). In the > future, this will keep get_device_system_crosststamp() working, when it > will compare the clocksource id in struct system_counterval_t, rather than > the clocksource. > > For now, to avoid touching too many subsystems at once, extract the > clocksource ID from the clocksource. The clocksource dereference will be > removed in the following. ... > #include > +#include It's the second file that includes both. I'm just wondering if it makes sense to always (?) include the latter into the former. -- With Best Regards, Andy Shevchenko