From: =?UTF-8?Q?Mika_Penttil=c3=a4?= Subject: kvm masterclock Date: Mon, 5 Sep 2016 18:50:03 +0300 Message-ID: <5a46657c-84b8-c2ab-badd-cdc4cc3702ee@nextfour.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: Return-path: Received: from mail-db5eur01on0066.outbound.protection.outlook.com ([104.47.2.66]:55740 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754678AbcIESWY (ORCPT ); Mon, 5 Sep 2016 14:22:24 -0400 Sender: kvm-owner@vger.kernel.org List-ID: While using the master clock among guests, when is it updated? Thought it had to be in pvclock_gtod_notify() but it only triggers update of : master_kernel_ns, master_cycle_now if clocksource changes away from TSC : if (gtod->clock.vclock_mode != VCLOCK_TSC && atomic_read(&kvm_guest_has_master_clock) != 0) queue_work(system_long_wq, &pvclock_gtod_work); And gtod work would set KVM_REQ_MASTERCLOCK_UPDATE if queued, which is not the case if always TSC. So kvm_guest_time_update() always uses same values is use_master_clock ? Maybe I missed some piece? --Mika