Kernel KVM-PPC virtualization development
 help / color / mirror / Atom feed
From: ehrhardt@linux.vnet.ibm.com
To: kvm-ppc@vger.kernel.org
Subject: [kvm-ppc-devel] [PATCH] kvmppc: account guest time
Date: Mon, 07 Apr 2008 12:37:28 +0000	[thread overview]
Message-ID: <12075718501630-git-send-email-ehrhardt@linux.vnet.ibm.com> (raw)

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

             reply	other threads:[~2008-04-07 12:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-07 12:37 ehrhardt [this message]
2008-04-07 12:43 ` [kvm-ppc-devel] [PATCH] kvmppc: account guest time Christian Ehrhardt
2008-04-07 20:57 ` Hollis Blanchard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12075718501630-git-send-email-ehrhardt@linux.vnet.ibm.com \
    --to=ehrhardt@linux.vnet.ibm.com \
    --cc=kvm-ppc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox