Thread (75 messages) 75 messages, 6 authors, 2012-10-08

RE: [RFC PATCH 03/17] KVM: PPC64: booke: Add EPCR support in sregs

flat view

From: Caraman Mihai Claudiu-B02008 <hidden>
Date: 2012-06-25 13:25:04
Also in: kvm

-----Original Message-----
From: Avi Kivity [mailto:avi@redhat.com]
Sent: Monday, June 25, 2012 4:00 PM
To: Caraman Mihai Claudiu-B02008
Cc: kvm-ppc@vger.kernel.org; kvm@vger.kernel.org; linuxppc-
dev@lists.ozlabs.org; qemu-ppc@nongnu.org
Subject: Re: [RFC PATCH 03/17] KVM: PPC64: booke: Add EPCR support in
sregs
=20
On 06/25/2012 03:26 PM, Mihai Caraman wrote:
quoted
Add KVM_SREGS_E_64 feature and EPCR spr support in get/set sregs for
64-bit hosts.

Signed-off-by: Mihai Caraman <redacted>
---
 arch/powerpc/kvm/booke.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index
f9fa260..d15c4b5 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -1052,6 +1052,9 @@ static void get_sregs_base(struct kvm_vcpu *vcpu,
 	u64 tb =3D get_tb();

 	sregs->u.e.features |=3D KVM_SREGS_E_BASE;
+#ifdef CONFIG_64BIT
+	sregs->u.e.features |=3D KVM_SREGS_E_64; #endif
=20
This is an ABI, but I see no trace of it in Documentation.
The ppc sregs documentation in api.txt redirects to arch/powerpc/include/as=
m/kvm.h.
Isn't this enough?

Mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help