]> git.baikalelectronics.ru Git - kernel.git/commit
xen/events: Use PIRQ instead of GSI value when unmapping MSI/MSI-X irqs.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Nov 2010 16:27:09 +0000 (11:27 -0500)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 22 Nov 2010 20:10:34 +0000 (12:10 -0800)
commite60dbec40721f3bceb5232ff2e07532e38d7398b
tree0b8d0f7eadf1f43f283fdf53ffbb7e280163b6ba
parentf2c0d6198bee19ab164c316ed993636e60c8275f
xen/events: Use PIRQ instead of GSI value when unmapping MSI/MSI-X irqs.

When we allocate a vector for MSI/MSI-X we save away the PIRQ, and the
vector value. When we unmap (de-allocate) the MSI/MSI-X vector(s) we
need to provide the PIRQ and the vector value. What we did instead
was to provide the GSI (which was zero) and the vector value, and we
got these unhappy error messages:

(XEN) irq.c:1575: dom0: pirq 0 not mapped
[    7.733415] unmap irq failed -22

This patches fixes this and we use the PIRQ value instead of the GSI
value.

CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c