RE: [PATCH rfcv2 10/20] intel_iommu: Optimize context entry cache utilization

2025-02-28 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Subject: Re: [PATCH rfcv2 10/20] intel_iommu: Optimize context entry cache >utilization > >Hi Zhenzhong, > >On 2/19/25 9:22 AM, Zhenzhong Duan wrote: >> There are many call sites refere

Re: [PATCH rfcv2 10/20] intel_iommu: Optimize context entry cache utilization

2025-02-21 Thread Eric Auger
Hi Zhenzhong, On 2/19/25 9:22 AM, Zhenzhong Duan wrote: > There are many call sites referencing context entry by calling > vtd_as_to_context_entry() which will traverse the DMAR table. didn't you mean vtd_dev_to_context_entry? instead > > In most cases we can use cached context entry in vtd_as->co

[PATCH rfcv2 10/20] intel_iommu: Optimize context entry cache utilization

2025-02-19 Thread Zhenzhong Duan
There are many call sites referencing context entry by calling vtd_as_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 it's stale. Currently only global and domain context invalidation stales it. So introduc