mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
dm: passthru: pass pbdf when reset msi/msix interrupt
Physcial bdf is needed in hypervisor to find the right pci dev. Tracked-On: #2788 Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -508,7 +508,7 @@ deinit_msix_table(struct vmctx *ctx, struct passthru_dev *ptdev)
|
||||
if (ptdev->msix.ptirq_allocated) {
|
||||
printf("ptdev reset msix: 0x%x-%x, vector_cnt=%d.\n",
|
||||
virt_bdf, ptdev->phys_bdf, vector_cnt);
|
||||
vm_reset_ptdev_msix_info(ctx, virt_bdf, vector_cnt);
|
||||
vm_reset_ptdev_msix_info(ctx, virt_bdf, ptdev->phys_bdf, vector_cnt);
|
||||
ptdev->msix.ptirq_allocated = false;
|
||||
}
|
||||
|
||||
@@ -909,8 +909,7 @@ passthru_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
deinit_msix_table(ctx, ptdev);
|
||||
else if(ptdev->msi.capoff != 0) {
|
||||
/* Currently only support 1 vector */
|
||||
printf("ptdev reset msi: 0x%x-%x\n", virt_bdf, ptdev->phys_bdf);
|
||||
vm_reset_ptdev_msix_info(ctx, virt_bdf, 1);
|
||||
vm_reset_ptdev_msix_info(ctx, virt_bdf, ptdev->phys_bdf, 1);
|
||||
}
|
||||
|
||||
printf("vm_reset_ptdev_intx:0x%x-%x, ioapic virpin=%d.\n",
|
||||
|
||||
Reference in New Issue
Block a user