|
@@ -203,7 +203,7 @@ int kvm_assign_device(struct kvm *kvm,
|
|
goto out_unmap;
|
|
goto out_unmap;
|
|
}
|
|
}
|
|
|
|
|
|
- pdev->dev_flags |= PCI_DEV_FLAGS_ASSIGNED;
|
|
|
|
|
|
+ pci_set_dev_assigned(pdev);
|
|
|
|
|
|
dev_info(&pdev->dev, "kvm assign device\n");
|
|
dev_info(&pdev->dev, "kvm assign device\n");
|
|
|
|
|
|
@@ -229,7 +229,7 @@ int kvm_deassign_device(struct kvm *kvm,
|
|
|
|
|
|
iommu_detach_device(domain, &pdev->dev);
|
|
iommu_detach_device(domain, &pdev->dev);
|
|
|
|
|
|
- pdev->dev_flags &= ~PCI_DEV_FLAGS_ASSIGNED;
|
|
|
|
|
|
+ pci_clear_dev_assigned(pdev);
|
|
|
|
|
|
dev_info(&pdev->dev, "kvm deassign device\n");
|
|
dev_info(&pdev->dev, "kvm deassign device\n");
|
|
|
|
|