From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Ehrhardt Date: Mon, 07 Apr 2008 12:43:45 +0000 Subject: Re: [kvm-ppc-devel] [PATCH] kvmppc: account guest time Message-Id: <47FA1701.3060705@linux.vnet.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="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: kvm-ppc@vger.kernel.org ehrhardt@linux.vnet.ibm.com wrote: > From: Developer Oops - wrong template file - should be: From: Christian Ehrhardt >=20 > This adds the support to account the guest and the host apart from each o= ther. > It uses the already available structure&flags PF_VCPU reported in /proc/s= tat > 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 n= eed > contributions to the userspace tools e.g. that read from there to bring t= hat > feature to the end customer. >=20 > Signed-off-by: Christian Ehrhardt > --- >=20 > [diffstat] > powerpc.c | 2 ++ > 1 files changed, 2 insertions(+) >=20 > 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); >=20 > local_irq_disable(); > + kvm_guest_enter(); > r =3D __kvmppc_vcpu_run(run, vcpu); > + kvm_guest_exit(); > local_irq_enable(); >=20 > if (vcpu->sigset_active) >=20 > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference=20 > Register now and save $200. Hurry, offer ends at 11:59 p.m.,=20 > Monday, April 7! Use priority code J8TLD2.=20 > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja= vaone > _______________________________________________ > kvm-ppc-devel mailing list > kvm-ppc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel --=20 Gr=FCsse / regards,=20 Christian Ehrhardt IBM Linux Technology Center, Open Virtualization ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference=20 Register now and save $200. Hurry, offer ends at 11:59 p.m.,=20 Monday, April 7! Use priority code J8TLD2.=20 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java= one _______________________________________________ kvm-ppc-devel mailing list kvm-ppc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel