From: "Jan Beulich" Subject: Re: [PATCH] adjust the way cpumasks get passed around(v2) Date: Tue, 26 May 2009 12:53:45 +0100 Message-ID: <4A1BF4690200007800002864@vpn.id2.novell.com> References: <4A1AB8F3020000780000269F@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB893E459.1__=" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartB893E459.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline >>> Keir Fraser 26.05.09 12:58 >>> >On 25/05/2009 14:27, "Jan Beulich" wrote: > >> Rather than passing cpumasks by value in all cases (which is problematic= >> for large NR_CPUS configurations), pass them 'by reference' (i.e. >> through a pointer to a const cpumask). >>=20 >> On x86 this changes send_IPI_mask() to always only send IPIs to remote >> CPUs (meaning any caller needing to handle the current CPU as well has >> to do so on its own). > >This doesn't apply. Can you refresh or try sending as an email attachment >(may as well do same for the dependent 'remove unused parameter of >on_selected_cpu' patch as well). Both attached. I'll have to do some looking around to see why all of the = sudden such problems are happening again. Jan --=__PartB893E459.1__= Content-Type: text/plain; name="xen-smp-call-func-cleanup.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-smp-call-func-cleanup.patch" Remove the unused "retry" parameter of on_selected_cpus(),=0Aon_each_cpu(),= smp_call_function(), and smp_call_function_single().=0A=0AIA64 changes = compile-tested only.=0A=0AWill only apply cleanly with the earlier sent = cpumask passing patch=0Aapplied first.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- 2009-05-19.orig/xen/arch/ia64/linux-xen/mca.= c 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/= linux-xen/mca.c 2009-05-25 08:57:39.000000000 +0200=0A@@ -956,7 +956,7 @@ = ia64_mca_cmc_vector_enable (void *dummy)=0A static void=0A ia64_mca_cmc_vec= tor_disable_keventd(void *unused)=0A {=0A- on_each_cpu(ia64_mca_cmc_ve= ctor_disable, NULL, 1, 0);=0A+ on_each_cpu(ia64_mca_cmc_vector_disable, = NULL, 0);=0A }=0A =0A /*=0A@@ -968,7 +968,7 @@ ia64_mca_cmc_vector_disable_= keventd(void=0A static void=0A ia64_mca_cmc_vector_enable_keventd(void = *unused)=0A {=0A- on_each_cpu(ia64_mca_cmc_vector_enable, NULL, 1, = 0);=0A+ on_each_cpu(ia64_mca_cmc_vector_enable, NULL, 0);=0A }=0A #endif = /* !XEN */=0A =0A--- 2009-05-19.orig/xen/arch/ia64/linux-xen/perfmon.c = 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/linux-xe= n/perfmon.c 2009-05-25 09:06:23.000000000 +0200=0A@@ -1895,7 +1895,7 = @@ pfm_syswide_cleanup_other_cpu(pfm_contex=0A int ret;=0A =0A = DPRINT(("calling CPU%d for cleanup\n", ctx->ctx_cpu));=0A- ret =3D = smp_call_function_single(ctx->ctx_cpu, pfm_syswide_force_stop, ctx, 0, = 1);=0A+ ret =3D smp_call_function_single(ctx->ctx_cpu, pfm_syswide_force_st= op, ctx, 1);=0A DPRINT(("called CPU%d for cleanup ret=3D%d\n", = ctx->ctx_cpu, ret));=0A }=0A #endif /* CONFIG_SMP */=0A@@ -6895,7 +6895,7 = @@ pfm_install_alt_pmu_interrupt(pfm_intr_h=0A }=0A =0A /* save = the current system wide pmu states */=0A- ret =3D on_each_cpu(pfm_alt= _save_pmu_state, NULL, 0, 1);=0A+ ret =3D on_each_cpu(pfm_alt_save_pm= u_state, NULL, 1);=0A if (ret) {=0A DPRINT(("on_each_cpu() = failed: %d\n", ret));=0A goto cleanup_reserve;=0A@@ -6940,7 = +6940,7 @@ pfm_remove_alt_pmu_interrupt(pfm_intr_ha=0A =0A pfm_alt_int= r_handler =3D NULL;=0A =0A- ret =3D on_each_cpu(pfm_alt_restore_pmu_sta= te, NULL, 0, 1);=0A+ ret =3D on_each_cpu(pfm_alt_restore_pmu_state, = NULL, 1);=0A if (ret) {=0A DPRINT(("on_each_cpu() failed: = %d\n", ret));=0A }=0A@@ -7499,7 +7499,7 @@ xenpfm_context_load(XEN_G= UEST_HANDLE(pfa=0A =0A BUG_ON(in_irq());=0A spin_lock(&xenpfm_context_l= ock);=0A- smp_call_function(&xenpfm_context_load_cpu, &arg, 1, = 1);=0A+ smp_call_function(&xenpfm_context_load_cpu, &arg, 1);=0A = xenpfm_context_load_cpu(&arg);=0A spin_unlock(&xenpfm_context_lock);= =0A for_each_online_cpu(cpu) {=0A@@ -7553,7 +7553,7 @@ xenpfm_context_u= nload(void)=0A return error;=0A }=0A =0A- smp_call_fu= nction(&xenpfm_context_unload_cpu, &arg, 1, 1);=0A+ smp_call_function(&= xenpfm_context_unload_cpu, &arg, 1);=0A xenpfm_context_unload_cpu(&= arg);=0A spin_unlock(&xenpfm_context_lock);=0A for_each_online_cpu= (cpu) {=0A--- 2009-05-19.orig/xen/arch/ia64/linux-xen/smp.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/linux-xen/smp.c = 2009-05-25 09:06:01.000000000 +0200=0A@@ -274,7 +274,7 @@ smp_send_reschedu= le (int cpu)=0A void=0A smp_flush_tlb_all (void)=0A {=0A- on_each_cpu= ((void (*)(void *))local_flush_tlb_all, NULL, 1, 1);=0A+ on_each_cpu= ((void (*)(void *))local_flush_tlb_all, NULL, 1);=0A }=0A =0A void=0A@@ = -297,7 +297,7 @@ smp_flush_tlb_mm (struct mm_struct *mm)=0A * anyhow, = and once a CPU is interrupted, the cost of local_flush_tlb_all() is=0A * = rather trivial.=0A */=0A- on_each_cpu((void (*)(void *))local_finish_= flush_tlb_mm, mm, 1, 1);=0A+ on_each_cpu((void (*)(void *))local_finish_= flush_tlb_mm, mm, 1);=0A }=0A #endif=0A =0A@@ -314,7 +314,7 @@ smp_flush_tl= b_mm (struct mm_struct *mm)=0A */=0A =0A int=0A-smp_call_function_single = (int cpuid, void (*func) (void *info), void *info, int nonatomic,=0A+smp_ca= ll_function_single (int cpuid, void (*func) (void *info), void *info,=0A = int wait)=0A {=0A struct call_data_struct data;=0A@@ = -372,7 +372,6 @@ EXPORT_SYMBOL(smp_call_function_single);=0A * [SUMMARY] = Run a function on all other CPUs.=0A * The function to run. This = must be fast and non-blocking.=0A * An arbitrary pointer to = pass to the function.=0A- * currently unused.=0A * = If true, wait (atomically) until function has completed on other = CPUs.=0A * [RETURNS] 0 on success, else a negative status code.=0A = *=0A@@ -383,7 +382,7 @@ EXPORT_SYMBOL(smp_call_function_single);=0A * = hardware interrupt handler or from a bottom half handler.=0A */=0A = int=0A-smp_call_function (void (*func) (void *info), void *info, int = nonatomic, int wait)=0A+smp_call_function (void (*func) (void *info), void = *info, int wait)=0A {=0A struct call_data_struct data;=0A = int cpus =3D num_online_cpus()-1;=0A@@ -438,7 +437,7 @@ EXPORT_SYMBOL(smp_c= all_function);=0A #ifdef XEN=0A int=0A on_selected_cpus(const cpumask_t = *selected, void (*func) (void *info),=0A- void *info, int = retry, int wait)=0A+ void *info, int wait)=0A {=0A = struct call_data_struct data;=0A unsigned int cpu, nr_cpus =3D = cpus_weight(*selected);=0A--- 2009-05-19.orig/xen/arch/ia64/linux-xen/smpbo= ot.c 2009-04-29 10:33:23.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/= linux-xen/smpboot.c 2009-05-25 09:06:15.000000000 +0200=0A@@ -307,7 = +307,7 @@ ia64_sync_itc (unsigned int master)=0A =0A go[MASTER] =3D = 1;=0A =0A- if (smp_call_function_single(master, sync_master, NULL, 1, = 0) < 0) {=0A+ if (smp_call_function_single(master, sync_master, NULL, 0) = < 0) {=0A printk(KERN_ERR "sync_itc: failed to get attention = of CPU %u!\n", master);=0A return;=0A }=0A--- 2009-05-19.= orig/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/linux-xen/sn/kernel= /sn2_smp.c 2009-05-25 08:57:39.000000000 +0200=0A@@ -240,7 +240,7 @@ = sn2_global_tlb_purge(unsigned long start=0A flush_data.end =3D = end;=0A flush_data.nbits =3D nbits;=0A on_selected= _cpus(&selected_cpus, sn_flush_ptcga_cpu,=0A- = &flush_data, 1, 1);=0A+ &flush_data, 1);=0A = }=0A spin_unlock(&sn2_ptcg_lock2);=0A }=0A--- 2009-05-19.orig/xen/arch/i= a64/vmx/vmmu.c 2008-12-03 10:55:24.000000000 +0100=0A+++ 2009-05-19/xen/ar= ch/ia64/vmx/vmmu.c 2009-05-25 09:06:45.000000000 +0200=0A@@ -448,8 = +448,7 @@ IA64FAULT vmx_vcpu_ptc_ga(VCPU *vcpu, u6=0A if (cpu = !=3D current->processor) {=0A spin_barrier(&per_cpu(schedul= e_data, cpu).schedule_lock);=0A /* Flush VHPT on remote = processors. */=0A- smp_call_function_single(cpu, &ptc_ga_rem= ote_func,=0A- &args, 0, 1);=0A+ = smp_call_function_single(cpu, &ptc_ga_remote_func, &args, = 1);=0A } else {=0A ptc_ga_remote_func(&args);= =0A }=0A--- 2009-05-19.orig/xen/arch/ia64/vmx/vtlb.c = 2009-01-08 10:30:05.000000000 +0100=0A+++ 2009-05-19/xen/arch/ia64/vmx/vtlb= .c 2009-05-25 09:06:50.000000000 +0200=0A@@ -643,7 +643,7 @@ void = vmx_vcpu_flush_vtlb_all(VCPU *v)=0A if (v->processor =3D=3D smp_process= or_id())=0A __thash_purge_all(v);=0A else=0A- smp_call_f= unction_single(v->processor, __thash_purge_all, v, 1, 1);=0A+ = smp_call_function_single(v->processor, __thash_purge_all, v, 1);=0A = vcpu_unpause(v);=0A }=0A =0A--- 2009-05-19.orig/xen/arch/ia64/xen/cpufreq/c= pufreq.c 2009-01-08 10:30:05.000000000 +0100=0A+++ 2009-05-19/xen/ar= ch/ia64/xen/cpufreq/cpufreq.c 2009-05-25 09:08:06.000000000 +0200=0A@@ = -95,8 +95,7 @@ acpi_cpufreq_get (unsigned int cpu)=0A if (cpu =3D=3D = smp_processor_id())=0A processor_get_freq((void*)&freq);=0A = else=0A- smp_call_function_single(cpu, processor_get_freq,= =0A- (void *)&freq, 0, 1);=0A+ = smp_call_function_single(cpu, processor_get_freq, &freq, 1);=0A =0A = return freq;=0A }=0A@@ -143,8 +142,7 @@ processor_set_freq (struct = acpi_cpufreq_=0A if (cpu =3D=3D smp_processor_id())=0A = processor_set_pstate((void *)&value);=0A else=0A- = smp_call_function_single(cpu, processor_set_pstate,=0A- = (void *)&value, 0, 1);=0A+ smp_call_function_single(cpu, = processor_set_pstate, &value, 1);=0A =0A if (value) {=0A = printk(KERN_WARNING "Transition failed\n");=0A--- 2009-05-19.orig/xen/arch/= ia64/xen/flushtlb.c 2009-05-25 09:04:30.000000000 +0200=0A+++ = 2009-05-19/xen/arch/ia64/xen/flushtlb.c 2009-05-25 08:57:39.000000000 = +0200=0A@@ -70,7 +70,7 @@ void=0A new_tlbflush_clock_period(void)=0A {=0A = /* flush all vhpt of physical cpu and mTLB */=0A- on_each_cpu(tlbflus= h_clock_local_flush, NULL, 1, 1);=0A+ on_each_cpu(tlbflush_clock_local_f= lush, NULL, 1);=0A =0A /*=0A * if global TLB shootdown is = finished, increment tlbflush_time=0A--- 2009-05-19.orig/xen/arch/ia64/xen/f= w_emul.c 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/ar= ch/ia64/xen/fw_emul.c 2009-05-25 09:08:30.000000000 +0200=0A@@ -281,7 = +281,7 @@ sal_emulator (long index, unsigned long =0A = IA64_SAL_DEBUG("SAL_GET_STATE_INFO: remote\n");=0A = ret =3D smp_call_function_single(e->cpuid,=0A = get_state_info_on,=0A- = &arg, 0, 1);=0A+ = &arg, 1);=0A if = (ret < 0) {=0A printk("SAL_GET_STATE_INFO = "=0A "smp_call_function_single = error:"=0A@@ -344,7 +344,7 @@ sal_emulator (long index, unsigned long =0A = int ret;=0A IA64_SAL_DE= BUG("SAL_CLEAR_STATE_INFO: remote\n");=0A = ret =3D smp_call_function_single(e->cpuid,=0A- = clear_state_info_on, &arg, 0, 1);=0A+ = clear_state_info_on, &arg, 1);=0A if (ret < = 0) {=0A printk("sal_emulator: "=0A = "SAL_CLEAR_STATE_INFO = "=0A@@ -845,8 +845,7 @@ xen_pal_emulator(unsigned long index, u6=0A = .progress =3D 0,=0A .status = =3D 0=0A };=0A- smp_call_function(r= emote_pal_cache_flush,=0A- (void = *)&args, 1, 1);=0A+ smp_call_function(remote_pal_cache_= flush, &args, 1);=0A if (args.status !=3D 0)=0A = panic_domain(NULL, "PAL_CACHE_FLUSH ERROR, "=0A = "remote status %lx", args.status);=0A@@ = -945,7 +944,7 @@ xen_pal_emulator(unsigned long index, u6=0A = /* must be performed on all remote processors =0A = in the coherence domain. */=0A smp_call_function(remote_pa= l_prefetch_visibility,=0A- (void = *)in1, 1, 1);=0A+ (void *)in1, = 1);=0A status =3D 1; /* no more necessary on remote = processor */=0A }=0A break;=0A@@ -953,7 +952,7 = @@ xen_pal_emulator(unsigned long index, u6=0A status =3D = ia64_pal_mc_drain();=0A /* FIXME: All vcpus likely call = PAL_MC_DRAIN.=0A That causes the congestion. */=0A- = smp_call_function(remote_pal_mc_drain, NULL, 1, 1);=0A+ smp_call_fu= nction(remote_pal_mc_drain, NULL, 1);=0A break;=0A = case PAL_BRAND_INFO:=0A if (in1 =3D=3D 0) {=0A--- = 2009-05-19.orig/xen/arch/ia64/xen/vhpt.c 2009-05-25 09:04:30.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/ia64/xen/vhpt.c 2009-05-25 = 09:11:02.000000000 +0200=0A@@ -307,7 +307,7 @@ void domain_flush_vtlb_all(s= truct domain=0A // takes care of mTLB flush.=0A = smp_call_function_single(v->processor,=0A = __vcpu_flush_vtlb_all,=0A- = v, 1, 1);=0A+ = v, 1);=0A }=0A perfc_incr(domain_flush_vtlb_all);=0A }=0A@@ = -513,9 +513,9 @@ void domain_flush_tlb_vhpt(struct domain=0A {=0A /* = Very heavy... */=0A if (HAS_PERVCPU_VHPT(d) || is_hvm_domain(d))=0A- = on_each_cpu((void (*)(void *))local_flush_tlb_all, NULL, 1, = 1);=0A+ on_each_cpu((void (*)(void *))local_flush_tlb_all, NULL, = 1);=0A else=0A- on_each_cpu((void (*)(void *))flush_tlb_vhp= t_all, d, 1, 1);=0A+ on_each_cpu((void (*)(void *))flush_tlb_vhp= t_all, d, 1);=0A cpus_clear (d->domain_dirty_cpumask);=0A }=0A = =0A@@ -532,7 +532,7 @@ void flush_tlb_for_log_dirty(struct doma=0A = thash_purge_all(v);=0A }=0A smp_call_function((= void (*)(void *))local_flush_tlb_all, =0A- = NULL, 1, 1);=0A+ NULL, 1);=0A } = else if (HAS_PERVCPU_VHPT(d)) {=0A for_each_vcpu (d, v) {=0A = if (!v->is_initialised)=0A@@ -541,9 +541,9 @@ void = flush_tlb_for_log_dirty(struct doma=0A vcpu_purge_tr_entry= (&PSCBX(v,itlb));=0A vcpu_vhpt_flush(v);=0A = }=0A- on_each_cpu((void (*)(void *))local_flush_tlb_all, NULL, = 1, 1);=0A+ on_each_cpu((void (*)(void *))local_flush_tlb_all, = NULL, 1);=0A } else {=0A- on_each_cpu((void (*)(void = *))flush_tlb_vhpt_all, d, 1, 1);=0A+ on_each_cpu((void (*)(void = *))flush_tlb_vhpt_all, d, 1);=0A }=0A cpus_clear (d->domain_dirty= _cpumask);=0A }=0A@@ -562,7 +562,7 @@ void flush_tlb_mask(const cpumask_t = *mas=0A for_each_cpu_mask (cpu, *mask)=0A if (cpu !=3D = smp_processor_id())=0A smp_call_function_single=0A- = (cpu, (void (*)(void *))flush_tlb_vhpt_all, NULL, 1, 1);=0A+ = (cpu, (void (*)(void *))flush_tlb_vhpt_all, NULL, 1);=0A }=0A =0A = #ifdef PERF_COUNTERS=0A--- 2009-05-19.orig/xen/arch/x86/acpi/cpufreq/cpufre= q.c 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/a= cpi/cpufreq/cpufreq.c 2009-05-25 08:57:39.000000000 +0200=0A@@ -186,7 = +186,7 @@ static void drv_read(struct drv_cmd *cmd=0A if (likely(cpu_is= set(smp_processor_id(), cmd->mask)))=0A do_drv_read((void = *)cmd);=0A else=0A- on_selected_cpus(&cmd->mask, do_drv_read, = (void *)cmd, 0, 1);=0A+ on_selected_cpus(&cmd->mask, do_drv_read, = cmd, 1);=0A }=0A =0A static void drv_write(struct drv_cmd *cmd)=0A@@ = -195,7 +195,7 @@ static void drv_write(struct drv_cmd *cm=0A = cpu_isset(smp_processor_id(), cmd->mask))=0A do_drv_write((void = *)cmd);=0A else=0A- on_selected_cpus(&cmd->mask, do_drv_write, = (void *)cmd, 0, 0);=0A+ on_selected_cpus(&cmd->mask, do_drv_write, = cmd, 0);=0A }=0A =0A static u32 get_cur_val(cpumask_t mask)=0A@@ -303,7 = +303,7 @@ static unsigned int get_measured_perf(un=0A read_measured= _perf_ctrs((void *)&readin);=0A } else {=0A on_selected_cpus(cp= umask_of(cpu), read_measured_perf_ctrs,=0A- (void = *)&readin, 0, 1);=0A+ &readin, 1);=0A }=0A =0A = cur.aperf.whole =3D readin.aperf.whole - saved->aperf.whole;=0A--- = 2009-05-19.orig/xen/arch/x86/acpi/cpufreq/powernow.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/acpi/cpufreq/powerno= w.c 2009-05-25 08:57:39.000000000 +0200=0A@@ -121,7 +121,7 @@ static = int powernow_cpufreq_target(struc=0A =0A cmd.val =3D next_perf_state;= =0A =0A- on_selected_cpus(&cmd.mask, transition_pstate, (void *) &cmd, = 0, 0);=0A+ on_selected_cpus(&cmd.mask, transition_pstate, &cmd, 0);=0A = =0A perf->state =3D next_perf_state;=0A policy->cur =3D freqs.new;= =0A--- 2009-05-19.orig/xen/arch/x86/cpu/amd.c 2009-05-25 09:04:30.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/x86/cpu/amd.c 2009-05-25 = 08:57:39.000000000 +0200=0A@@ -246,7 +246,7 @@ static void check_disable_c1= e(unsigned i=0A {=0A /* C1E is sometimes enabled during entry to ACPI = mode. */=0A if ((port =3D=3D acpi_smi_cmd) && (value =3D=3D acpi_enable= _value))=0A- on_each_cpu(disable_c1e, NULL, 1, 1);=0A+ = on_each_cpu(disable_c1e, NULL, 1);=0A }=0A =0A static void __devinit = init_amd(struct cpuinfo_x86 *c)=0A--- 2009-05-19.orig/xen/arch/x86/cpu/mche= ck/amd_nonfatal.c 2009-05-25 09:04:30.000000000 +0200=0A+++ = 2009-05-19/xen/arch/x86/cpu/mcheck/amd_nonfatal.c 2009-05-25 = 08:57:39.000000000 +0200=0A@@ -133,7 +133,7 @@ void mce_amd_checkregs(void = *info)=0A */=0A static void mce_amd_work_fn(void *data)=0A {=0A- = on_each_cpu(mce_amd_checkregs, data, 1, 1);=0A+ on_each_cpu(mce_amd_checkre= gs, data, 1);=0A =0A if (adjust > 0) {=0A if (!guest_enabled_= event(dom0->vcpu[0], VIRQ_MCA) ) {=0A--- 2009-05-19.orig/xen/arch/x86/cpu/m= check/mce.c 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/ar= ch/x86/cpu/mcheck/mce.c 2009-05-25 08:57:39.000000000 +0200=0A@@ -1162,8 = +1162,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u=0A if = (log_cpus =3D=3D NULL)=0A return x86_mcerr("d= o_mca cpuinfo", -ENOMEM);=0A =0A- if (on_each_cpu(do_= mc_get_cpu_info, log_cpus,=0A- 1, 1) !=3D 0) {=0A+ = if (on_each_cpu(do_mc_get_cpu_info, log_cpus, 1)) {=0A = xfree(log_cpus);=0A return x86_mcerr("d= o_mca cpuinfo", -EIO);=0A }=0A@@ -1206,7 +1205,7 @@ = long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u=0A add_taint(TAINT_ERR= OR_INJECT);=0A =0A on_selected_cpus(cpumask_of(target), = x86_mc_msrinject,=0A- mc_msrinject, 1, 1);=0A+ = mc_msrinject, 1);=0A =0A break;=0A = =0A@@ -1226,7 +1225,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u=0A = add_taint(TAINT_ERROR_INJECT);=0A =0A on_selected_cpus(cpumask_of= (target), x86_mc_mceinject,=0A- mc_mceinject, 1, = 1);=0A+ mc_mceinject, 1);=0A break;=0A = =0A default:=0A--- 2009-05-19.orig/xen/arch/x86/cpu/mcheck/mce_intel.c = 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/cpu/mchec= k/mce_intel.c 2009-05-25 08:57:39.000000000 +0200=0A@@ -632,7 +632,7 @@ = static void __cpu_mcheck_distribute_cmci=0A void cpu_mcheck_distribute_cmci= (void)=0A {=0A if (cmci_support && !mce_disabled)=0A- on_each_cp= u(__cpu_mcheck_distribute_cmci, NULL, 0, 0);=0A+ on_each_cpu(__cpu_m= check_distribute_cmci, NULL, 0);=0A }=0A =0A static void clear_cmci(void)= =0A--- 2009-05-19.orig/xen/arch/x86/cpu/mcheck/non-fatal.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/cpu/mcheck/non-fatal= .c 2009-05-25 08:57:39.000000000 +0200=0A@@ -69,7 +69,7 @@ static = void mce_checkregs (void *info)=0A =0A static void mce_work_fn(void = *data)=0A { =0A- on_each_cpu(mce_checkregs, NULL, 1, 1);=0A+ = on_each_cpu(mce_checkregs, NULL, 1);=0A =0A if (variable_period) {=0A = if (adjust)=0A--- 2009-05-19.orig/xen/arch/x86/cpu/mtrr/main.c = 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/cpu/mtrr/= main.c 2009-05-25 08:57:39.000000000 +0200=0A@@ -229,7 +229,7 @@ static = void set_mtrr(unsigned int reg, u=0A atomic_set(&data.gate,0);=0A =0A = /* Start the ball rolling on other CPUs */=0A- if (smp_call_functi= on(ipi_handler, &data, 1, 0) !=3D 0)=0A+ if (smp_call_function(ipi_h= andler, &data, 0) !=3D 0)=0A panic("mtrr: timed out waiting for = other CPUs\n");=0A =0A local_irq_save(flags);=0A@@ -688,7 +688,7 @@ void = mtrr_save_state(void)=0A if (cpu =3D=3D 0)=0A mtrr_save_f= ixed_ranges(NULL);=0A else=0A- on_selected_cpus(cpumask_of= (0), mtrr_save_fixed_ranges, NULL, 1, 1);=0A+ on_selected_cpus(cp= umask_of(0), mtrr_save_fixed_ranges, NULL, 1);=0A put_cpu();=0A }=0A = =0A--- 2009-05-19.orig/xen/arch/x86/hvm/hvm.c 2009-05-25 09:04:30.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/x86/hvm/hvm.c 2009-05-25 = 08:57:39.000000000 +0200=0A@@ -971,7 +971,7 @@ int hvm_set_cr0(unsigned = long value)=0A if ( !v->domain->arch.hvm_domain.is_in_uc_mode = )=0A {=0A /* Flush physical caches. */=0A- = on_each_cpu(local_flush_cache, NULL, 1, 1);=0A+ = on_each_cpu(local_flush_cache, NULL, 1);=0A hvm_set_uc_mode= (v, 1);=0A }=0A spin_unlock(&v->domain->arch.hvm_do= main.uc_lock);=0A--- 2009-05-19.orig/xen/arch/x86/hvm/svm/svm.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/hvm/svm/svm.c = 2009-05-25 08:57:40.000000000 +0200=0A@@ -1173,7 +1173,7 @@ static void = wbinvd_ipi(void *info)=0A static void svm_wbinvd_intercept(void)=0A {=0A = if ( has_arch_pdevs(current->domain) )=0A- on_each_cpu(wbinvd_ipi,= NULL, 1, 1);=0A+ on_each_cpu(wbinvd_ipi, NULL, 1);=0A }=0A =0A = static void svm_vmexit_do_invalidate_cache(struct cpu_user_regs *regs)=0A--= - 2009-05-19.orig/xen/arch/x86/hvm/vmx/vmcs.c 2009-05-25 09:04:30.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/x86/hvm/vmx/vmcs.c 2009-05-25 = 08:57:40.000000000 +0200=0A@@ -264,7 +264,7 @@ static void vmx_clear_vmcs(s= truct vcpu *=0A int cpu =3D v->arch.hvm_vmx.active_cpu;=0A =0A if = ( cpu !=3D -1 )=0A- on_selected_cpus(cpumask_of(cpu), __vmx_clear_vm= cs, v, 1, 1);=0A+ on_selected_cpus(cpumask_of(cpu), __vmx_clear_vmcs= , v, 1);=0A }=0A =0A static void vmx_load_vmcs(struct vcpu *v)=0A@@ -899,7 = +899,7 @@ void vmx_do_resume(struct vcpu *v)=0A {=0A = int cpu =3D v->arch.hvm_vmx.active_cpu;=0A if ( cpu !=3D -1 = )=0A- on_selected_cpus(cpumask_of(cpu), wbinvd_ipi, NULL, = 1, 1);=0A+ on_selected_cpus(cpumask_of(cpu), wbinvd_ipi, = NULL, 1);=0A }=0A =0A vmx_clear_vmcs(v);=0A--- 2009-05-19.o= rig/xen/arch/x86/hvm/vmx/vmx.c 2009-05-25 09:04:30.000000000 +0200=0A+++ = 2009-05-19/xen/arch/x86/hvm/vmx/vmx.c 2009-05-25 08:57:40.000000000 = +0200=0A@@ -1219,7 +1219,7 @@ void ept_sync_domain(struct domain *d)=0A = if ( d->arch.hvm_domain.hap_enabled && d->vcpu[0] )=0A {=0A = ASSERT(local_irq_is_enabled());=0A- on_each_cpu(__ept_sync_domain, = d, 1, 1);=0A+ on_each_cpu(__ept_sync_domain, d, 1);=0A }=0A = }=0A =0A@@ -2130,7 +2130,7 @@ static void vmx_wbinvd_intercept(void)=0A = return;=0A =0A if ( cpu_has_wbinvd_exiting )=0A- on_each_cp= u(wbinvd_ipi, NULL, 1, 1);=0A+ on_each_cpu(wbinvd_ipi, NULL, 1);=0A = else=0A wbinvd();=0A }=0A--- 2009-05-19.orig/xen/arch/x86/irq.c= 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/i= rq.c 2009-05-25 08:57:40.000000000 +0200=0A@@ -516,7 +516,7 @@ static = void __pirq_guest_eoi(struct doma=0A }=0A =0A if ( !cpus_empty(cpu_= eoi_map) )=0A- on_selected_cpus(&cpu_eoi_map, set_eoi_ready, desc, = 1, 0);=0A+ on_selected_cpus(&cpu_eoi_map, set_eoi_ready, desc, = 0);=0A }=0A =0A int pirq_guest_eoi(struct domain *d, int irq)=0A@@ -755,7 = +755,7 @@ static irq_guest_action_t *__pirq_guest_=0A {=0A = cpu_eoi_map =3D action->cpu_eoi_map;=0A spin_unlock_irq(&de= sc->lock);=0A- on_selected_cpus(&cpu_eoi_map, set_eoi_ready, = desc, 1, 0);=0A+ on_selected_cpus(&cpu_eoi_map, set_eoi_ready, = desc, 0);=0A spin_lock_irq(&desc->lock);=0A }=0A = break;=0A@@ -793,7 +793,7 @@ static irq_guest_action_t *__pirq_guest_=0A = {=0A BUG_ON(action->ack_type !=3D ACKTYPE_EOI);=0A = spin_unlock_irq(&desc->lock);=0A- on_selected_cpus(&cpu_eoi_map, = set_eoi_ready, desc, 1, 1);=0A+ on_selected_cpus(&cpu_eoi_map, = set_eoi_ready, desc, 1);=0A spin_lock_irq(&desc->lock);=0A = }=0A =0A--- 2009-05-19.orig/xen/arch/x86/machine_kexec.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/machine_kexec.c = 2009-05-25 08:57:40.000000000 +0200=0A@@ -100,7 +100,7 @@ void machine_rebo= ot_kexec(xen_kexec_imag=0A if ( reboot_cpu_id !=3D smp_processor_id() = )=0A {=0A on_selected_cpus(cpumask_of(reboot_cpu_id), = __machine_reboot_kexec,=0A- image, 1, 0);=0A+ = image, 0);=0A for (;;)=0A ; /* = nothing */=0A }=0A--- 2009-05-19.orig/xen/arch/x86/oprofile/nmi_int.c = 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/oprofile/= nmi_int.c 2009-05-25 08:57:40.000000000 +0200=0A@@ -186,7 +186,7 @@ = static void nmi_cpu_setup(void * dummy)=0A =0A int nmi_setup_events(void)= =0A {=0A- on_each_cpu(nmi_cpu_setup, NULL, 0, 1);=0A+ on_each_cpu= (nmi_cpu_setup, NULL, 1);=0A return 0;=0A }=0A =0A@@ -207,7 +207,7 @@ = int nmi_reserve_counters(void)=0A /* We need to serialize save and = setup for HT because the subset=0A * of msrs are distinct for save = and setup operations=0A */=0A- on_each_cpu(nmi_save_registers, = NULL, 0, 1);=0A+ on_each_cpu(nmi_save_registers, NULL, 1);=0A = return 0;=0A }=0A =0A@@ -256,7 +256,7 @@ static void nmi_cpu_shutdown(void = * dumm=0A =0A void nmi_release_counters(void)=0A {=0A- on_each_cpu(nmi_cpu= _shutdown, NULL, 0, 1);=0A+ on_each_cpu(nmi_cpu_shutdown, NULL, 1);=0A = release_lapic_nmi();=0A free_msrs();=0A }=0A@@ -274,7 = +274,7 @@ static void nmi_cpu_start(void * dummy)=0A =0A int nmi_start(void= )=0A {=0A- on_each_cpu(nmi_cpu_start, NULL, 0, 1);=0A+ on_each_cpu= (nmi_cpu_start, NULL, 1);=0A return 0;=0A }=0A =0A@@ -306,7 +306,7 @@ = static void nmi_cpu_stop(void * dummy)=0A =0A void nmi_stop(void)=0A = {=0A- on_each_cpu(nmi_cpu_stop, NULL, 0, 1);=0A+ on_each_cpu(nmi_cpu= _stop, NULL, 1);=0A }=0A =0A =0A--- 2009-05-19.orig/xen/arch/x86/shutdown.c= 2009-05-25 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/s= hutdown.c 2009-05-25 08:57:40.000000000 +0200=0A@@ -91,7 +91,7 @@ = void machine_halt(void)=0A watchdog_disable();=0A console_start_syn= c();=0A local_irq_enable();=0A- smp_call_function(__machine_halt, = NULL, 1, 0);=0A+ smp_call_function(__machine_halt, NULL, 0);=0A = __machine_halt(NULL);=0A }=0A =0A@@ -311,7 +311,7 @@ void machine_restart(u= nsigned int delay_=0A {=0A /* Send IPI to the boot CPU = (logical cpu 0). */=0A on_selected_cpus(cpumask_of(0), __machine_re= start,=0A- &delay_millisecs, 1, 0);=0A+ = &delay_millisecs, 0);=0A for ( ; ; )=0A = halt();=0A }=0A--- 2009-05-19.orig/xen/arch/x86/smp.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/smp.c 2009-05-25 = 08:57:40.000000000 +0200=0A@@ -235,19 +235,17 @@ static struct call_data_st= ruct *call_dat=0A int smp_call_function(=0A void (*func) (void = *info),=0A void *info,=0A- int retry,=0A int wait)=0A {=0A = cpumask_t allbutself =3D cpu_online_map;=0A cpu_clear(smp_processor_id(= ), allbutself);=0A- return on_selected_cpus(&allbutself, func, info, = retry, wait);=0A+ return on_selected_cpus(&allbutself, func, info, = wait);=0A }=0A =0A int on_selected_cpus(=0A const cpumask_t *selected,= =0A void (*func) (void *info),=0A void *info,=0A- int retry,=0A = int wait)=0A {=0A struct call_data_struct data;=0A@@ -333,7 +331,7 = @@ void smp_send_stop(void)=0A {=0A int timeout =3D 10;=0A =0A- = smp_call_function(stop_this_cpu, NULL, 1, 0);=0A+ smp_call_function(stop= _this_cpu, NULL, 0);=0A =0A /* Wait 10ms for all other CPUs to go = offline. */=0A while ( (num_online_cpus() > 1) && (timeout-- > 0) = )=0A--- 2009-05-19.orig/xen/arch/x86/time.c 2009-05-25 09:04:30.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/x86/time.c 2009-05-25 08:57:40.0000000= 00 +0200=0A@@ -1193,7 +1193,7 @@ static void time_calibration(void = *unuse=0A opt_consistent_tscs=0A = ? time_calibration_tsc_rendezvous=0A : time_calibratio= n_std_rendezvous,=0A- &r, 0, 1);=0A+ = &r, 1);=0A }=0A =0A void init_percpu_time(void)=0A--- 2009-05-19.orig/xen= /arch/x86/x86_32/traps.c 2009-05-25 09:04:30.000000000 +0200=0A+++ = 2009-05-19/xen/arch/x86/x86_32/traps.c 2009-05-25 08:57:40.000000000 = +0200=0A@@ -403,7 +403,7 @@ static long register_guest_callback(stru=0A = case CALLBACKTYPE_sysenter_deprecated:=0A if ( !cpu_has_sep )=0A = ret =3D -EINVAL;=0A- else if ( on_each_cpu(do_update_syse= nter, ®->address, 1, 1) !=3D 0 )=0A+ else if ( on_each_cpu(do_upd= ate_sysenter, ®->address, 1) !=3D 0 )=0A ret =3D -EIO;=0A = break;=0A =0A--- 2009-05-19.orig/xen/common/gdbstub.c 2009-05-25 = 09:04:30.000000000 +0200=0A+++ 2009-05-19/xen/common/gdbstub.c 2009-05-25 = 08:57:40.000000000 +0200=0A@@ -672,7 +672,7 @@ static void gdb_smp_pause(vo= id)=0A =0A atomic_set(&gdb_smp_paused_count, 0);=0A =0A- smp_call_fu= nction(gdb_pause_this_cpu, NULL, /* dont wait! */0, 0);=0A+ smp_call_fun= ction(gdb_pause_this_cpu, NULL, /* dont wait! */0);=0A =0A /* Wait = 100ms for all other CPUs to enter pause loop */=0A while ( (atomic_read= (&gdb_smp_paused_count) < (num_online_cpus() - 1)) =0A--- 2009-05-19.orig/x= en/common/keyhandler.c 2009-05-25 09:04:30.000000000 +0200=0A+++ = 2009-05-19/xen/common/keyhandler.c 2009-05-25 08:57:40.000000000 = +0200=0A@@ -119,7 +119,7 @@ static void dump_registers(unsigned char=0A = if ( cpu =3D=3D smp_processor_id() )=0A continue;=0A = printk("\n*** Dumping CPU%d host state: ***\n", cpu);=0A- = on_selected_cpus(cpumask_of(cpu), __dump_execstate, NULL, 1, 1);=0A+ = on_selected_cpus(cpumask_of(cpu), __dump_execstate, NULL, 1);=0A }=0A = =0A printk("\n");=0A@@ -263,7 +263,7 @@ static void read_clocks(unsigne= d char ke=0A =0A spin_lock(&lock);=0A =0A- smp_call_function(read_cl= ocks_slave, NULL, 0, 0);=0A+ smp_call_function(read_clocks_slave, NULL, = 0);=0A =0A local_irq_disable();=0A read_clocks_cpumask =3D = cpu_online_map;=0A--- 2009-05-19.orig/xen/include/asm-ia64/linux-xen/asm/sm= p.h 2009-02-04 11:33:19.000000000 +0100=0A+++ 2009-05-19/xen/include/as= m-ia64/linux-xen/asm/smp.h 2009-05-25 09:05:19.000000000 +0200=0A@@ = -127,8 +127,8 @@ extern void __init smp_build_cpu_map(voi=0A extern void = __init init_smp_config (void);=0A extern void smp_do_timer (struct pt_regs = *regs);=0A =0A-extern int smp_call_function_single (int cpuid, void = (*func) (void *info), void *info,=0A- int = retry, int wait);=0A+extern int smp_call_function_single (int cpuid, void = (*func) (void *info),=0A+ void *info, = int wait);=0A extern void smp_send_reschedule (int cpu);=0A #ifdef XEN=0A = extern void lock_ipi_calllock(unsigned long *flags);=0A--- 2009-05-19.orig/= xen/include/xen/smp.h 2009-05-25 09:04:30.000000000 +0200=0A+++ = 2009-05-19/xen/include/xen/smp.h 2009-05-25 08:59:54.000000000 = +0200=0A@@ -34,7 +34,6 @@ extern void smp_cpus_done(unsigned int m=0A = extern int smp_call_function(=0A void (*func) (void *info),=0A = void *info,=0A- int retry,=0A int wait);=0A =0A /* =0A@@ -44,7 = +43,6 @@ extern int on_selected_cpus(=0A const cpumask_t *selected,=0A = void (*func) (void *info),=0A void *info,=0A- int retry,=0A = int wait);=0A =0A /*=0A@@ -59,10 +57,9 @@ void smp_prepare_boot_cpu(void);= =0A static inline int on_each_cpu(=0A void (*func) (void *info),=0A = void *info,=0A- int retry,=0A int wait)=0A {=0A- return = on_selected_cpus(&cpu_online_map, func, info, retry, wait);=0A+ return = on_selected_cpus(&cpu_online_map, func, info, wait);=0A }=0A =0A #define = smp_processor_id() raw_smp_processor_id()=0A --=__PartB893E459.1__= Content-Type: text/plain; name="xen-cpumask-ref.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-cpumask-ref.patch" Rather than passing cpumasks by value in all cases (which is problematic=0A= for large NR_CPUS configurations), pass them 'by reference' (i.e.=0Athrough= a pointer to a const cpumask).=0A=0AOn x86 this changes send_IPI_mask() = to always only send IPIs to remote=0ACPUs (meaning any caller needing to = handle the current CPU as well has=0Ato do so on its own).=0A=0AIA64 = changes compile-tested only.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- 2009-05-19.orig/xen/arch/ia64/linux-xen/smp.c 2009-05-20 = 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/linux-xen/smp.c = 2009-05-25 08:54:09.000000000 +0200=0A@@ -57,19 +57,18 @@=0A //#if = CONFIG_SMP || IA64=0A #if CONFIG_SMP=0A //Huh? This seems to be used on = ia64 even if !CONFIG_SMP=0A-void smp_send_event_check_mask(cpumask_t = mask)=0A+void smp_send_event_check_mask(const cpumask_t *mask)=0A {=0A = int cpu;=0A =0A /* Not for me. */=0A- cpu_clear(smp_processor_id()= , mask);=0A- if (cpus_empty(mask))=0A+ if (cpus_subset(*mask, = *cpumask_of(smp_processor_id())))=0A return;=0A =0A //printf("s= mp_send_event_check_mask called\n");=0A =0A for (cpu =3D 0; cpu < = NR_CPUS; ++cpu)=0A- if (cpu_isset(cpu, mask))=0A+ if = (cpu_isset(cpu, *mask) && cpu !=3D smp_processor_id())=0A = platform_send_ipi(cpu, IA64_IPI_RESCHEDULE, IA64_IPI_DM_INT, 0);=0A }=0A = #endif=0A@@ -438,11 +437,11 @@ EXPORT_SYMBOL(smp_call_function);=0A =0A = #ifdef XEN=0A int=0A-on_selected_cpus(cpumask_t selected, void (*func) = (void *info), void *info,=0A- int retry, int wait)=0A+on_se= lected_cpus(const cpumask_t *selected, void (*func) (void *info),=0A+ = void *info, int retry, int wait)=0A {=0A struct call_data_st= ruct data;=0A- unsigned int cpu, nr_cpus =3D cpus_weight(selected);=0A+ = unsigned int cpu, nr_cpus =3D cpus_weight(*selected);=0A =0A ASSERT(loca= l_irq_is_enabled());=0A =0A@@ -460,7 +459,7 @@ on_selected_cpus(cpumask_t = selected, voi=0A call_data =3D &data;=0A wmb();=0A =0A- = for_each_cpu_mask(cpu, selected)=0A+ for_each_cpu_mask(cpu, *selected)= =0A send_IPI_single(cpu, IPI_CALL_FUNC);=0A =0A while = (atomic_read(wait ? &data.finished : &data.started) !=3D nr_cpus)=0A--- = 2009-05-19.orig/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c 2009-05-20 = 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/linux-xen/sn/kernel= /sn2_smp.c 2009-05-25 08:37:09.000000000 +0200=0A@@ -239,7 +239,7 @@ = sn2_global_tlb_purge(unsigned long start=0A flush_data.start = =3D start;=0A flush_data.end =3D end;=0A flush_data.= nbits =3D nbits;=0A- on_selected_cpus(selected_cpus, sn_flush_pt= cga_cpu,=0A+ on_selected_cpus(&selected_cpus, sn_flush_ptcga_cpu= ,=0A &flush_data, 1, 1);=0A }=0A = spin_unlock(&sn2_ptcg_lock2);=0A--- 2009-05-19.orig/xen/arch/ia64/xen/mm.c = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/ia64/xen/mm.c= 2009-05-25 08:37:09.000000000 +0200=0A@@ -3182,7 +3182,7 @@ int = get_page_type(struct page_info *page=0A if ( unlikely(!cpus= _empty(mask)) )=0A {=0A perfc_incr(need= _flush_tlb_flush);=0A- flush_tlb_mask(mask);=0A+ = flush_tlb_mask(&mask);=0A }=0A =0A = /* We lose existing type, back pointer, and validity. */=0A--- = 2009-05-19.orig/xen/arch/ia64/xen/vhpt.c 2009-05-20 15:49:29.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/ia64/xen/vhpt.c 2009-05-25 = 08:37:09.000000000 +0200=0A@@ -548,22 +548,21 @@ void flush_tlb_for_log_dir= ty(struct doma=0A cpus_clear (d->domain_dirty_cpumask);=0A }=0A = =0A-void flush_tlb_mask(cpumask_t mask)=0A+void flush_tlb_mask(const = cpumask_t *mask)=0A {=0A int cpu;=0A =0A cpu =3D smp_processor_id()= ;=0A- if (cpu_isset (cpu, mask)) {=0A- cpu_clear(cpu, mask);=0A+ = if (cpu_isset(cpu, *mask))=0A flush_tlb_vhpt_all (NULL);=0A- = }=0A =0A- if (cpus_empty(mask))=0A+ if (cpus_subset(*mask, *cpumask_o= f(cpu)))=0A return;=0A =0A- for_each_cpu_mask (cpu, mask)=0A- = smp_call_function_single=0A- (cpu, (void (*)(void = *))flush_tlb_vhpt_all, NULL, 1, 1);=0A+ for_each_cpu_mask (cpu, = *mask)=0A+ if (cpu !=3D smp_processor_id())=0A+ = smp_call_function_single=0A+ (cpu, (void (*)(void *))flush_t= lb_vhpt_all, NULL, 1, 1);=0A }=0A =0A #ifdef PERF_COUNTERS=0A--- 2009-05-19= .orig/xen/arch/x86/acpi/cpufreq/cpufreq.c 2009-05-20 15:49:29.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/x86/acpi/cpufreq/cpufreq.c 2009-05-25 = 08:37:09.000000000 +0200=0A@@ -186,7 +186,7 @@ static void drv_read(struct = drv_cmd *cmd=0A if (likely(cpu_isset(smp_processor_id(), cmd->mask)))= =0A do_drv_read((void *)cmd);=0A else=0A- on_selected_cp= us( cmd->mask, do_drv_read, (void *)cmd, 0, 1);=0A+ on_selected_cpus= (&cmd->mask, do_drv_read, (void *)cmd, 0, 1);=0A }=0A =0A static void = drv_write(struct drv_cmd *cmd)=0A@@ -195,7 +195,7 @@ static void drv_write(= struct drv_cmd *cm=0A cpu_isset(smp_processor_id(), cmd->mask))=0A = do_drv_write((void *)cmd);=0A else=0A- on_selected_cpus(= cmd->mask, do_drv_write, (void *)cmd, 0, 0);=0A+ on_selected_cpus(&= cmd->mask, do_drv_write, (void *)cmd, 0, 0);=0A }=0A =0A static u32 = get_cur_val(cpumask_t mask)=0A@@ -274,7 +274,6 @@ static unsigned int = get_measured_perf(un=0A struct cpufreq_policy *policy; =0A = struct perf_pair readin, cur, *saved;=0A unsigned int perf_percent;=0A-= cpumask_t cpumask;=0A unsigned int retval;=0A =0A if (!cpu_onli= ne(cpu))=0A@@ -303,8 +302,7 @@ static unsigned int get_measured_perf(un=0A = if (cpu =3D=3D smp_processor_id()) {=0A read_measured_perf_ctrs= ((void *)&readin);=0A } else {=0A- cpumask =3D cpumask_of_cpu(cp= u);=0A- on_selected_cpus(cpumask, read_measured_perf_ctrs, =0A+ = on_selected_cpus(cpumask_of(cpu), read_measured_perf_ctrs,=0A = (void *)&readin, 0, 1);=0A }=0A =0A--- 2009-05-19.orig/xe= n/arch/x86/acpi/cpufreq/powernow.c 2009-05-20 15:49:29.000000000 = +0200=0A+++ 2009-05-19/xen/arch/x86/acpi/cpufreq/powernow.c 2009-05-25 = 08:37:09.000000000 +0200=0A@@ -121,7 +121,7 @@ static int powernow_cpufreq_= target(struc=0A =0A cmd.val =3D next_perf_state;=0A =0A- on_selected= _cpus( cmd.mask, transition_pstate, (void *) &cmd, 0, 0);=0A+ on_selecte= d_cpus(&cmd.mask, transition_pstate, (void *) &cmd, 0, 0);=0A =0A = perf->state =3D next_perf_state;=0A policy->cur =3D freqs.new;=0A--- = 2009-05-19.orig/xen/arch/x86/cpu/mcheck/mce.c 2009-05-20 15:49:29.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/x86/cpu/mcheck/mce.c 2009-05-25 = 08:37:09.000000000 +0200=0A@@ -1205,8 +1205,8 @@ long do_mca(XEN_GUEST_HAND= LE(xen_mc_t) u=0A =0A add_taint(TAINT_ERROR_INJECT);=0A =0A- = on_selected_cpus(cpumask_of_cpu(target),=0A- x86_mc_msrinjec= t, mc_msrinject, 1, 1);=0A+ on_selected_cpus(cpumask_of(target)= , x86_mc_msrinject,=0A+ mc_msrinject, 1, 1);=0A = =0A break;=0A =0A@@ -1225,8 +1225,8 @@ long do_mca(XEN_GUEST_HA= NDLE(xen_mc_t) u=0A =0A add_taint(TAINT_ERROR_INJECT);=0A = =0A- on_selected_cpus(cpumask_of_cpu(target), x86_mc_mceinject,= =0A- mc_mceinject, 1, 1);=0A+ on_selected_cpus(cp= umask_of(target), x86_mc_mceinject,=0A+ mc_mceinje= ct, 1, 1);=0A break;=0A =0A default:=0A--- 2009-05-19.orig/xen/= arch/x86/cpu/mtrr/main.c 2009-05-20 15:49:29.000000000 +0200=0A+++ = 2009-05-19/xen/arch/x86/cpu/mtrr/main.c 2009-05-25 08:37:09.000000000 = +0200=0A@@ -688,7 +688,7 @@ void mtrr_save_state(void)=0A if (cpu = =3D=3D 0)=0A mtrr_save_fixed_ranges(NULL);=0A else=0A- = on_selected_cpus(cpumask_of_cpu(0), mtrr_save_fixed_ranges, NULL, = 1, 1);=0A+ on_selected_cpus(cpumask_of(0), mtrr_save_fixed_ran= ges, NULL, 1, 1);=0A put_cpu();=0A }=0A =0A--- 2009-05-19.orig/xen/arch/= x86/crash.c 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/ar= ch/x86/crash.c 2009-05-25 08:37:09.000000000 +0200=0A@@ -58,10 +58,8 @@ = static int crash_nmi_callback(struct cpu=0A */=0A static void smp_send_nmi= _allbutself(void)=0A {=0A- cpumask_t allbutself =3D cpu_online_map;=0A- = cpu_clear(smp_processor_id(), allbutself);=0A- if ( !cpus_empty(allbu= tself) )=0A- send_IPI_mask(allbutself, APIC_DM_NMI);=0A+ if ( = !cpus_subset(cpu_online_map, *cpumask_of(smp_processor_id())) )=0A+ = send_IPI_mask(&cpu_online_map, APIC_DM_NMI);=0A }=0A =0A static void = nmi_shootdown_cpus(void)=0A--- 2009-05-19.orig/xen/arch/x86/domain.c = 2009-05-19 16:40:37.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/domain.c = 2009-05-25 08:37:09.000000000 +0200=0A@@ -1316,7 +1316,7 @@ void context_sw= itch(struct vcpu *prev, s=0A if ( unlikely(!cpu_isset(cpu, dirty_mask) = && !cpus_empty(dirty_mask)) )=0A {=0A /* Other cpus call = __sync_lazy_execstate from flush ipi handler. */=0A- flush_tlb_mask(= dirty_mask);=0A+ flush_tlb_mask(&dirty_mask);=0A }=0A =0A = if ( is_hvm_vcpu(prev) && !list_empty(&prev->arch.hvm_vcpu.tm_list) )=0A@@ = -1410,7 +1410,7 @@ void sync_vcpu_execstate(struct vcpu *v)=0A = (void)__sync_lazy_execstate();=0A =0A /* Other cpus call __sync_lazy_ex= ecstate from flush ipi handler. */=0A- flush_tlb_mask(v->vcpu_dirty_cpum= ask);=0A+ flush_tlb_mask(&v->vcpu_dirty_cpumask);=0A }=0A =0A struct = migrate_info {=0A--- 2009-05-19.orig/xen/arch/x86/genapic/x2apic.c = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/genapic/x= 2apic.c 2009-05-25 08:37:09.000000000 +0200=0A@@ -56,7 +56,7 @@ unsigned = int cpu_mask_to_apicid_x2apic(c=0A return cpu_physical_id(first_cpu(cpu= mask));=0A }=0A =0A-void send_IPI_mask_x2apic(cpumask_t cpumask, int = vector)=0A+void send_IPI_mask_x2apic(const cpumask_t *cpumask, int = vector)=0A {=0A unsigned int cpu, cfg;=0A unsigned long flags;=0A@@= -76,8 +76,9 @@ void send_IPI_mask_x2apic(cpumask_t cpum=0A local_irq_s= ave(flags);=0A =0A cfg =3D APIC_DM_FIXED | 0 /* no shorthand */ | = APIC_DEST_PHYSICAL | vector;=0A- for_each_cpu_mask ( cpu, cpumask )=0A- = apic_wrmsr(APIC_ICR, cfg, cpu_physical_id(cpu));=0A+ for_each_cpu= _mask ( cpu, *cpumask )=0A+ if ( cpu !=3D smp_processor_id() )=0A+ = apic_wrmsr(APIC_ICR, cfg, cpu_physical_id(cpu));=0A =0A = local_irq_restore(flags);=0A }=0A--- 2009-05-19.orig/xen/arch/x86/hpet.c = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/hpet.c = 2009-05-25 08:37:09.000000000 +0200=0A@@ -617,7 +617,7 @@ void hpet_disable= _legacy_broadcast(void)=0A =0A spin_unlock_irq(&legacy_hpet_event.lock)= ;=0A =0A- smp_send_event_check_mask(cpu_online_map);=0A+ smp_send_eve= nt_check_mask(&cpu_online_map);=0A }=0A =0A void hpet_broadcast_enter(void)= =0A--- 2009-05-19.orig/xen/arch/x86/hvm/hvm.c 2009-05-20 15:49:29.0000000= 00 +0200=0A+++ 2009-05-19/xen/arch/x86/hvm/hvm.c 2009-05-25 = 08:37:09.000000000 +0200=0A@@ -2408,7 +2408,7 @@ static int hvmop_flush_tlb= _all(void)=0A paging_update_cr3(v);=0A =0A /* Flush all dirty = TLBs. */=0A- flush_tlb_mask(d->domain_dirty_cpumask);=0A+ flush_tlb_m= ask(&d->domain_dirty_cpumask);=0A =0A /* Done. */=0A for_each_vcpu = ( d, v )=0A--- 2009-05-19.orig/xen/arch/x86/hvm/vmx/vmcs.c 2009-05-20 = 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/hvm/vmx/vmcs.c = 2009-05-25 08:37:09.000000000 +0200=0A@@ -264,7 +264,7 @@ static void = vmx_clear_vmcs(struct vcpu *=0A int cpu =3D v->arch.hvm_vmx.active_cpu;= =0A =0A if ( cpu !=3D -1 )=0A- on_selected_cpus(cpumask_of_cpu(c= pu), __vmx_clear_vmcs, v, 1, 1);=0A+ on_selected_cpus(cpumask_of(cpu= ), __vmx_clear_vmcs, v, 1, 1);=0A }=0A =0A static void vmx_load_vmcs(struct= vcpu *v)=0A@@ -899,7 +899,7 @@ void vmx_do_resume(struct vcpu *v)=0A = {=0A int cpu =3D v->arch.hvm_vmx.active_cpu;=0A = if ( cpu !=3D -1 )=0A- on_selected_cpus(cpumask_of_cpu(cpu),= wbinvd_ipi, NULL, 1, 1);=0A+ on_selected_cpus(cpumask_of(cp= u), wbinvd_ipi, NULL, 1, 1);=0A }=0A =0A vmx_clear_vmcs(v);= =0A--- 2009-05-19.orig/xen/arch/x86/hvm/vmx/vmx.c 2009-05-20 = 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/hvm/vmx/vmx.c = 2009-05-25 08:37:09.000000000 +0200=0A@@ -2163,7 +2163,7 @@ static void = ept_handle_violation(unsigne=0A {=0A paging_mark_dirty(= d, mfn_x(mfn));=0A p2m_change_type(d, gfn, p2m_ram_logdirty, = p2m_ram_rw);=0A- flush_tlb_mask(d->domain_dirty_cpumask);=0A+ = flush_tlb_mask(&d->domain_dirty_cpumask);=0A }=0A = return;=0A }=0A--- 2009-05-19.orig/xen/arch/x86/irq.c 2009-05-20 = 11:46:56.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/irq.c 2009-05-25 = 08:37:09.000000000 +0200=0A@@ -516,7 +516,7 @@ static void __pirq_guest_eoi= (struct doma=0A }=0A =0A if ( !cpus_empty(cpu_eoi_map) )=0A- = on_selected_cpus(cpu_eoi_map, set_eoi_ready, desc, 1, 0);=0A+ = on_selected_cpus(&cpu_eoi_map, set_eoi_ready, desc, 1, 0);=0A }=0A =0A int = pirq_guest_eoi(struct domain *d, int irq)=0A@@ -755,7 +755,7 @@ static = irq_guest_action_t *__pirq_guest_=0A {=0A cpu_eoi_map = =3D action->cpu_eoi_map;=0A spin_unlock_irq(&desc->lock);=0A- = on_selected_cpus(cpu_eoi_map, set_eoi_ready, desc, 1, 0);=0A+ = on_selected_cpus(&cpu_eoi_map, set_eoi_ready, desc, 1, 0);=0A = spin_lock_irq(&desc->lock);=0A }=0A break;=0A@@ = -793,7 +793,7 @@ static irq_guest_action_t *__pirq_guest_=0A {=0A = BUG_ON(action->ack_type !=3D ACKTYPE_EOI);=0A spin_unlock_irq(&d= esc->lock);=0A- on_selected_cpus(cpu_eoi_map, set_eoi_ready, desc, = 1, 1);=0A+ on_selected_cpus(&cpu_eoi_map, set_eoi_ready, desc, 1, = 1);=0A spin_lock_irq(&desc->lock);=0A }=0A =0A--- 2009-05-19.or= ig/xen/arch/x86/machine_kexec.c 2009-05-20 15:49:29.000000000 +0200=0A+++ = 2009-05-19/xen/arch/x86/machine_kexec.c 2009-05-25 08:37:09.000000000 = +0200=0A@@ -91,7 +91,6 @@ static void __machine_reboot_kexec(void =0A void = machine_reboot_kexec(xen_kexec_image_t *image)=0A {=0A int reboot_cpu_i= d;=0A- cpumask_t reboot_cpu;=0A =0A reboot_cpu_id =3D 0;=0A =0A@@ = -100,9 +99,8 @@ void machine_reboot_kexec(xen_kexec_imag=0A =0A if ( = reboot_cpu_id !=3D smp_processor_id() )=0A {=0A- cpus_clear(rebo= ot_cpu);=0A- cpu_set(reboot_cpu_id, reboot_cpu);=0A- = on_selected_cpus(reboot_cpu, __machine_reboot_kexec, image, 1, 0);=0A+ = on_selected_cpus(cpumask_of(reboot_cpu_id), __machine_reboot_kexec,=0A+ = image, 1, 0);=0A for (;;)=0A = ; /* nothing */=0A }=0A--- 2009-05-19.orig/xen/arch/x86/mm.c = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/mm.c = 2009-05-25 08:37:09.000000000 +0200=0A@@ -510,7 +510,7 @@ static void = invalidate_shadow_ldt(struct=0A =0A /* Rid TLBs of stale mappings = (guest mappings and shadow mappings). */=0A if ( flush )=0A- = flush_tlb_mask(v->vcpu_dirty_cpumask);=0A+ flush_tlb_mask(&v->vcpu_d= irty_cpumask);=0A =0A out:=0A spin_unlock(&v->arch.shadow_ldt_lock);= =0A@@ -1235,7 +1235,7 @@ static void pae_flush_pgd(=0A = paging_update_cr3(v);=0A cpus_or(m, m, v->vcpu_dirty_cpumas= k);=0A }=0A- flush_tlb_mask(m);=0A+ flush_tlb_mas= k(&m);=0A }=0A =0A /* If below 4GB then the pgdir is not shadowed = in low memory. */=0A@@ -1260,7 +1260,7 @@ static void pae_flush_pgd(=0A = spin_unlock(&cache->lock);=0A }=0A =0A- flush_tlb_mask(d->domai= n_dirty_cpumask);=0A+ flush_tlb_mask(&d->domain_dirty_cpumask);=0A }=0A = #else=0A # define pae_flush_pgd(mfn, idx, nl3e) ((void)0)=0A@@ -2275,7 = +2275,7 @@ static int __get_page_type(struct page_i=0A = ((nx & PGT_type_mask) =3D=3D PGT_writable_page)) )=0A = {=0A perfc_incr(need_flush_tlb_flush);=0A- = flush_tlb_mask(mask);=0A+ flush_tlb_mask(&mask);= =0A }=0A =0A /* We lose existing type and = validity. */=0A@@ -2476,7 +2476,7 @@ static void process_deferred_ops(void)= =0A if ( deferred_ops & (DOP_FLUSH_ALL_TLBS|DOP_FLUSH_TLB) )=0A = {=0A if ( deferred_ops & DOP_FLUSH_ALL_TLBS )=0A- = flush_tlb_mask(d->domain_dirty_cpumask);=0A+ flush_tlb_mask(&d->= domain_dirty_cpumask);=0A else=0A flush_tlb_local();=0A= }=0A@@ -2811,9 +2811,9 @@ int do_mmuext_op(=0A }=0A = pmask =3D vcpumask_to_pcpumask(d, vmask);=0A if ( op.cmd = =3D=3D MMUEXT_TLB_FLUSH_MULTI )=0A- flush_tlb_mask(pmask);= =0A+ flush_tlb_mask(&pmask);=0A else=0A- = flush_tlb_one_mask(pmask, op.arg1.linear_addr);=0A+ = flush_tlb_one_mask(&pmask, op.arg1.linear_addr);=0A break;=0A = }=0A =0A@@ -2822,7 +2822,7 @@ int do_mmuext_op(=0A = break;=0A =0A case MMUEXT_INVLPG_ALL:=0A- flush_tlb_= one_mask(d->domain_dirty_cpumask, op.arg1.linear_addr);=0A+ = flush_tlb_one_mask(&d->domain_dirty_cpumask, op.arg1.linear_addr);=0A = break;=0A =0A case MMUEXT_FLUSH_CACHE:=0A@@ -3639,7 +3639,7 = @@ int do_update_va_mapping(unsigned long v=0A pmask =3D = vcpumask_to_pcpumask(d, vmask);=0A if ( cpu_isset(smp_processor= _id(), pmask) )=0A this_cpu(percpu_mm_info).deferred_ops = &=3D ~DOP_FLUSH_TLB;=0A- flush_tlb_mask(pmask);=0A+ = flush_tlb_mask(&pmask);=0A break;=0A }=0A = break;=0A@@ -3657,7 +3657,7 @@ int do_update_va_mapping(unsigned long v=0A = flush_tlb_one_local(va);=0A break;=0A = case UVMF_ALL:=0A- flush_tlb_one_mask(d->domain_dirty_cpumask, = va);=0A+ flush_tlb_one_mask(&d->domain_dirty_cpumask, va);=0A = break;=0A default:=0A if ( unlikely(!is_pv_32= on64_domain(d) ?=0A@@ -3667,7 +3667,7 @@ int do_update_va_mapping(unsigned = long v=0A pmask =3D vcpumask_to_pcpumask(d, vmask);=0A = if ( this_cpu(percpu_mm_info).deferred_ops & DOP_FLUSH_TLB )=0A = cpu_clear(smp_processor_id(), pmask);=0A- flush_tlb_one= _mask(pmask, va);=0A+ flush_tlb_one_mask(&pmask, va);=0A = break;=0A }=0A break;=0A--- 2009-05-19.orig/xen/arch/x= 86/mm/hap/hap.c 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/ar= ch/x86/mm/hap/hap.c 2009-05-25 08:37:09.000000000 +0200=0A@@ -64,7 = +64,7 @@ int hap_enable_log_dirty(struct domain *=0A =0A /* set l1e = entries of P2M table to be read-only. */=0A p2m_change_entry_type_globa= l(d, p2m_ram_rw, p2m_ram_logdirty);=0A- flush_tlb_mask(d->domain_dirty_c= pumask);=0A+ flush_tlb_mask(&d->domain_dirty_cpumask);=0A return = 0;=0A }=0A =0A@@ -83,7 +83,7 @@ void hap_clean_dirty_bitmap(struct = domai=0A {=0A /* set l1e entries of P2M table to be read-only. */=0A = p2m_change_entry_type_global(d, p2m_ram_rw, p2m_ram_logdirty);=0A- = flush_tlb_mask(d->domain_dirty_cpumask);=0A+ flush_tlb_mask(&d->domain_d= irty_cpumask);=0A }=0A =0A /***********************************************= */=0A@@ -643,7 +643,7 @@ hap_write_p2m_entry(struct vcpu *v, unsi=0A = safe_write_pte(p, new);=0A if ( (old_flags & _PAGE_PRESENT)=0A = && (level =3D=3D 1 || (level =3D=3D 2 && (old_flags & _PAGE_PSE))) )=0A- = flush_tlb_mask(v->domain->domain_dirty_cpumask);=0A+ = flush_tlb_mask(&v->domain->domain_dirty_cpumask);=0A =0A #if CONFIG_PAGING= _LEVELS =3D=3D 3=0A /* install P2M in monitor table for PAE Xen = */=0A--- 2009-05-19.orig/xen/arch/x86/mm/shadow/common.c 2009-05-20 = 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/mm/shadow/common.c = 2009-05-25 08:37:09.000000000 +0200=0A@@ -695,7 +695,7 @@ static int = oos_remove_write_access(struc=0A }=0A =0A if ( ftlb )=0A- = flush_tlb_mask(v->domain->domain_dirty_cpumask);=0A+ flush_tlb_mask(= &v->domain->domain_dirty_cpumask);=0A =0A return 0;=0A }=0A@@ -1145,7 = +1145,7 @@ sh_validate_guest_pt_write(struct vcpu *=0A rc =3D = sh_validate_guest_entry(v, gmfn, entry, size);=0A if ( rc & SHADOW_SET_= FLUSH )=0A /* Need to flush TLBs to pick up shadow PT changes = */=0A- flush_tlb_mask(d->domain_dirty_cpumask);=0A+ = flush_tlb_mask(&d->domain_dirty_cpumask);=0A if ( rc & SHADOW_SET_ERROR= ) =0A {=0A /* This page is probably not a pagetable any more: = tear it out of the =0A@@ -1393,7 +1393,7 @@ static void _shadow_prealloc(= =0A /* See if that freed up enough space */=0A = if ( space_is_available(d, order, count) )=0A {=0A- = flush_tlb_mask(d->domain_dirty_cpumask);=0A+ = flush_tlb_mask(&d->domain_dirty_cpumask);=0A = return;=0A }=0A }=0A@@ -1447,7 +1447,7 @@ = static void shadow_blow_tables(struct do=0A = pagetable_get_mfn(v->arch.shadow_table[i]));=0A =0A /* Make sure = everyone sees the unshadowings */=0A- flush_tlb_mask(d->domain_dirty_cpu= mask);=0A+ flush_tlb_mask(&d->domain_dirty_cpumask);=0A }=0A =0A void = shadow_blow_tables_per_domain(struct domain *d)=0A@@ -1554,7 +1554,7 @@ = mfn_t shadow_alloc(struct domain *d, =0A if ( unlikely(!cpus_empty= (mask)) )=0A {=0A perfc_incr(shadow_alloc_tlbflush);=0A= - flush_tlb_mask(mask);=0A+ flush_tlb_mask(&mask);=0A= }=0A /* Now safe to clear the page for reuse */=0A = p =3D sh_map_domain_page(page_to_mfn(sp+i));=0A@@ -2803,7 +2803,7 @@ void = sh_remove_shadows(struct vcpu *v, m=0A =0A /* Need to flush TLBs now, = so that linear maps are safe next time we =0A * take a fault. */=0A- = flush_tlb_mask(v->domain->domain_dirty_cpumask);=0A+ flush_tlb_mask(&v= ->domain->domain_dirty_cpumask);=0A =0A if ( do_locking ) shadow_unlock= (v->domain);=0A }=0A@@ -3435,7 +3435,7 @@ shadow_write_p2m_entry(struct = vcpu *v, u=0A {=0A sh_remove_all_shadows_and_parents(v,= mfn);=0A if ( sh_remove_all_mappings(v, mfn) )=0A- = flush_tlb_mask(d->domain_dirty_cpumask); =0A+ = flush_tlb_mask(&d->domain_dirty_cpumask);=0A }=0A }=0A =0A@@ = -3474,7 +3474,7 @@ shadow_write_p2m_entry(struct vcpu *v, u=0A = }=0A omfn =3D _mfn(mfn_x(omfn) + 1);=0A = }=0A- flush_tlb_mask(flushmask);=0A+ flush_tlb_mask(&= flushmask);=0A =0A if ( npte )=0A = unmap_domain_page(npte);=0A@@ -3752,7 +3752,7 @@ int shadow_track_dirty_vra= m(struct domai=0A }=0A }=0A if ( flush_tlb )=0A- = flush_tlb_mask(d->domain_dirty_cpumask); =0A+ flush_tlb_mask(&d->= domain_dirty_cpumask);=0A goto out;=0A =0A out_sl1ma:=0A--- 2009-05-19.= orig/xen/arch/x86/mm/shadow/multi.c 2009-05-20 15:49:29.000000000 = +0200=0A+++ 2009-05-19/xen/arch/x86/mm/shadow/multi.c 2009-05-25 = 08:37:09.000000000 +0200=0A@@ -3146,7 +3146,7 @@ static int sh_page_fault(s= truct vcpu *v,=0A */=0A perfc_incr(shadow_rm_write_flush_t= lb);=0A atomic_inc(&d->arch.paging.shadow.gtable_dirty_version);=0A= - flush_tlb_mask(d->domain_dirty_cpumask);=0A+ flush_tlb_mask= (&d->domain_dirty_cpumask);=0A }=0A =0A #if (SHADOW_OPTIMIZATIONS & = SHOPT_OUT_OF_SYNC)=0A@@ -4135,7 +4135,7 @@ sh_update_cr3(struct vcpu *v, = int do_loc=0A * (old) shadow linear maps in the writeable mapping = heuristics. */=0A #if GUEST_PAGING_LEVELS =3D=3D 2=0A if ( sh_remove_wr= ite_access(v, gmfn, 2, 0) !=3D 0 )=0A- flush_tlb_mask(v->domain->dom= ain_dirty_cpumask); =0A+ flush_tlb_mask(&v->domain->domain_dirty_cpu= mask);=0A sh_set_toplevel_shadow(v, 0, gmfn, SH_type_l2_shadow);=0A = #elif GUEST_PAGING_LEVELS =3D=3D 3=0A /* PAE guests have four = shadow_table entries, based on the =0A@@ -4158,7 +4158,7 @@ sh_update_cr3(s= truct vcpu *v, int do_loc=0A }=0A }=0A if ( = flush ) =0A- flush_tlb_mask(v->domain->domain_dirty_cpumask);=0A= + flush_tlb_mask(&v->domain->domain_dirty_cpumask);=0A = /* Now install the new shadows. */=0A for ( i =3D 0; i < 4; i++ ) = =0A {=0A@@ -4179,7 +4179,7 @@ sh_update_cr3(struct vcpu *v, int = do_loc=0A }=0A #elif GUEST_PAGING_LEVELS =3D=3D 4=0A if ( = sh_remove_write_access(v, gmfn, 4, 0) !=3D 0 )=0A- flush_tlb_mask(v-= >domain->domain_dirty_cpumask);=0A+ flush_tlb_mask(&v->domain->domai= n_dirty_cpumask);=0A sh_set_toplevel_shadow(v, 0, gmfn, SH_type_l4_shad= ow);=0A #else=0A #error This should never happen =0A--- 2009-05-19.orig/xen= /arch/x86/shutdown.c 2009-05-20 15:49:29.000000000 +0200=0A+++ = 2009-05-19/xen/arch/x86/shutdown.c 2009-05-25 08:37:09.000000000 = +0200=0A@@ -310,7 +310,7 @@ void machine_restart(unsigned int delay_=0A = if ( get_apic_id() !=3D boot_cpu_physical_apicid )=0A {=0A /* = Send IPI to the boot CPU (logical cpu 0). */=0A- on_selected_cpus(cp= umask_of_cpu(0), __machine_restart,=0A+ on_selected_cpus(cpumask_of(= 0), __machine_restart,=0A &delay_millisecs, 1, = 0);=0A for ( ; ; )=0A halt();=0A--- 2009-05-19.orig/xen= /arch/x86/smp.c 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/ar= ch/x86/smp.c 2009-05-25 08:37:09.000000000 +0200=0A@@ -84,12 +84,14 @@ = void apic_wait_icr_idle(void)=0A cpu_relax();=0A }=0A =0A-void = send_IPI_mask_flat(cpumask_t cpumask, int vector)=0A+void send_IPI_mask_fla= t(const cpumask_t *cpumask, int vector)=0A {=0A- unsigned long mask =3D = cpus_addr(cpumask)[0];=0A+ unsigned long mask =3D cpus_addr(*cpumask)[0]= ;=0A unsigned long cfg;=0A unsigned long flags;=0A =0A+ mask = &=3D ~(1UL << smp_processor_id());=0A+=0A /* An IPI with no target = generates a send accept error from P5/P6 APICs. */=0A WARN_ON(mask = =3D=3D 0);=0A =0A@@ -119,15 +121,18 @@ void send_IPI_mask_flat(cpumask_t = cpumas=0A local_irq_restore(flags);=0A }=0A =0A-void send_IPI_mask_phys= (cpumask_t mask, int vector)=0A+void send_IPI_mask_phys(const cpumask_t = *mask, int vector)=0A {=0A unsigned long cfg, flags;=0A unsigned = int query_cpu;=0A =0A local_irq_save(flags);=0A =0A- for_each_cpu_ma= sk ( query_cpu, mask )=0A+ for_each_cpu_mask ( query_cpu, *mask )=0A = {=0A+ if ( query_cpu =3D=3D smp_processor_id() )=0A+ = continue;=0A+=0A /*=0A * Wait for idle.=0A = */=0A@@ -170,20 +175,17 @@ fastcall void smp_invalidate_interrupt(v=0A = irq_exit();=0A }=0A =0A-void flush_area_mask(cpumask_t mask, const void = *va, unsigned int flags)=0A+void flush_area_mask(const cpumask_t *mask, = const void *va, unsigned int flags)=0A {=0A ASSERT(local_irq_is_enabled= ());=0A =0A- if ( cpu_isset(smp_processor_id(), mask) )=0A- {=0A+ = if ( cpu_isset(smp_processor_id(), *mask) )=0A flush_area_local(va,= flags);=0A- cpu_clear(smp_processor_id(), mask);=0A- }=0A =0A- = if ( !cpus_empty(mask) )=0A+ if ( !cpus_subset(*mask, *cpumask_of(smp_= processor_id())) )=0A {=0A spin_lock(&flush_lock);=0A- = flush_cpumask =3D mask;=0A+ cpus_andnot(flush_cpumask, *mask, = *cpumask_of(smp_processor_id()));=0A flush_va =3D va;=0A = flush_flags =3D flags;=0A send_IPI_mask(mask, INVALIDATE_TLB_V= ECTOR);=0A@@ -201,17 +203,16 @@ void new_tlbflush_clock_period(void)=0A = /* Flush everyone else. We definitely flushed just before entry. */=0A = allbutself =3D cpu_online_map;=0A cpu_clear(smp_processor_id(), = allbutself);=0A- flush_mask(allbutself, FLUSH_TLB);=0A+ flush_mask(&a= llbutself, FLUSH_TLB);=0A =0A /* No need for atomicity: we are the = only possible updater. */=0A ASSERT(tlbflush_clock =3D=3D 0);=0A = tlbflush_clock++;=0A }=0A =0A-void smp_send_event_check_mask(cpumask_t = mask)=0A+void smp_send_event_check_mask(const cpumask_t *mask)=0A {=0A- = cpu_clear(smp_processor_id(), mask);=0A- if ( !cpus_empty(mask) )=0A+ = if ( !cpus_subset(*mask, *cpumask_of(smp_processor_id())) )=0A = send_IPI_mask(mask, EVENT_CHECK_VECTOR);=0A }=0A =0A@@ -225,7 +226,7 @@ = struct call_data_struct {=0A int wait;=0A atomic_t started;=0A = atomic_t finished;=0A- cpumask_t selected;=0A+ const cpumask_t = *selected;=0A };=0A =0A static DEFINE_SPINLOCK(call_lock);=0A@@ -239,18 = +240,18 @@ int smp_call_function(=0A {=0A cpumask_t allbutself =3D = cpu_online_map;=0A cpu_clear(smp_processor_id(), allbutself);=0A- = return on_selected_cpus(allbutself, func, info, retry, wait);=0A+ = return on_selected_cpus(&allbutself, func, info, retry, wait);=0A }=0A =0A = int on_selected_cpus(=0A- cpumask_t selected,=0A+ const cpumask_t = *selected,=0A void (*func) (void *info),=0A void *info,=0A int = retry,=0A int wait)=0A {=0A struct call_data_struct data;=0A- = unsigned int nr_cpus =3D cpus_weight(selected);=0A+ unsigned int = nr_cpus =3D cpus_weight(*selected);=0A =0A ASSERT(local_irq_is_enabled(= ));=0A =0A@@ -258,7 +259,7 @@ int on_selected_cpus(=0A if ( unlikely(!c= pu_has_apic) )=0A {=0A ASSERT(num_online_cpus() =3D=3D 1);=0A- = if ( cpu_isset(0, selected) )=0A+ if ( cpu_isset(0, = *selected) )=0A {=0A local_irq_disable();=0A = func(info);=0A@@ -279,9 +280,18 @@ int on_selected_cpus(=0A =0A = spin_lock(&call_lock);=0A =0A- call_data =3D &data;=0A+ if ( = !cpus_subset(*selected, *cpumask_of(smp_processor_id())) )=0A+ {=0A+ = call_data =3D &data;=0A =0A- send_IPI_mask(selected, CALL_FUNCTION_VE= CTOR);=0A+ send_IPI_mask(selected, CALL_FUNCTION_VECTOR);=0A+ = }=0A+=0A+ if ( cpu_isset(smp_processor_id(), *selected) )=0A+ {=0A+ = func(info);=0A+ --nr_cpus;=0A+ }=0A =0A while ( = atomic_read(wait ? &data.finished : &data.started) !=3D nr_cpus )=0A = cpu_relax();=0A@@ -349,7 +359,7 @@ fastcall void smp_call_function_interr= up=0A ack_APIC_irq();=0A perfc_incr(ipis);=0A =0A- if ( = !cpu_isset(smp_processor_id(), call_data->selected) )=0A+ if ( = !cpu_isset(smp_processor_id(), *call_data->selected) )=0A = return;=0A =0A irq_enter();=0A--- 2009-05-19.orig/xen/arch/x86/time.c = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/arch/x86/time.c = 2009-05-25 08:37:09.000000000 +0200=0A@@ -1189,7 +1189,7 @@ static void = time_calibration(void *unuse=0A };=0A =0A /* @wait=3D1 because we = must wait for all cpus before freeing @r. */=0A- on_selected_cpus(r.cpu_= calibration_map,=0A+ on_selected_cpus(&r.cpu_calibration_map,=0A = opt_consistent_tscs=0A ? time_calibratio= n_tsc_rendezvous=0A : time_calibration_std_rendezvous,= =0A--- 2009-05-19.orig/xen/common/Makefile 2009-05-20 15:49:29.0000000= 00 +0200=0A+++ 2009-05-19/xen/common/Makefile 2009-05-25 08:37:09.0000000= 00 +0200=0A@@ -1,4 +1,5 @@=0A obj-y +=3D bitmap.o=0A+obj-y +=3D cpu.o=0A = obj-y +=3D domctl.o=0A obj-y +=3D domain.o=0A obj-y +=3D event_channel.o=0A= --- /dev/null 1970-01-01 00:00:00.000000000 +0000=0A+++ 2009-05-19/xen/co= mmon/cpu.c 2009-05-25 08:37:09.000000000 +0200=0A@@ -0,0 +1,26 = @@=0A+#include =0A+#include =0A+=0A+/*=0A+ * = cpu_bit_bitmap[] is a special, "compressed" data structure that=0A+ * = represents all NR_CPUS bits binary values of 1< = 32=0A+ MASK_DECLARE_8(32), MASK_DECLARE_8(40),=0A+ MASK_DECLARE_8(48),= MASK_DECLARE_8(56),=0A+#endif=0A+};=0A--- 2009-05-19.orig/xen/commo= n/grant_table.c 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/co= mmon/grant_table.c 2009-05-25 08:37:09.000000000 +0200=0A@@ -715,7 = +715,7 @@ gnttab_unmap_grant_ref(=0A goto fault;=0A = }=0A =0A- flush_tlb_mask(current->domain->domain_dirty_cpumask);=0A= + flush_tlb_mask(¤t->domain->domain_dirty_cpumask);=0A =0A = for ( i =3D 0; i < partial_done; i++ )=0A __gnttab_unmap_c= ommon_complete(&(common[i]));=0A@@ -727,7 +727,7 @@ gnttab_unmap_grant_ref(= =0A return 0;=0A =0A fault:=0A- flush_tlb_mask(current->domain->doma= in_dirty_cpumask);=0A+ flush_tlb_mask(¤t->domain->domain_dirty_cpu= mask);=0A =0A for ( i =3D 0; i < partial_done; i++ )=0A = __gnttab_unmap_common_complete(&(common[i]));=0A@@ -774,7 +774,7 @@ = gnttab_unmap_and_replace(=0A goto fault;=0A }=0A = =0A- flush_tlb_mask(current->domain->domain_dirty_cpumask);=0A= + flush_tlb_mask(¤t->domain->domain_dirty_cpumask);=0A = =0A for ( i =3D 0; i < partial_done; i++ )=0A = __gnttab_unmap_common_complete(&(common[i]));=0A@@ -786,7 +786,7 @@ = gnttab_unmap_and_replace(=0A return 0;=0A =0A fault:=0A- flush_tlb_m= ask(current->domain->domain_dirty_cpumask);=0A+ flush_tlb_mask(¤t-= >domain->domain_dirty_cpumask);=0A =0A for ( i =3D 0; i < partial_done;= i++ )=0A __gnttab_unmap_common_complete(&(common[i]));=0A@@ = -1123,7 +1123,7 @@ gnttab_transfer(=0A #ifndef __ia64__ /* IA64 implicitly = replaces the old page in steal_page(). */=0A guest_physmap_remove_p= age(d, gop.mfn, mfn, 0);=0A #endif=0A- flush_tlb_mask(d->domain_dirt= y_cpumask);=0A+ flush_tlb_mask(&d->domain_dirty_cpumask);=0A =0A = /* Find the target domain. */=0A if ( unlikely((e =3D = rcu_lock_domain_by_id(gop.domid)) =3D=3D NULL) )=0A--- 2009-05-19.orig/xen/= common/keyhandler.c 2009-05-20 15:49:29.000000000 +0200=0A+++ = 2009-05-19/xen/common/keyhandler.c 2009-05-25 08:37:09.000000000 = +0200=0A@@ -119,7 +119,7 @@ static void dump_registers(unsigned char=0A = if ( cpu =3D=3D smp_processor_id() )=0A continue;=0A = printk("\n*** Dumping CPU%d host state: ***\n", cpu);=0A- = on_selected_cpus(cpumask_of_cpu(cpu), __dump_execstate, NULL, 1, 1);=0A+ = on_selected_cpus(cpumask_of(cpu), __dump_execstate, NULL, 1, 1);=0A = }=0A =0A printk("\n");=0A--- 2009-05-19.orig/xen/common/page_alloc.c = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/common/page_alloc.= c 2009-05-25 08:37:09.000000000 +0200=0A@@ -422,7 +422,7 @@ static = struct page_info *alloc_heap_page=0A if ( unlikely(!cpus_empty(mask)) = )=0A {=0A perfc_incr(need_flush_tlb_flush);=0A- = flush_tlb_mask(mask);=0A+ flush_tlb_mask(&mask);=0A }=0A =0A = return pg;=0A--- 2009-05-19.orig/xen/include/asm-ia64/tlbflush.h = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/include/asm-ia64/t= lbflush.h 2009-05-25 08:37:09.000000000 +0200=0A@@ -39,7 +39,7 @@ = void domain_flush_tlb_vhpt(struct domain=0A void flush_tlb_for_log_dirty(st= ruct domain *d);=0A =0A /* Flush v-tlb on cpus set in mask for current = domain. */=0A-void flush_tlb_mask(cpumask_t mask);=0A+void flush_tlb_mask(= const cpumask_t *mask);=0A =0A /* Flush local machine TLB. */=0A void = local_flush_tlb_all (void);=0A--- 2009-05-19.orig/xen/include/asm-x86/flush= tlb.h 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/include/as= m-x86/flushtlb.h 2009-05-25 08:37:09.000000000 +0200=0A@@ -90,12 = +90,12 @@ void flush_area_local(const void *va, un=0A #define flush_local(f= lags) flush_area_local(NULL, flags)=0A =0A /* Flush specified CPUs' = TLBs/caches */=0A-void flush_area_mask(cpumask_t, const void *va, unsigned = int flags);=0A+void flush_area_mask(const cpumask_t *, const void *va, = unsigned int flags);=0A #define flush_mask(mask, flags) flush_area_mask(mas= k, NULL, flags)=0A =0A /* Flush all CPUs' TLBs/caches */=0A-#define = flush_area_all(va, flags) flush_area_mask(cpu_online_map, va, flags)=0A-#de= fine flush_all(flags) flush_mask(cpu_online_map, flags)=0A+#define = flush_area_all(va, flags) flush_area_mask(&cpu_online_map, va, flags)=0A+#d= efine flush_all(flags) flush_mask(&cpu_online_map, flags)=0A =0A /* Flush = local TLBs */=0A #define flush_tlb_local() \=0A@@ = -111,8 +111,8 @@ void flush_area_mask(cpumask_t, const vo=0A =0A /* Flush = all CPUs' TLBs */=0A #define flush_tlb_all() \=0A- = flush_tlb_mask(cpu_online_map)=0A+ flush_tlb_mask(&cpu_online_map)=0A= #define flush_tlb_one_all(v) \=0A- flush_tlb_one_mas= k(cpu_online_map, v)=0A+ flush_tlb_one_mask(&cpu_online_map, v)=0A =0A = #endif /* __FLUSHTLB_H__ */=0A--- 2009-05-19.orig/xen/include/asm-x86/genap= ic.h 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/include/as= m-x86/genapic.h 2009-05-25 08:37:09.000000000 +0200=0A@@ -35,7 +35,7 @@ = struct genapic { =0A void (*clustered_apic_check)(void);=0A cpumask_t = (*target_cpus)(void);=0A unsigned int (*cpu_mask_to_apicid)(cpumask_= t cpumask);=0A- void (*send_IPI_mask)(cpumask_t mask, int vector);=0A+ = void (*send_IPI_mask)(const cpumask_t *mask, int vector);=0A };=0A =0A = #define APICFUNC(x) .x =3D x=0A@@ -52,7 +52,7 @@ void init_apic_ldr_flat(vo= id);=0A void clustered_apic_check_flat(void);=0A cpumask_t target_cpus_flat= (void);=0A unsigned int cpu_mask_to_apicid_flat(cpumask_t cpumask);=0A-void= send_IPI_mask_flat(cpumask_t mask, int vector);=0A+void send_IPI_mask_flat= (const cpumask_t *mask, int vector);=0A #define GENAPIC_FLAT \=0A = .int_delivery_mode =3D dest_LowestPrio, \=0A .int_dest_mode =3D 1 /* = logical delivery */, \=0A@@ -66,7 +66,7 @@ void init_apic_ldr_x2apic(void);= =0A void clustered_apic_check_x2apic(void);=0A cpumask_t target_cpus_x2apic= (void);=0A unsigned int cpu_mask_to_apicid_x2apic(cpumask_t cpumask);=0A-vo= id send_IPI_mask_x2apic(cpumask_t mask, int vector);=0A+void send_IPI_mask_= x2apic(const cpumask_t *mask, int vector);=0A #define GENAPIC_X2APIC \=0A = .int_delivery_mode =3D dest_Fixed, \=0A .int_dest_mode =3D 0 /* = physical delivery */, \=0A@@ -80,7 +80,7 @@ void init_apic_ldr_phys(void);= =0A void clustered_apic_check_phys(void);=0A cpumask_t target_cpus_phys(voi= d);=0A unsigned int cpu_mask_to_apicid_phys(cpumask_t cpumask);=0A-void = send_IPI_mask_phys(cpumask_t mask, int vector);=0A+void send_IPI_mask_phys(= const cpumask_t *mask, int vector);=0A #define GENAPIC_PHYS \=0A = .int_delivery_mode =3D dest_Fixed, \=0A .int_dest_mode =3D 0 /* = physical delivery */, \=0A--- 2009-05-19.orig/xen/include/xen/cpumask.h = 2009-05-20 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/include/xen/cpumas= k.h 2009-05-25 08:37:09.000000000 +0200=0A@@ -80,7 +80,6 @@=0A = #include =0A =0A typedef struct { DECLARE_BITMAP(bits, = NR_CPUS); } cpumask_t;=0A-extern cpumask_t _unused_cpumask_arg_;=0A =0A = #define cpu_set(cpu, dst) __cpu_set((cpu), &(dst))=0A static inline void = __cpu_set(int cpu, volatile cpumask_t *dstp)=0A@@ -244,17 +243,23 @@ = static inline int __cycle_cpu(int n, con=0A return nxt;=0A }=0A = =0A-#define cpumask_of_cpu(cpu) = \=0A-({ = \=0A- typeof(_unused_cpumask_arg_) m; = \=0A- if (sizeof(m) =3D=3D sizeof(unsigned long)) { = \=0A- m.bits[0] =3D 1UL<<(cpu); = \=0A- } else { = \=0A- cpus_clear(m); = \=0A- cpu_set((cpu), m); = \=0A- } = \=0A- m; = \=0A-})=0A+/*=0A+ * Special-case data structure for "single bit set only" = constant CPU masks.=0A+ *=0A+ * We pre-generate all the 64 (or 32) = possible bit positions, with enough=0A+ * padding to the left and the = right, and return the constant pointer=0A+ * appropriately offset.=0A+ = */=0A+extern const unsigned long=0A+ cpu_bit_bitmap[BITS_PER_LONG+1][BIT= S_TO_LONGS(NR_CPUS)];=0A+=0A+static inline const cpumask_t *cpumask_of(unsi= gned int cpu)=0A+{=0A+ const unsigned long *p =3D cpu_bit_bitmap[1 + cpu = % BITS_PER_LONG];=0A+ return (const cpumask_t *)(p - cpu / BITS_PER_LONG)= ;=0A+}=0A+=0A+#define cpumask_of_cpu(cpu) (*cpumask_of(cpu))=0A =0A = #define CPU_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(NR_CPUS)=0A =0A--- = 2009-05-19.orig/xen/include/xen/smp.h 2009-05-20 15:49:29.000000000 = +0200=0A+++ 2009-05-19/xen/include/xen/smp.h 2009-05-25 08:37:09.0000000= 00 +0200=0A@@ -9,9 +9,9 @@=0A */=0A extern void smp_send_stop(void);=0A = =0A-extern void smp_send_event_check_mask(cpumask_t mask);=0A+extern void = smp_send_event_check_mask(const cpumask_t *mask);=0A #define smp_send_event= _check_cpu(cpu) \=0A- smp_send_event_check_mask(cpumask_of_cpu(cpu))=0A+= smp_send_event_check_mask(cpumask_of(cpu))=0A =0A /*=0A * Prepare = machine for booting other CPUs.=0A@@ -41,7 +41,7 @@ extern int smp_call_fun= ction(=0A * Call a function on a selection of processors=0A */=0A extern = int on_selected_cpus(=0A- cpumask_t selected,=0A+ const cpumask_t = *selected,=0A void (*func) (void *info),=0A void *info,=0A int = retry,=0A@@ -62,7 +62,7 @@ static inline int on_each_cpu(=0A int = retry,=0A int wait)=0A {=0A- return on_selected_cpus(cpu_online_map,= func, info, retry, wait);=0A+ return on_selected_cpus(&cpu_online_map, = func, info, retry, wait);=0A }=0A =0A #define smp_processor_id() raw_smp_pr= ocessor_id()=0A--- 2009-05-19.orig/xen/include/xen/softirq.h 2009-05-20 = 15:49:29.000000000 +0200=0A+++ 2009-05-19/xen/include/xen/softirq.h = 2009-05-25 08:37:09.000000000 +0200=0A@@ -39,7 +39,7 @@ static inline void = cpumask_raise_softirq=0A cpu_clear(cpu, mask);=0A }=0A = =0A- smp_send_event_check_mask(mask);=0A+ smp_send_event_check_mask(&= mask);=0A }=0A =0A static inline void cpu_raise_softirq(unsigned int cpu, = unsigned int nr)=0A --=__PartB893E459.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartB893E459.1__=--