xen: add support for MSI message groups
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 27 Feb 2014 18:15:35 +0000 (19:15 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 18 Mar 2014 14:40:09 +0000 (14:40 +0000)
commit4892c9b4ada9f9a71a0da7a268f95e988d88064b
tree57c9f627ab44ebec2a948dc11ca69cb0011607de
parentefdfa3eda5d7b33c6e3c4f6e66144fcd10ed41a3
xen: add support for MSI message groups

Add support for MSI message groups for Xen Dom0 using the
MAP_PIRQ_TYPE_MULTI_MSI pirq map type.

In order to keep track of which pirq is the first one in the group all
pirqs in the MSI group except for the first one have the newly
introduced PIRQ_MSI_GROUP flag set. This prevents calling
PHYSDEVOP_unmap_pirq on them, since the unmap must be done with the
first pirq in the group.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/pci/xen.c
drivers/xen/events/events_base.c
drivers/xen/events/events_internal.h
include/xen/events.h
include/xen/interface/physdev.h