Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B38B8C44502 for ; Wed, 21 Jan 2026 09:14:42 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1209472.1521457 (Exim 4.92) (envelope-from ) id 1viUI0-0005wu-GY; Wed, 21 Jan 2026 09:14:12 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1209472.1521457; Wed, 21 Jan 2026 09:14:12 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1viUI0-0005wn-Do; Wed, 21 Jan 2026 09:14:12 +0000 Received: by outflank-mailman (input) for mailman id 1209472; Wed, 21 Jan 2026 09:14:11 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1viUHz-0005wh-Nr for xen-devel@lists.xenproject.org; Wed, 21 Jan 2026 09:14:11 +0000 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [2a00:1450:4864:20::42b]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 88277220-f6a9-11f0-9ccf-f158ae23cfc8; Wed, 21 Jan 2026 10:14:04 +0100 (CET) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-4359108fd24so883587f8f.2 for ; Wed, 21 Jan 2026 01:14:04 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4358e24cef3sm10229744f8f.0.2026.01.21.01.14.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Jan 2026 01:14:03 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 88277220-f6a9-11f0-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768986844; x=1769591644; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=6HzjjKPEIpyXy3gjMXzlNi0Cnx/knsl6TGedTyMHAqo=; b=P0V/cpApz0xcAXCC8kE3H54DmHWBYSpsISlwUY/LA5oYmFwIf/dlp8/V+jAy+7yEMV mGqskOHgntGzjJdME+wUGtHujk7RH92+N/FBKuIhCWcqnTwywWbupoTYX+ooa77qxerp i2Xbsv9CX8ekyVmioRBWrlOV1Vp03pV80d56KI2EgwVsoyijrI3CAbYiX0TKNJUemw6w xZKYjvLM3HCtsWzGThysSqsrK0FnxamjhMBvNc7uMujNRTTtqRTfvq2rkrclAs9Z4Zm+ SYLshXzKNU/C7+TDWn9EoTxKkpfTXsjJFJLtWIVeD9Z5s3wL4VrEmTnIRcig3QUbCAFp +/VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768986844; x=1769591644; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6HzjjKPEIpyXy3gjMXzlNi0Cnx/knsl6TGedTyMHAqo=; b=o3V4yf2W4kUdGIALqjqmDP5/rvYs350dQsElcclGNUN4Z20blVZrLbODxmHpsi5O1V dQ2GUol1+t/OOP0WFmCuFHa71t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with SMTP id ffacd0b85a97d-43595222e62mr6184110f8f.38.1768986843725; Wed, 21 Jan 2026 01:14:03 -0800 (PST) Message-ID: <637ad4a0-bc8f-4e75-8906-643f28f94a2b@suse.com> Date: Wed, 21 Jan 2026 10:14:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] xen: Expose time_offset in struct arch_shared_info To: Tu Dinh Cc: Anthony PERARD , Andrew Cooper , Michal Orzel , Julien Grall , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , Bertrand Marquis , Volodymyr Babchuk , xen-devel@lists.xenproject.org References: <20260120095657.237-1-ngoc-tu.dinh@vates.tech> <3213454a-38cd-4e5d-8a30-853e37f70c18@suse.com> <7a61a16c-93d7-4cc2-bc47-11e236cf83fb@suse.com> <9df8cf47-d3ec-474e-b1c8-7978e55627d6@vates.tech> Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20.01.2026 17:06, Tu Dinh wrote: > On 20/01/2026 16:39, Jan Beulich wrote: >> On 20.01.2026 16:27, Tu Dinh wrote: >>> On 20/01/2026 13:42, Jan Beulich wrote: >>>> On 20.01.2026 13:12, Tu Dinh wrote: >>>>> On 20/01/2026 11:35, Jan Beulich wrote: >>>>>> On 20.01.2026 10:57, Tu Dinh wrote: >>>>>>> time_offset is currently always added to wc_sec. This means that without >>>>>>> the actual value of time_offset, guests have no way of knowing what's >>>>>>> the actual host clock. Once the guest clock drifts beyond 1 second, >>>>>>> updates to the guest RTC would themselves change time_offset and make it >>>>>>> impossible to resync guest time to host time. >>>>>> >>>>>> Despite my earlier comments this part of the description looks unchanged. >>>>>> I still don't see why host time (or in fact about any host property) should >>>>>> be exposed to guests. >>>>> >>>>> I've answered this question in a followup reply from November, which >>>>> I'll reproduce here: >>>> >>>> I did read your reply, yet nothing of it appeared here as additional >>>> justification. >>> >>> Is the new description OK for you? >> >> Which new description? So far I only saw your responses to my questions, not >> an updated patch description. >> > > Maybe my last email wasn't clear, it was in the part marked "Follow up", > reproduced below: > > Xen currently does not expose the host's wall clock time in shared_info. > This means while shared_info can be used as an alternative to the > emulated RTC, it can't be used to keep the virtual wall clock in sync. > Expose the time_offset value in struct shared_info in order to allow > guests to synchronize their own wall clock to that of the host. > > This is needed because on Windows guests, the PV drivers don't control > the timing of RTC updates, as this is done by the kernel itself > periodically. If the guest's internal clock deviates from the RTC (e.g. > after resuming from suspend), a RTC write would cause time_offset to > deviate from the supposed value (timezone offset) and thus cause the RTC > to become incorrect. What I still can't extract from this is why Windows running bare-metal is fine but Windows running on Xen's vRTC isn't. If there's a problem with our vRTC, shouldn't that be addressed there? Also, just ftaod: If other maintainers find this convincing, my failure to understand shouldn't get in the way. They may still approve this change, i.e. I'm not vetoing it. It's just that as of now I also wouldn't ack it. Jan