1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00
freebsd/sys/amd64/vmm
John Baldwin 0d1fd6e541 Support MSI-X for passthrough devices with a separate PBA BAR.
pci_alloc_msix() requires both the table and PBA BARs to be allocated
by the driver.  ppt was only allocating the table BAR so would fail
for devices with the PBA in a separate BAR.  Fix this by allocating
the PBA BAR before pci_alloc_msix() if it is stored in a separate BAR.

While here, release BARs after calling pci_release_msi() instead of
before.  Also, don't call bus_teardown_intr() in error handling code
if bus_setup_intr() has just failed.

Reported by:	gallatin
Tested by:	gallatin
Reviewed by:	rgrimes, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D20525
2019-06-05 19:30:32 +00:00
..
amd Add accessor function for vm->maxcpus 2019-04-25 22:51:36 +00:00
intel Add accessor function for vm->maxcpus 2019-04-25 22:51:36 +00:00
io Support MSI-X for passthrough devices with a separate PBA BAR. 2019-06-05 19:30:32 +00:00
vmm_dev.c Add accessor function for vm->maxcpus 2019-04-25 22:51:36 +00:00
vmm_host.c
vmm_host.h
vmm_instruction_emul.c Emulate the "ADD reg, r/m" instruction (opcode 03H). 2019-05-03 21:48:42 +00:00
vmm_ioport.c
vmm_ioport.h
vmm_ktr.h
vmm_lapic.c Add accessor function for vm->maxcpus 2019-04-25 22:51:36 +00:00
vmm_lapic.h
vmm_mem.c
vmm_mem.h
vmm_stat.c Add accessor function for vm->maxcpus 2019-04-25 22:51:36 +00:00
vmm_stat.h
vmm_util.c
vmm_util.h
vmm.c Provide separate accounting for user-wired pages. 2019-05-13 16:38:48 +00:00
x86.c Expose the MD_CLEAR capability used by Intel MDS mitigations to guests. 2019-05-18 21:20:38 +00:00
x86.h vmm(4): Take steps towards multicore bhyve AMD support 2019-01-16 02:19:04 +00:00