From: Vasant Hegde <vasant.hegde@amd.com>
To: Sairaj Kodilkar <sarunkod@amd.com>,
"H. Peter Anvin" <hpa@zytor.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Ingo Molnar <mingo@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Sean Christopherson <seanjc@google.com>,
Thomas Gleixner <tglx@kernel.org>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
x86@kernel.org
Cc: Suravee.Suthikulpanit@amd.com
Subject: Re: [PATCH v3] x86/kvm: Use RCU for svm_vm_data_hash
Date: Wed, 2 Dec 2026 15:40:19 +0530 [thread overview]
Message-ID: <c1b8d147-44a8-419d-99fe-dc00ee1fce4a@amd.com> (raw)
In-Reply-To: <20261201055848.4874-1-sarunkod@amd.com>
On 12/1/2026 11:28 AM, Sairaj Kodilkar wrote:
> GALOG notifier iterates svm_vm_data_hash to find the `struct kvm_vcpu`
> for the given vm id and vcpu id. Holding spinlock is not ideal here since
> it allows only a single reader to iterate over the hash. This degrades
> performance when interrupt rate is high and large number of readers are
> waiting for the spinlock. Hence replace spinlock with the RCU.
>
> Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>
Looks good.
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
-Vasant
prev parent reply other threads:[~2026-12-02 10:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 5:58 Sairaj Kodilkar
2026-12-02 10:10 ` Vasant Hegde [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1b8d147-44a8-419d-99fe-dc00ee1fce4a@amd.com \
--to=vasant.hegde@amd.com \
--cc=Suravee.Suthikulpanit@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=sarunkod@amd.com \
--cc=seanjc@google.com \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®