Re: [kvm-devel] [PATCH 2/2][KVM] modify account_system_time() to add cputime to cpustat->guest

2007-08-10 Thread Laurent Vivier
You can find attached to this email the patch to apply to procps-3.2.7[1] to allow "top(1)" to display the cpu guest time. Laurent [1] http://procps.sf.net/procps-3.2.7.tar.gz -- - [EMAIL PROTECTED] -- "Software is hard" - Donald Knuth Index: procps-3.2.7/top.c

[kvm-devel] [PATCH 2/2][KVM] modify account_system_time() to add cputime to cpustat->guest

2007-08-10 Thread Laurent Vivier
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 allo