public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel•org>
To: Peter Hilber <peter.hilber@opensynergy•com>
Cc: linux-kernel@vger•kernel.org, "D,
	Lakshmi Sowjanya" <lakshmi.sowjanya.d@intel•com>,
	Thomas Gleixner <tglx@linutronix•de>,
	jstultz@google•com, giometti@enneenne•com, corbet@lwn•net, "Dong,
	Eddie" <eddie.dong@intel•com>,
	"Hall, Christopher S" <christopher.s.hall@intel•com>,
	Simon Horman <horms@kernel•org>,
	Andy Shevchenko <andriy.shevchenko@linux•intel.com>,
	linux-arm-kernel@lists•infradead.org,
	Sean Christopherson <seanjc@google•com>,
	Paolo Bonzini <pbonzini@redhat•com>,
	Ingo Molnar <mingo@redhat•com>, Borislav Petkov <bp@alien8•de>,
	Dave Hansen <dave.hansen@linux•intel.com>,
	x86@kernel•org, "H. Peter Anvin" <hpa@zytor•com>,
	Wanpeng Li <wanpengli@tencent•com>,
	Vitaly Kuznetsov <vkuznets@redhat•com>,
	Mark Rutland <mark.rutland@arm•com>,
	Daniel Lezcano <daniel.lezcano@linaro•org>,
	Richard Cochran <richardcochran@gmail•com>,
	kvm@vger•kernel.org, netdev@vger•kernel.org
Subject: Re: [PATCH v3 5/8] ptp/kvm, arm_arch_timer: Set system_counterval_t.cs_id to constant
Date: Thu, 01 Feb 2024 13:52:29 +0000	[thread overview]
Message-ID: <86jzno70ma.wl-maz@kernel.org> (raw)
In-Reply-To: <20240201010453.2212371-6-peter.hilber@opensynergy.com>

On Thu, 01 Feb 2024 01:04:50 +0000,
Peter Hilber <peter.hilber@opensynergy•com> wrote:
> 
> Identify the clocksources used by ptp_kvm by setting clocksource ID enum
> constants. This avoids dereferencing struct clocksource. Once the
> system_counterval_t.cs member will be removed, this will also avoid the
> need to obtain clocksource pointers from kvm_arch_ptp_get_crosststamp().
> 
> The clocksource IDs are associated to timestamps requested from the KVM
> hypervisor, so the proper clocksource ID is known at the ptp_kvm request
> site.
> 
> While at it, also rectify the ptp_kvm_get_time_fn() ret type.

Not sure what is wrong with that return type, but this patch doesn't
seem to affect it.

	M.

-- 
Without deviation from the norm, progress is not possible.

  reply	other threads:[~2024-02-01 13:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-01  1:04 [PATCH v3 0/8] treewide: Use clocksource ID for get_device_system_crosststamp() Peter Hilber
2024-02-01  1:04 ` [PATCH v3 2/8] timekeeping: Add clocksource ID to struct system_counterval_t Peter Hilber
2024-02-01  1:04 ` [PATCH v3 3/8] x86/tsc: Add clocksource ID, set system_counterval_t.cs_id Peter Hilber
2024-02-01  1:04 ` [PATCH v3 4/8] x86/kvm, ptp/kvm: " Peter Hilber
2024-02-01  1:04 ` [PATCH v3 5/8] ptp/kvm, arm_arch_timer: Set system_counterval_t.cs_id to constant Peter Hilber
2024-02-01 13:52   ` Marc Zyngier [this message]
2024-02-01 14:04     ` Peter Hilber
2024-02-01  1:04 ` [PATCH v3 6/8] timekeeping: Evaluate system_counterval_t.cs_id instead of .cs Peter Hilber
2024-02-01  1:04 ` [PATCH v3 7/8] treewide: Remove system_counterval_t.cs, which is never read Peter Hilber
2024-02-01  1:04 ` [PATCH v3 8/8] kvmclock: Unexport kvmclock clocksource Peter Hilber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86jzno70ma.wl-maz@kernel.org \
    --to=maz@kernel$(echo .)org \
    --cc=andriy.shevchenko@linux$(echo .)intel.com \
    --cc=bp@alien8$(echo .)de \
    --cc=christopher.s.hall@intel$(echo .)com \
    --cc=corbet@lwn$(echo .)net \
    --cc=daniel.lezcano@linaro$(echo .)org \
    --cc=dave.hansen@linux$(echo .)intel.com \
    --cc=eddie.dong@intel$(echo .)com \
    --cc=giometti@enneenne$(echo .)com \
    --cc=horms@kernel$(echo .)org \
    --cc=hpa@zytor$(echo .)com \
    --cc=jstultz@google$(echo .)com \
    --cc=kvm@vger$(echo .)kernel.org \
    --cc=lakshmi.sowjanya.d@intel$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=mark.rutland@arm$(echo .)com \
    --cc=mingo@redhat$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=pbonzini@redhat$(echo .)com \
    --cc=peter.hilber@opensynergy$(echo .)com \
    --cc=richardcochran@gmail$(echo .)com \
    --cc=seanjc@google$(echo .)com \
    --cc=tglx@linutronix$(echo .)de \
    --cc=vkuznets@redhat$(echo .)com \
    --cc=wanpengli@tencent$(echo .)com \
    --cc=x86@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox