Thread (113 messages) 113 messages, 9 authors, 2026-01-24

Re: [PATCH v3 15/62] KVM: SVM: Drop superfluous "cache" of AVIC Physical ID entry pointer

From: Naveen N Rao <naveen@kernel.org>
Date: 2025-06-19 11:16:12
Also in: kvm, kvmarm, linux-iommu, lkml

On Wed, Jun 11, 2025 at 03:45:18PM -0700, Sean Christopherson wrote:
Drop the vCPU's pointer to its AVIC Physical ID entry, and simply index
the table directly.  Caching a pointer address is completely unnecessary
for performance, and while the field technically caches the result of the
pointer calculation, it's all too easy to misinterpret the name and think
that the field somehow caches the _data_ in the table.

No functional change intended.

Suggested-by: Maxim Levitsky <redacted>
Tested-by: Sairaj Kodilkar <redacted>
Signed-off-by: Sean Christopherson <seanjc@google.com>
---
 arch/x86/kvm/svm/avic.c | 27 +++++++++++++++------------
 arch/x86/kvm/svm/svm.h  |  1 -
 2 files changed, 15 insertions(+), 13 deletions(-)
Reviewed-by: Naveen N Rao (AMD) <naveen@kernel.org>

- Naveen

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help