Revision e5fc7345412d5e4758fcef55a74354c5cbefd61e authored by Stefano Stabellini on 01 December 2010, 14:51:44 UTC, committed by Stefano Stabellini on 02 December 2010, 14:28:22 UTC
Use the new hypercall PHYSDEVOP_get_free_pirq to ask Xen to allocate a
pirq. Remove the unsupported PHYSDEVOP_get_nr_pirqs hypercall to get the
amount of pirq available.

This fixes find_unbound_pirq that otherwise would return a number
starting from nr_irqs that might very well be out of range in Xen.

The symptom of this bug is that when you passthrough an MSI capable pci
device to a PV on HVM guest, Linux would fail to enable MSIs on the
device.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
1 parent e8a7e48
History
File Mode Size
Makefile -rw-r--r-- 267 bytes
bfa_cee.c -rw-r--r-- 6.9 KB
bfa_cee.h -rw-r--r-- 1.9 KB
bfa_defs.h -rw-r--r-- 6.2 KB
bfa_defs_cna.h -rw-r--r-- 7.0 KB
bfa_defs_mfg_comm.h -rw-r--r-- 6.9 KB
bfa_defs_status.h -rw-r--r-- 6.6 KB
bfa_ioc.c -rw-r--r-- 37.0 KB
bfa_ioc.h -rw-r--r-- 8.4 KB
bfa_ioc_ct.c -rw-r--r-- 10.7 KB
bfa_sm.h -rw-r--r-- 2.4 KB
bfa_wc.h -rw-r--r-- 1.4 KB
bfi.h -rw-r--r-- 9.8 KB
bfi_cna.h -rw-r--r-- 4.0 KB
bfi_ctreg.h -rw-r--r-- 25.8 KB
bfi_ll.h -rw-r--r-- 9.6 KB
bna.h -rw-r--r-- 17.3 KB
bna_ctrl.c -rw-r--r-- 79.4 KB
bna_hw.h -rw-r--r-- 43.7 KB
bna_txrx.c -rw-r--r-- 100.2 KB
bna_types.h -rw-r--r-- 22.2 KB
bnad.c -rw-r--r-- 78.1 KB
bnad.h -rw-r--r-- 7.5 KB
bnad_ethtool.c -rw-r--r-- 33.0 KB
cna.h -rw-r--r-- 2.3 KB
cna_fwimg.c -rw-r--r-- 1.5 KB

back to top