* [kvm-ppc-devel] [PATCH] Make sure guest sees CCR1[TCS] bit from
@ 2008-01-25 23:00 Jerone Young
0 siblings, 0 replies; only message in thread
From: Jerone Young @ 2008-01-25 23:00 UTC (permalink / raw)
To: kvm-ppc
This patch fixes a bug where the wrong clock period is being used by the
guest causing extreme long delays when the kernel makes a call to
udelay.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
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
@@ -535,6 +535,9 @@ int kvm_arch_vcpu_setup(struct kvm_vcpu
* before it's programmed its own IVPR. */
vcpu->arch.ivpr = 0x55550000;
+ /* make sure guest sees state of CCR1[TCS] */
+ vcpu->arch.ccr1 = mfspr(SPRN_CCR1);
+
return 0;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-25 23:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-25 23:00 [kvm-ppc-devel] [PATCH] Make sure guest sees CCR1[TCS] bit from Jerone Young
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.