Thread (50 messages) flat view 50 messages, 4 authors, 2013-10-01

Re: [RFC PATCH 09/11] kvm: simplify processor compat check

From: Aneesh Kumar K.V <hidden>
Date: 2013-09-27 13:13:17
Also in: kvm

Alexander Graf [off-list ref] writes:
On 27.09.2013, at 12:03, Aneesh Kumar K.V wrote:
quoted
From: "Aneesh Kumar K.V" <redacted>
Missing patch description.
quoted
Signed-off-by: Aneesh Kumar K.V <redacted>
I fail to see how this really simplifies things, but at the end of the
day it's Gleb's and Paolo's call.
will do. It avoid calling 

	for_each_online_cpu(cpu) {
		smp_call_function_single() 

on multiple architecture.

We also want to make the smp call function a callback of opaque. Hence
this should be made arch specific. 

int kvm_arch_check_processor_compat(void *opaque)
{
	int r,cpu;
	struct kvmppc_ops *kvm_ops = (struct kvmppc_ops *)opaque;
	for_each_online_cpu(cpu) {
		smp_call_function_single(cpu,
					 kvm_ops->check_processor_compat,
					 &r, 1);
		if (r < 0)
			break;
	}
	return r;
}

against

-	for_each_online_cpu(cpu) {
-		smp_call_function_single(cpu,
-				kvm_arch_check_processor_compat,
-				&r, 1);
-		if (r < 0)
-			goto out_free_1;
-	}
+
+	r = kvm_arch_check_processor_compat(opaque);
+	if (r < 0)
+		goto out_free_1;


Which brings me to the next issue: You forgot to CC kvm@vger on your
patch set. Gleb and Paolo don't read kvm-ppc@vger. And they shouldn't
have to. Every kvm patch that you want review on or that should get
applied needs to be sent to kvm@vger. If you want to tag it as PPC
specific patch, do so by CC'ing kvm-ppc@vger.
Will do in the next update

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