From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 2/6] KVM: X86: Let kvm-clock report the right tsc frequency Date: Thu, 24 Mar 2011 11:58:02 +0200 Message-ID: <4D8B15AA.9010804@redhat.com> References: <1300952424-32014-1-git-send-email-joerg.roedel@amd.com> <1300952424-32014-3-git-send-email-joerg.roedel@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , Zachary Amsden , kvm@vger.kernel.org To: Joerg Roedel Return-path: Received: from mx1.redhat.com ([209.132.183.28]:20418 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752680Ab1CXJ6H (ORCPT ); Thu, 24 Mar 2011 05:58:07 -0400 In-Reply-To: <1300952424-32014-3-git-send-email-joerg.roedel@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: On 03/24/2011 09:40 AM, Joerg Roedel wrote: > This patch changes the kvm_guest_time_update function to use > TSC frequency the guest actually has for updating its clock. > > > > + bool (*use_virtual_tsc_khz)(struct kvm_vcpu *vcpu); Just put virtual_tsc_khz into vcpu->arch. If nonzero, consider it enabled. (we could even set it if we have a constant_tsc; to the real tsc frequency). -- error compiling committee.c: too many arguments to function