[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 1/3] time: add "NOW() good" indicator
- To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Tue, 18 Aug 2026 17:10:46 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YBknbZWDj/0htpZZ+qXSXeosH6Y9ULnrkqGxMw4M1Nk=; b=b7OL86NN/O/iK6JxfDFY13ck7B/4zC/38XsDCw8g8bfPPnyJ3d1wAHU0nMv/g5svyk9wxH/TFACNZRNwQBb4MtcHu8IhhYbgtXeCLX/a1FTpAGJhn6S3U28JI3dF8hH5tKN+eCOLsyCkWn+s0+6BCJ38wFMaXGi1OKe797xDV3G8DSwKVIXf37ZRXA/kZkcL4o6q8uLqn44wo0xIP9p+pzo0er/mH9TcEwXFRMGWWCo/KhmI8AtlAa1Lsb+e5d9Ab1yp4B2WAOy6yZLlHJtV89WwDgbyW4k9zKuFRpwfb2nPw9WEuTCPjbY627YTrnpj8Vha1T8D3ypvVUSLn2aWPg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pX/E7YfH9pfwNT6Vx0Ve+WZqiqlf3ryA/A8vHIh95mvDGGwJ9dRz+PRB42ZBfjL9rC16IjEXRc20oJ244hdwphjPZEhPbYVyEZUxd4qnNlvzspDoXasC1MUnD0zTNII3lg+6WLDh64xApucJY8RojQYhKVQqKFOQHafq1PZTt2qFGbpriEXMRQuiono5BBsFP9XZVUzHvhaL7VVTpQ8tmjcXd5qsGJBx2BOw+UOzxv00j9WHFVOsQpH3to9I0qeJXNrW4VTRk4y53ywadakqTassyi7OR3PsQdYgtCPLix/QdhE8Iy/AeEU0ni32E6d7O+EBA7mM++ra3S+ZUkA2Tg==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
- Delivery-date: Tue, 18 Aug 2026 15:11:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 30-Jun-26 16:06, Jan Beulich wrote:
> printk_start_of_line() checks for a value of 0 right now. In order to be
> able to have NOW() return at least monotonically increasing values, that
> needs replacing by an explicit indicator.
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
> ---
> Arm and RISC-V may want to consider whether their initial get_cycles()
> can't be moved yet earlier, such that the indicator also can be set
> yet earlier.
On Arm, get_cycles() just reads a system register and it could be moved earlier.
That said, is there any rule as to what should actually be considered a start of
time (i.e. the boot_count value)? At the moment, this denotes the moment where
the time driver is set up in preinit_xen_time() after validating the frequency.
~Michal
|