Loading
sw64: fix msi interrupt for guest os
Sunway inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBDJNZ -------------------------------- This patch: - Add msi_domain for guset os, including vt_pci_msi_domain_ops and pci_vt_msi_domain_info which support msi interrupt initialization in a standard way. - Modify the method to find free cpu vector to ensure that msi irq number can be set on the proper cpu. When migrate an interrupt, it can find the vector which was used before but not cleaned up. - Add vt_irq_move_complete() for guest os. If the interrupt migration has completed, it is necessory to clear its information on previous cpu before irq is handled. After that, it can handle msi interrupt correctly during cpu hotplug. Besides, move guset related code into irq-sunway-msi-vt.c. Signed-off-by:Lei Yilong <leiyilong@wxiat.com> Reviewed-by:
He Sheng <hesheng@wxiat.com> Signed-off-by:
Gu Zitao <guzitao@wxiat.com>