From mboxrd@z Thu Jan 1 00:00:00 1970 From: ehrhardt@linux.vnet.ibm.com Date: Mon, 07 Apr 2008 12:37:28 +0000 Subject: [kvm-ppc-devel] [PATCH] kvmppc: account guest time Message-Id: <12075718501630-git-send-email-ehrhardt@linux.vnet.ibm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org From: Developer This adds the support to account the guest and the host apart from each other. It uses the already available structure&flags PF_VCPU reported in /proc/stat and the kvm_guest_enter/exit already available in kvm_host.h. After that patch the data is available in the proc file system. We will need contributions to the userspace tools e.g. that read from there to bring that feature to the end customer. Signed-off-by: Christian Ehrhardt --- [diffstat] powerpc.c | 2 ++ 1 files changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -868,7 +868,9 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_v kvmppc_check_and_deliver_interrupts(vcpu); local_irq_disable(); + kvm_guest_enter(); r = __kvmppc_vcpu_run(run, vcpu); + kvm_guest_exit(); local_irq_enable(); if (vcpu->sigset_active) ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ kvm-ppc-devel mailing list kvm-ppc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel