|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH 07/12] xen: events: separate MSI PIRQ allocation
On Mon, 2011-02-21 at 12:50 +0000, Stefano Stabellini wrote:
> On Fri, 18 Feb 2011, Ian Campbell wrote:
> my only concern is about the order of the calls: on native and on xen
> before this patch the order is
>
> msi_compose_msg
> set_irq_msi
> write_msi_msg
>
> while after this patch the order is:
>
> msi_compose_msg
> write_msi_msg
> set_irq_msi
>
> however I don't think it makes a difference because msi (and msix)
> are not enabled yet anyway on the pci device in question (they are
> enabled by msi(x)_capability_init right after calling
> arch_setup_msi_irqs).
My take is that write_msi_msg is literally get_irq_msi (to fetch the
corresponding struct msi_desc) followed by __write_msi_msg. The
set_irq_msi does nothing other than associate an msi_desc with an IRQ
number in order that the get_irq_msi can return it.
But since we have the right msi_desc in our hand already using
__write_msi_msg directly is OK and so this ordering is fine.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 01/12] xen: pci: only define xen_initdom_setup_msi_irqs if CONFIG_XEN_DOM0, (continued)
- [Xen-devel] [PATCH 03/12] xen: events: drop XEN_ALLOC_IRQ flag to xen_allocate_pirq_msi, Ian Campbell
- [Xen-devel] [PATCH 04/12] xen: events: return irq from xen_allocate_pirq_msi, Ian Campbell
- [Xen-devel] [PATCH 05/12] xen: pci: collapse apic_register_gsi_xen_hvm and xen_hvm_register_pirq, Ian Campbell
- [Xen-devel] [PATCH 06/12] xen: events: assume PHYSDEVOP_get_free_pirq exists, Ian Campbell
- [Xen-devel] [PATCH 07/12] xen: events: separate MSI PIRQ allocation from PIRQ binding to IRQ, Ian Campbell
- [Xen-devel] Re: [PATCH 07/12] xen: events: separate MSI PIRQ allocation from PIRQ binding to IRQ, Stefano Stabellini
- [Xen-devel] Re: [PATCH 07/12] xen: events: separate MSI PIRQ allocation from PIRQ binding to IRQ,
Ian Campbell <=
- [Xen-devel] [PATCH 08/12] xen: events: refactor xen_create_msi_irq slightly, Ian Campbell
- [Xen-devel] [PATCH 09/12] xen: events: update pirq_to_irq in xen_create_msi_irq, Ian Campbell
- [Xen-devel] Re: [PATCH 09/12] xen: events: update pirq_to_irq in xen_create_msi_irq, Konrad Rzeszutek Wilk
- [Xen-devel] Re: [PATCH 09/12] xen: events: update pirq_to_irq in xen_create_msi_irq, Ian Campbell
- Re: [Xen-devel] Re: [PATCH 09/12] xen: events: update pirq_to_irq in xen_create_msi_irq, Konrad Rzeszutek Wilk
- Re: [Xen-devel] Re: [PATCH 09/12] xen: events: update pirq_to_irq in xen_create_msi_irq, Ian Campbell
- [Xen-devel] [PATCH 10/12] xen: events: push set_irq_msi down into xen_create_msi_irq, Ian Campbell
- [Xen-devel] [PATCH 11/12] xen: events: use xen_bind_pirq_msi_to_irq from xen_create_msi_irq, Ian Campbell
- [Xen-devel] [PATCH 12/12] xen: events: remove dom0 specific xen_create_msi_irq, Ian Campbell
- [Xen-devel] Re: [PATCH 12/12] xen: events: remove dom0 specific xen_create_msi_irq, Ian Campbell
|
|
|
|
|