mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +00:00
acrn-dm: Pass vbdf and pbdf info to vm_reset_ptdev_intx_info
ACRN interepts vm_set/reset_ptdev_intx_info hypercalls to set the SOS vdev properties to indicate it is assigned to UOS. Today, upon vm_reset_ptdev_intx_info hypercall ACRN does not revert the SOS vdev properties back to that of SOS, as vbdf and pbdf were not part of the API. This would leave ACRN data structures in an incorrect state Tracked-On: #2700 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
624185c3ca
commit
7a78e70eb3
@@ -914,7 +914,10 @@ passthru_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
|
||||
printf("vm_reset_ptdev_intx:0x%x-%x, ioapic virpin=%d.\n",
|
||||
virt_bdf, ptdev->phys_bdf, dev->lintr.ioapic_irq);
|
||||
vm_reset_ptdev_intx_info(ctx, dev->lintr.ioapic_irq, false);
|
||||
|
||||
if (dev->lintr.pin != 0) {
|
||||
vm_reset_ptdev_intx_info(ctx, virt_bdf, ptdev->phys_bdf, dev->lintr.ioapic_irq, false);
|
||||
}
|
||||
|
||||
/* unmap the physical BAR in guest MMIO space */
|
||||
for (i = 0; i <= PCI_BARMAX; i++) {
|
||||
|
Reference in New Issue
Block a user