From: Hollis Blanchard Date: Mon, 07 Apr 2008 20:57:09 +0000 Subject: Re: [kvm-ppc-devel] [PATCH] kvmppc: account guest time Message-Id: <200804071557.09685.hollisb@us.ibm.com> List-Id: References: <12075718501630-git-send-email-ehrhardt@linux.vnet.ibm.com> In-Reply-To: <12075718501630-git-send-email-ehrhardt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Monday 07 April 2008 07:37:28 ehrhardt@linux.vnet.ibm.com wrote: > 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) Thanks; applied. -- Hollis Blanchard IBM Linux Technology Center ------------------------------------------------------------------------- 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