[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/1] xen: update system time immediately when VCPUOP_register_vcpu_info
- To: Ian Jackson <iwj@xxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 2 Nov 2021 17:36:36 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=gXdttXKkhlq2EKKHB51M9XelpFL4mhE9EhXefEQ5kdM=; b=DEoh9tQRm+SucEeNVU5NWmsBmH653ULWAc2C+bnGNS/6ERnh9FjAYD8FLqhj9Gi6TXtbf8HljYMheDKwMOyRclWN1KuWP+xGid7tWPoexoZ4bkQ94vNDPb4nIbZays+FwAMloRSBuHfH0TUUPu5YmLvb8t7HKmqdBUrVv4AtNvR8m53WWW0uRAIumD56ky8eKsuYvg2yFmKs2nHdiQVr6ZT3wz8g2qIypUYLRKdKn9wdv4avfMCmTC6gsO+9bdCrGOrK6Rr+D+znMUM+uxAqjUtF9TVUo9YH5Ybu/d5ZLhajSEkzmrqReRk+MuAjG8MZHb3+hj9IN+hbVdX6aQP3Hw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=akGZbqHy0o0BP9L/w+hJ/CRklaspvbbn4JvKA3EX0ZDdoIKZaqI9rg59jpbgQDcd4Rh9JLUfHN2/wxeK9Dfz2ggHXe7JVV3O6hPnKYtDv8IZeSFRM3+dU83mq6MkMKm4amxK5+8Mp94SBudvuduTm2mG6CRISqfFAgib70KALrDFlh9OPESVI0OyptxC96spboPPUeE/oQ25tCMKHbRy9rJq5McIKL6sbGxGscuXKTlSiWwhAvBSvjyv2hlq/dwyCRphz0x0ucsixm4B0lFKcmU2zXZDOddz/RbU+xK3YQKvXapkhqB5moROpqH9OEwuOLkzqugoYmTnKpvZL2rS4Q==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Dongli Zhang <dongli.zhang@xxxxxxxxxx>, sstabellini@xxxxxxxxxx, julien@xxxxxxx, Volodymyr_Babchuk@xxxxxxxx, andrew.cooper3@xxxxxxxxxx, george.dunlap@xxxxxxxxxx, wl@xxxxxxx, joe.jin@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 02 Nov 2021 16:37:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 02.11.2021 17:00, Ian Jackson wrote:
> Jan Beulich writes ("Re: [PATCH v2 1/1] xen: update system time immediately
> when VCPUOP_register_vcpu_info"):
>> On 25.10.2021 19:35, Dongli Zhang wrote:
>>> The guest may access the pv vcpu_time_info immediately after
>>> VCPUOP_register_vcpu_info. This is to borrow the idea of
>>> VCPUOP_register_vcpu_time_memory_area, where the
>>> force_update_vcpu_system_time() is called immediately when the new memory
>>> area is registered.
>>>
>>> Otherwise, we may observe clock drift at the VM side if the VM accesses
>>> the clocksource immediately after VCPUOP_register_vcpu_info().
>>>
>>> Reference:
>>> https://lists.xenproject.org/archives/html/xen-devel/2021-10/msg00571.html
>>> Cc: Joe Jin <joe.jin@xxxxxxxxxx>
>>> Signed-off-by: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
>>
>> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
>>
>> Ian - any thoughts towards 4.16 here either way?
>
> This looks like a bugfix to me, and the diff is certainly small. I am
> positively inclined. I would like to know what the risks are.
> Stefano says this does nothing on ARM so the risk would be to x86.
> Can you advise ?
I don't see any noteworthy risks - a call to a function gets added
in a 2nd place; the function itself has been working fine for years,
and it is fine to be used in this new context.
Jan
|