xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Question about apic ipi interface
@ 2013-04-23 10:07 Stefan Bader
  2013-04-23 12:15 ` Ben Guthro
  2013-05-08 16:26 ` Stefan Bader
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Bader @ 2013-04-23 10:07 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com, Ben Guthro; +Cc: Konrad Rzeszutek Wilk


[-- Attachment #1.1: Type: text/plain, Size: 1134 bytes --]

I was looking at some older patch and there is one thing I do not understand.

commit f447d56d36af18c5104ff29dcb1327c0c0ac3634
    xen: implement apic ipi interface

Specifically there the implementation of xen_send_IPI_mask_allbutself().

void xen_send_IPI_mask_allbutself(const struct cpumask *mask,
                                int vector)
{
        unsigned cpu;
        unsigned int this_cpu = smp_processor_id();

        if (!(num_online_cpus() > 1))
                return;

        for_each_cpu_and(cpu, mask, cpu_online_mask) {
                if (this_cpu == cpu)
                        continue;

                xen_smp_send_call_function_single_ipi(cpu);
        }
}

Why is this using xen_smp_send_call_function_single_ipi()? This dumps the
supplied vector and always uses XEN_CALL_FUNCTION_SINGLE_VECTOR. In contrast the
xen_send_IPI_all() and xen_send_IPI_self() keep the (mapped) vector.

Mildly wondering about whether call function would need special casing (just
because xen_smp_send_call_function_ipi() is special). But I don't have the big
picture there.

Thanks,
Stefan


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 899 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-05-28 12:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 10:07 Question about apic ipi interface Stefan Bader
2013-04-23 12:15 ` Ben Guthro
2013-04-23 12:23   ` Stefan Bader
2013-04-23 12:48     ` Stefan Bader
2013-05-08 16:26 ` Stefan Bader
2013-05-08 17:00   ` Ben Guthro
2013-05-09  8:56   ` Ian Campbell
2013-05-09 14:33     ` Stefan Bader
2013-05-22 19:40   ` Konrad Rzeszutek Wilk
2013-05-23  9:24     ` Stefan Bader
2013-05-24 14:19       ` Konrad Rzeszutek Wilk
2013-05-28 12:43       ` Konrad Rzeszutek Wilk
2013-05-28 12:50         ` Stefan Bader

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).