This series fixes hypervisor side PCIe INTx passthru issue occurred
when passthru USB xDCI, SMbus controllers and IPU to Post-launched VM.
The first patch fixes the hash table implementation used to look up
`ptirq_remapping_info` from physical sid or virtual sid in a VM.
The second patch fixes wrong IOAPIC and RTE states when assigning an
INTx interrupt to Post-launched VM.
Qiang
v3:
- Split into two patches.
- Fix the naming GSI to SID as it's common for both INTx and MSI
- Refine commit log in the first patch
v2:
- Add ptirq_reassign_intx_remapping to do intx reassignment from ServiceVM
to Postlaunched VM, instead of patching the logic in add_intx_remapping.
Qiang Zhang (2):
ptirq: Fix ptirq hash tables
ptirq: Fix INTx assignment for Post-launched VM
hypervisor/arch/x86/guest/assign.c | 41 ++++++++++----
hypervisor/common/hypercall.c | 2 +-
hypervisor/common/ptdev.c | 53 ++++++++++++-------
.../include/arch/x86/asm/guest/assign.h | 21 ++++++++
4 files changed, 85 insertions(+), 32 deletions(-)
--
2.30.2