[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v2 3/4] memory: Document update on replay()
From: |
Duan, Zhenzhong |
Subject: |
RE: [PATCH v2 3/4] memory: Document update on replay() |
Date: |
Tue, 6 Jun 2023 02:48:36 +0000 |
>-----Original Message-----
>From: Peter Xu <peterx@redhat.com>
>Sent: Tuesday, June 6, 2023 2:42 AM
>To: Duan, Zhenzhong <zhenzhong.duan@intel.com>
>Cc: qemu-devel@nongnu.org; mst@redhat.com; jasowang@redhat.com;
>pbonzini@redhat.com; richard.henderson@linaro.org; eduardo@habkost.net;
>marcel.apfelbaum@gmail.com; alex.williamson@redhat.com;
>clg@redhat.com; david@redhat.com; philmd@linaro.org;
>kwankhede@nvidia.com; cjia@nvidia.com; Liu, Yi L <yi.l.liu@intel.com>; Peng,
>Chao P <chao.p.peng@intel.com>
>Subject: Re: [PATCH v2 3/4] memory: Document update on replay()
>
>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.
Thanks for point out, I confused with invalidation path, I'll drop it.
Zhenzhong
- [PATCH v2 1/4] util: Add iova_tree_foreach_range_data, (continued)
- [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
- [PATCH v2 4/4] intel_iommu: Optimize out some unnecessary UNMAP calls, Zhenzhong Duan, 2023/06/01