[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <46BC8B59.3060908@bull.net>
Date: Fri, 10 Aug 2007 17:59:21 +0200
From: Laurent Vivier <Laurent.Vivier@...l.net>
To: kvm-devel <kvm-devel@...ts.sourceforge.net>
Cc: linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH 2/2][KVM] modify account_system_time() to add cputime to cpustat->guest
modify account_system_time() to add cputime to cpustat->guest if we are running
a VCPU. We add this cputime to cpustat->user too instead of cpustat->system
because this part of KVM code is in fact user code although it is executed in
the kernel. We duplicate VCPU time between guest and user to allow an unmodified
"top(1)" to display correct value. A modified "top(1)" is able to display good
cpu user time and cpu guest time by subtracting cpu guest time from cpu user time.
Signed-Off-by: Laurent Vivier <Laurent.Vivier@...l.net>
--
------------- Laurent.Vivier@...l.net --------------
"Software is hard" - Donald Knuth
View attachment "kvm_stat_guest" of type "text/plain" (2319 bytes)
Powered by blists - more mailing lists