[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports a
From: |
Peter Xu |
Subject: |
Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks |
Date: |
Wed, 19 Aug 2020 11:50:51 -0400 |
On Wed, Aug 19, 2020 at 03:15:26PM +0800, Jason Wang wrote:
> Yes, actually, I feel confused after reading the codes. Is notifier->start
> IOVA or GPA?
>
> In vfio.c, we did:
>
> iommu_notifier_init(&giommu->n, vfio_iommu_map_notify,
> IOMMU_NOTIFIER_ALL,
> section->offset_within_region,
> int128_get64(llend),
> iommu_idx);
>
> So it looks to me the start and end are GPA, but the assertion above check
> it against IOVA which seems to be wrong ....
It should be iova; both section->offset_within_region and llend are for the
device's iova address space. Thanks,
--
Peter Xu
- [RFC v3 0/1] memory: Delete assertion in memory_region_unregister_iommu_notifier, Eugenio Pérez, 2020/08/11
- [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Eugenio Pérez, 2020/08/11
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Jason Wang, 2020/08/11
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Eugenio Perez Martin, 2020/08/12
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Eugenio Perez Martin, 2020/08/18
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Jason Wang, 2020/08/19
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Eugenio Perez Martin, 2020/08/19
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Jason Wang, 2020/08/19
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks,
Peter Xu <=
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Jason Wang, 2020/08/19
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Peter Xu, 2020/08/21
- Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks, Jason Wang, 2020/08/31
Re: [RFC v3 0/1] memory: Delete assertion in memory_region_unregister_iommu_notifier, Eugenio Perez Martin, 2020/08/11