Thread (45 messages) 45 messages, 4 authors, 2007-06-06

Re: [patch 21/33] xen: Xen SMP guest support

From: Jan Beulich <hidden>
Date: 2007-06-06 07:33:50
Also in: lkml, xen-devel

quoted hunk ↗ jump to hunk
--- a/arch/i386/xen/time.c
+++ b/arch/i386/xen/time.c
@@ -105,17 +105,15 @@ static void get_runstate_snapshot(struct
	preempt_enable();
}

-static void setup_runstate_info(void)
+static void setup_runstate_info(int cpu)
{
	struct vcpu_register_runstate_memory_area area;

-	area.addr.v = &__get_cpu_var(runstate);
+	area.addr.v = &per_cpu(runstate, cpu);

	if (HYPERVISOR_vcpu_op(VCPUOP_register_runstate_memory_area,
			       smp_processor_id(), &area))
Shouldn't this be 'cpu' rather than 'smp_processor_id()'?
		BUG();
-
-	get_runstate_snapshot(&__get_cpu_var(runstate_snapshot));
}

static void do_stolen_accounting(void)
Jan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help