Skip to contentSkip to conversation

KVM: PPC: allow ppc440gp to pass the compatibility check

PATCH In review Hollis Blanchard 2 participants 3 messages Jul 30, 2010 – Aug 2, 2010

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

PATCH 1/1 KVM: PPC: allow ppc440gp to pass the compatibility check

This is the only kernel patch needed for KVM on 440GP. However, there are a couple blockers in qemu at the moment, for which patches exist but are not yet upstream.

arch/powerpc/kvm/44x.c +2 -1
@@ -43,7 +43,7 @@ int kvmppc_core_check_processor_compat(v
 {
 	int r;
 
-	if (strcmp(cur_cpu_spec->platform, "ppc440") = 0)
+	if (strncmp(cur_cpu_spec->platform, "ppc440", 6) = 0)
 		r = 0;
 	else
 		r = -ENOTSUPP;
@@ -72,6 +72,7 @@ int kvmppc_core_vcpu_setup(struct kvm_vc
 	/* Since the guest can directly access the timebase, it must know the
 	 * real timebase frequency. Accordingly, it must see the state of
 	 * CCR1[TCS]. */
+	/* XXX CCR1 doesn't exist on all 440 SoCs. */
 	vcpu->arch.ccr1 = mfspr(SPRN_CCR1);
 
 	for (i = 0; i < ARRAY_SIZE(vcpu_44x->shadow_refs); i++)
#1 lore raw
Quoted 5 lines · Hollis Blanchard

This is the only kernel patch needed for KVM on 440GP. However, there are a couple blockers in qemu at the moment, for which patches exist but are not yet upstream.

Please give this a proper patch description. The changes look good.

Alex

#2 lore raw
In reply to Hollis Blanchard
Quoted 10 lines · Alexander Graf
Quoted 5 lines · Hollis Blanchard

This is the only kernel patch needed for KVM on 440GP. However, there are a couple blockers in qemu at the moment, for which patches exist but are not yet upstream.

Please give this a proper patch description. The changes look good.

Oh and please CC [email protected] when resubmitting with a good description :).

Alex