]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: support pirq_eoi_map
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 30 Jan 2012 16:21:48 +0000 (16:21 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Apr 2012 21:17:42 +0000 (17:17 -0400)
commit4e4d71937dcc1fdd37da54ef3e1fa7e9f48f4862
tree5edd374928922a5d517c75c3b0fd2eca29ee6196
parent7bf889f47d737d4ab47c307a1afeeb921b75919b
xen: support pirq_eoi_map

The pirq_eoi_map is a bitmap offered by Xen to check which pirqs need to
be EOI'd without having to issue an hypercall every time.
We use PHYSDEVOP_pirq_eoi_gmfn_v2 to map the bitmap, then if we
succeed we use pirq_eoi_map to check whether pirqs need eoi.

Changes in v3:

- explicitly use PHYSDEVOP_pirq_eoi_gmfn_v2 rather than
PHYSDEVOP_pirq_eoi_gmfn;

- introduce pirq_check_eoi_map, a function to check if a pirq needs an
eoi using the map;

-rename pirq_needs_eoi into pirq_needs_eoi_flag;

- introduce a function pointer called pirq_needs_eoi that is going to be
set to the right implementation depending on the availability of
PHYSDEVOP_pirq_eoi_gmfn_v2.

[upstream git commit 9846ff1]
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c
include/xen/interface/physdev.h