Skip to contentSkip to conversation

Make sure guest sees CCR1[TCS] bit from

PATCH New Jerone Young 1 participant 1 message Jan 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make sure guest sees CCR1[TCS] bit from

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.

arch/powerpc/kvm/powerpc.c +3 -0
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel