* [PATCH] KVM: PPC: Remove comment saying SPRG1 is used for vcpu pointer
@ 2014-07-25 6:02 Bharat Bhushan
2014-07-25 6:07 ` Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Bharat Bhushan @ 2014-07-25 6:02 UTC (permalink / raw)
To: agraf, kvm-ppc; +Cc: kvm, scottwood, stuart.yoder, Bharat Bhushan
Scott Wood pointed out that We are no longer using SPRG1 for vcpu pointer,
but using SPRN_SPRG_THREAD <=> SPRG3 (thread->vcpu). So this comment
is not valid now.
Note: SPRN_SPRG3R is not supported (do not see any need as of now),
and if we want to support this in future then we have to shift to using
SPRG1 for VCPU pointer.
Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
---
arch/powerpc/include/asm/reg.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index 1f34ef7..d46d92b 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -945,9 +945,6 @@
* readable variant for reads, which can avoid a fault
* with KVM type virtualization.
*
- * (*) Under KVM, the host SPRG1 is used to point to
- * the current VCPU data structure
- *
* 32-bit 8xx:
* - SPRG0 scratch for exception vectors
* - SPRG1 scratch for exception vectors
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: PPC: Remove comment saying SPRG1 is used for vcpu pointer
2014-07-25 6:02 [PATCH] KVM: PPC: Remove comment saying SPRG1 is used for vcpu pointer Bharat Bhushan
@ 2014-07-25 6:07 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2014-07-25 6:07 UTC (permalink / raw)
To: Bharat Bhushan, kvm-ppc; +Cc: kvm, scottwood, stuart.yoder
On 25.07.14 08:02, Bharat Bhushan wrote:
> Scott Wood pointed out that We are no longer using SPRG1 for vcpu pointer,
> but using SPRN_SPRG_THREAD <=> SPRG3 (thread->vcpu). So this comment
> is not valid now.
>
> Note: SPRN_SPRG3R is not supported (do not see any need as of now),
> and if we want to support this in future then we have to shift to using
> SPRG1 for VCPU pointer.
>
> Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Thanks, applied to kvm-ppc-queue.
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-25 6:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25 6:02 [PATCH] KVM: PPC: Remove comment saying SPRG1 is used for vcpu pointer Bharat Bhushan
2014-07-25 6:07 ` Alexander Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox