Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751352AbdHCMf1 (ORCPT ); Thu, 3 Aug 2017 08:35:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38250 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbdHCMf0 (ORCPT ); Thu, 3 Aug 2017 08:35:26 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E682A7EA8D Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=pbonzini@redhat.com Subject: Re: [PATCH v4 07/10] KVM: x86: remove not used pvclock_gtod_copy To: Marcelo Tosatti , Denis Plotnikov Cc: rkrcmar@redhat.com, kvm@vger.kernel.org, john.stultz@linaro.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, x86@kernel.org, rkagan@virtuozzo.com, den@virtuozzo.com References: <1501684690-211093-1-git-send-email-dplotnikov@virtuozzo.com> <1501684690-211093-8-git-send-email-dplotnikov@virtuozzo.com> <20170802232131.GA20388@amt.cnet> From: Paolo Bonzini Message-ID: <5b46dad3-a81f-e908-70e5-e7a0f29318d1@redhat.com> Date: Thu, 3 Aug 2017 14:35:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170802232131.GA20388@amt.cnet> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 03 Aug 2017 12:35:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 567 Lines: 13 On 03/08/2017 01:21, Marcelo Tosatti wrote: >> - if (ka->use_master_clock || >> - (gtod->clock.vclock_mode == VCLOCK_TSC && vcpus_matched)) >> + if (ka->use_master_clock || vcpus_matched) >> kvm_make_request(KVM_REQ_MASTERCLOCK_UPDATE, vcpu); > Don't drop this. The masterclock scheme requires TSC for proper functioning > (or an analysis why its supposed with different HPET+TSC, for example). I think testing gtod->clock.vclock_mode is just an optimization? kvm_get_time_and_clockread would return false anyway and masterclock would not be enabled. Paolo