Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-18 Thread Eric Auger
On 6/18/25 4:10 AM, Duan, Zhenzhong wrote: > Hi Eric, > >> -Original Message- >> From: Eric Auger >> Subject: Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache >> utilization >> >> Hi Zhenzhong, >> >> On 6/6/25 12:04 P

RE: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-17 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Subject: Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache >utilization > >Hi Zhenzhong, > >On 6/6/25 12:04 PM, Zhenzhong Duan wrote: >> There are many call sites referencing context entry by calli

RE: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-17 Thread Duan, Zhenzhong
>-Original Message- >From: Liu, Yi L >Subject: Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache >utilization > >On 2025/6/11 18:06, Duan, Zhenzhong wrote: >> >> >>> -Original Message- >>> From: Liu, Yi L >>

Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-17 Thread Eric Auger
Hi Zhenzhong, On 6/6/25 12:04 PM, Zhenzhong Duan wrote: > There are many call sites referencing context entry by calling > vtd_dev_to_context_entry() which will traverse the DMAR table. > > In most cases we can use cached context entry in vtd_as->context_cache_entry > except when its entry is stal

Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-17 Thread Yi Liu
On 2025/6/11 18:06, Duan, Zhenzhong wrote: -Original Message- From: Liu, Yi L Subject: Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization On 2025/6/6 18:04, Zhenzhong Duan wrote: There are many call sites referencing context entry by calling

RE: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-11 Thread Duan, Zhenzhong
>-Original Message- >From: Liu, Yi L >Subject: Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache >utilization > >On 2025/6/6 18:04, Zhenzhong Duan wrote: >> There are many call sites referencing context entry by calling >> vtd_dev_to_context_e

Re: [PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-11 Thread Yi Liu
On 2025/6/6 18:04, Zhenzhong Duan wrote: There are many call sites referencing context entry by calling vtd_dev_to_context_entry() which will traverse the DMAR table. In most cases we can use cached context entry in vtd_as->context_cache_entry except when its entry is stale. Currently only globa

[PATCH v1 02/15] intel_iommu: Optimize context entry cache utilization

2025-06-06 Thread Zhenzhong Duan
There are many call sites referencing context entry by calling vtd_dev_to_context_entry() which will traverse the DMAR table. In most cases we can use cached context entry in vtd_as->context_cache_entry except when its entry is stale. Currently only global and domain context invalidation stale it.