[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/4] memory: Document update on replay()
From: |
Peter Xu |
Subject: |
Re: [PATCH v2 3/4] memory: Document update on replay() |
Date: |
Mon, 5 Jun 2023 14:42:02 -0400 |
On Thu, Jun 01, 2023 at 02:33:19PM +0800, Zhenzhong Duan wrote:
> diff --git a/include/exec/memory.h b/include/exec/memory.h
> index eecc3eec6702..9a523ef62a94 100644
> --- a/include/exec/memory.h
> +++ b/include/exec/memory.h
> @@ -441,9 +441,9 @@ struct IOMMUMemoryRegionClass {
> * call the IOMMU translate method for every page in the address space
> * with flag == IOMMU_NONE and then call the notifier if translate
> * returns a valid mapping. If this method is implemented then it
> - * overrides the default behaviour, and must provide the full semantics
> - * of memory_region_iommu_replay(), by calling @notifier for every
> - * translation present in the IOMMU.
> + * overrides the default behavior, and must provide corresponding
> + * semantics depending on notifier's type, e.g. IOMMU_NOTIFIER_MAP,
> + * notify changed entries; IOMMU_NOTIFIER_FULL_MAP, notify full entries.
IIUC it was always trying to notify all existing entries only, rather than
changed entries. VT-d used to unmap all so it was also true.
--
Peter Xu
- [PATCH v2 0/4] Optimize UNMAP call and bug fix, Zhenzhong Duan, 2023/06/01
- [PATCH v2 1/4] util: Add iova_tree_foreach_range_data, Zhenzhong Duan, 2023/06/01
- [PATCH v2 2/4] intel_iommu: Fix a potential issue in VFIO dirty page sync, Zhenzhong Duan, 2023/06/01
- Re: [PATCH v2 2/4] intel_iommu: Fix a potential issue in VFIO dirty page sync, Peter Xu, 2023/06/05
- RE: [PATCH v2 2/4] intel_iommu: Fix a potential issue in VFIO dirty page sync, Duan, Zhenzhong, 2023/06/05
- Re: [PATCH v2 2/4] intel_iommu: Fix a potential issue in VFIO dirty page sync, Peter Xu, 2023/06/06
- RE: [PATCH v2 2/4] intel_iommu: Fix a potential issue in VFIO dirty page sync, Duan, Zhenzhong, 2023/06/06
- Re: [PATCH v2 2/4] intel_iommu: Fix a potential issue in VFIO dirty page sync, Peter Xu, 2023/06/07
[PATCH v2 3/4] memory: Document update on replay(), Zhenzhong Duan, 2023/06/01
- Re: [PATCH v2 3/4] memory: Document update on replay(),
Peter Xu <=
[PATCH v2 4/4] intel_iommu: Optimize out some unnecessary UNMAP calls, Zhenzhong Duan, 2023/06/01