Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6914027ybp; Wed, 16 Oct 2019 00:32:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC0AUsNZSrs/z2r/K6W4kHuOjqTIxjaHumG6eenYHShSW1FuQ3L2qNDCmIZJRNeJIFc/2T X-Received: by 2002:aa7:cfd4:: with SMTP id r20mr37337954edy.268.1571211161143; Wed, 16 Oct 2019 00:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571211161; cv=none; d=google.com; s=arc-20160816; b=G97mcHdzhybN9BlHRHfdo8g6D3PzcI7UBiqIM+rEUGLIw0zDxL9I4hTB0zzf4kpyDD w9ywMNZYwM/PR8JOw+LISlgUO1T2NzRZIglvHajGTD0oaMBDmJ8edbbD+yO56Fes2tiv MlL/t9VEQY8NKIfRHzRExRd9N9a7X9g3j9tPboNoAabbiLrIMIc1hY0ByLxRf1lb4X4W jMYQc/ZPiM7QRMMMqbkKOb4Erio7eOZTttVAWU8Kwdw78PQjlyjD3Xwb2k5rmIhxG2ZB 5o2k0YT2/tLb3i5LRhd9Q8V9j8pmRF4thyaugPZuPpgQW58MQOcK6M9rmBumPn2hKfTj NH2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=wSh+n+8u5QLmMxe2hYGq+Rqu0J/BQ5npWNcVhzyY+e4=; b=tF9WUBow6pM6frNDRShQFB1xVFcdNeAs9cXSYgyfYPHiNiWbtI3Zp2l5dKk4pw4Uv2 AHReT2uWb8ShcdPRsYNeZ8Xvgx9UWBnOy/9fW1ND61Tk5XQuyo50zTpU5oW6h10afkPo gfy1srF9Q6HYF7jvdDTzRflEYWlYEsoecolwGfMquDtxidJCkB9lXGHJ/ifMd/PyGoO+ iFPLcAdotPquGf2w926VGq2q098SbNkZStVVqVS2sNOiroqp8/Xe6raLHWXt4pcHon5Q nqyeoQwqenqh5Fqtr69CpY2HuksrzQaiHSjOMk+Q4YOIsekv3QvC6r0EM8oxN9PwJX+f xepw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IuzUEzG5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g25si14645725ejr.409.2019.10.16.00.32.17; Wed, 16 Oct 2019 00:32:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IuzUEzG5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389960AbfJOWgt (ORCPT + 99 others); Tue, 15 Oct 2019 18:36:49 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:36302 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389950AbfJOWgs (ORCPT ); Tue, 15 Oct 2019 18:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571179007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:openpgp:openpgp; bh=wSh+n+8u5QLmMxe2hYGq+Rqu0J/BQ5npWNcVhzyY+e4=; b=IuzUEzG5PSs+A6S0zsKEgzprSAVGFF+2/D6gIZTt+pjQjZ4/bjVzXWVmU4B3mwtYq8PAGN 66CTtYiMkR/DRcoKKB9QdJKmBXe/oDFVZUxaJSoMQj+aykaZb1QGdmX5m56050DN64UQoc 2sVVXnEKrndBwN3yvoE+bZbQ1Z90iEA= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-125-Syb5-5TWOvy31NOxaMT41g-1; Tue, 15 Oct 2019 18:36:44 -0400 Received: by mail-wr1-f69.google.com with SMTP id z17so10828746wru.13 for ; Tue, 15 Oct 2019 15:36:44 -0700 (PDT) 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:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lwwAcBIi9gz4rDVsHFX2Q7ZJ02GG7jdgtvkZrgQZWFY=; b=K/+YTwj0cnuxtQZFQebR20O2C7zW3VZYU9+HsI9CEZY4MJQZ39KNgcvfbg7oELdO0i xgk8cRJQgsVKB9PEKwaiqSHFx2UPyII29oT6pBhGDdqKtnihjNrH8PGd0vezLNhR7KD5 YSOeLsfK1jJPfyP+2s0Mk0R9AMz3MSKakF+zV+lHPZeOFbSjzctgR4zRODlgQk788L/2 YH7rmol13UDLUV0Wg4Ecp22XiV3kvC4WSMLFGDaiTG8DCLkIflRR2XWDwDUI2sUz/J2J Sje3HLV10UsGM54rdKZfZ3k3uqBA1p91qErMsqGRS3RHo0z1Tf33PzsWwfNbfvlqmh+V r6XA== X-Gm-Message-State: APjAAAUujYaaaLmozHYPdUUAWjwY4BQ0K8pvrBRaXjvgrmqJIpssf6Bg iaLctgH7mr6aCbciInr0GD3hv7giPa+1lS+FDjUyCSVzdpPhmgyR8FyTYUWUIDKai3cK7EznsQw Cg/10fMzB/UjebZAcowaQiVjj X-Received: by 2002:a05:600c:3cb:: with SMTP id z11mr537724wmd.134.1571179003420; Tue, 15 Oct 2019 15:36:43 -0700 (PDT) X-Received: by 2002:a05:600c:3cb:: with SMTP id z11mr537711wmd.134.1571179003137; Tue, 15 Oct 2019 15:36:43 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:ddc7:c53c:581a:7f3e? ([2001:b07:6468:f312:ddc7:c53c:581a:7f3e]) by smtp.gmail.com with ESMTPSA id c18sm20828908wrv.10.2019.10.15.15.36.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Oct 2019 15:36:42 -0700 (PDT) Subject: Re: [PATCH v5 3/6] timekeeping: Add clocksource to system_time_snapshot To: Thomas Gleixner Cc: Jianyong Wu , netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, sean.j.christopherson@intel.com, maz@kernel.org, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steve.Capper@arm.com, Kaly.Xin@arm.com, justin.he@arm.com, nd@arm.com References: <20191015104822.13890-1-jianyong.wu@arm.com> <20191015104822.13890-4-jianyong.wu@arm.com> <9274d21c-2c43-2e0d-f086-6aaba3863603@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Wed, 16 Oct 2019 00:36:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-MC-Unique: Syb5-5TWOvy31NOxaMT41g-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/10/19 22:13, Thomas Gleixner wrote: > On Tue, 15 Oct 2019, Paolo Bonzini wrote: >> On 15/10/19 12:48, Jianyong Wu wrote: >>> =20 >>> >> >> Reviewed-by: Paolo Bonzini >=20 > You're sure about having reviewed that in detail? I did review the patch; the void* ugliness is not in this one, and I do have some other qualms on that one. > This changelog is telling absolutely nothing WHY anything outside of the > timekeeping core code needs access to the current clocksource. Neither do= es > it tell why it is safe to provide the pointer to random callers. Agreed on the changelog, but the pointer to a clocksource is already part of the timekeeping external API via struct system_counterval_t. get_device_system_crosststamp for example expects a clocksource pointer but provides no way to get such a pointer. Paolo