Kernel KVM-PPC virtualization development
 help / color / mirror / Atom feed
* [kvm-ppc-devel] [PATCH] kvmppc: account guest time
@ 2008-04-07 12:37 ehrhardt
  2008-04-07 12:43 ` Christian Ehrhardt
  2008-04-07 20:57 ` Hollis Blanchard
  0 siblings, 2 replies; 3+ messages in thread
From: ehrhardt @ 2008-04-07 12:37 UTC (permalink / raw)
  To: kvm-ppc

From: Developer <developer@de.ibm.com>

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 <ehrhardt@linux.vnet.ibm.com>
---

[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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-07 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-07 12:37 [kvm-ppc-devel] [PATCH] kvmppc: account guest time ehrhardt
2008-04-07 12:43 ` Christian Ehrhardt
2008-04-07 20:57 ` Hollis Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox