From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC 3/7] measure time out of guest Date: Sun, 29 Aug 2010 12:53:03 +0300 Message-ID: <4C7A2DFF.5070908@redhat.com> References: <1282772597-4183-1-git-send-email-glommer@redhat.com> <1282772597-4183-2-git-send-email-glommer@redhat.com> <1282772597-4183-3-git-send-email-glommer@redhat.com> <1282772597-4183-4-git-send-email-glommer@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, zamsden@redhat.com, mtosatti@redhat.com, riel@redhat.com To: Glauber Costa Return-path: Received: from mx1.redhat.com ([209.132.183.28]:63937 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752826Ab0H2JxE (ORCPT ); Sun, 29 Aug 2010 05:53:04 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7T9r4Kj001423 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 29 Aug 2010 05:53:04 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7T9r3Se007739 for ; Sun, 29 Aug 2010 05:53:04 -0400 In-Reply-To: <1282772597-4183-4-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/26/2010 12:43 AM, Glauber Costa wrote: > By measuring time between a vcpu_put and a vcpu_load, we can > estimate how much time did the guest stay out of the cpu. > This is exported to the guest at every clock update. > > Signed-off-by: Glauber Costa > --- > arch/x86/include/asm/kvm_host.h | 2 ++ > arch/x86/kvm/x86.c | 12 +++++++++++- > 2 files changed, 13 insertions(+), 1 deletions(-) > Could be put in common code, this is useful to at least s390. -- error compiling committee.c: too many arguments to function