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-- 170 bytes
bnx2x.h -rw-r--r-- 46.3 KB
bnx2x_cmn.c -rw-r--r-- 58.4 KB
bnx2x_cmn.h -rw-r--r-- 22.3 KB
bnx2x_dump.h -rw-r--r-- 30.2 KB
bnx2x_ethtool.c -rw-r--r-- 56.3 KB
bnx2x_fw_defs.h -rw-r--r-- 19.0 KB
bnx2x_fw_file_hdr.h -rw-r--r-- 1.2 KB
bnx2x_hsi.h -rw-r--r-- 97.2 KB
bnx2x_init.h -rw-r--r-- 4.5 KB
bnx2x_init_ops.h -rw-r--r-- 25.0 KB
bnx2x_link.c -rw-r--r-- 207.8 KB
bnx2x_link.h -rw-r--r-- 10.5 KB
bnx2x_main.c -rw-r--r-- 260.0 KB
bnx2x_reg.h -rw-r--r-- 319.6 KB
bnx2x_stats.c -rw-r--r-- 44.1 KB
bnx2x_stats.h -rw-r--r-- 6.9 KB

back to top