[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 4/5] iommu: introduce iommu_groups



>>> On 08.05.19 at 15:24, <paul.durrant@xxxxxxxxxx> wrote:
> --- a/xen/drivers/passthrough/pci.c
> +++ b/xen/drivers/passthrough/pci.c
> @@ -427,6 +427,7 @@ static struct pci_dev *alloc_pdev(struct pci_seg *pseg, 
> u8 bus, u8 devfn)
>  
>      check_pdev(pdev);
>      apply_quirks(pdev);
> +    iommu_group_assign(pdev);
>  
>      return pdev;
>  }
> @@ -1098,6 +1099,8 @@ int __init scan_pci_devices(void)
>  {
>      int ret;
>  
> +    iommu_groups_init();
> +
>      pcidevs_lock();
>      ret = pci_segments_iterate(_scan_pci_devices, NULL);
>      pcidevs_unlock();

In free_pdev() you also want to remove a device from its group.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.