All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: lirongqing <lirongqing@baidu.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	 Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org,  "H . Peter Anvin" <hpa@zytor.com>,
	kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: SVM: Add __read_mostly to frequently read module parameters
Date: Fri, 30 Jan 2026 12:57:51 -0800	[thread overview]
Message-ID: <aX0bT-sKOSEVHHC8@google.com> (raw)
In-Reply-To: <20260130204424.1867-1-lirongqing@baidu.com>

On Fri, Jan 30, 2026, lirongqing wrote:
> From: Li RongQing <lirongqing@baidu.com>
> 
> Mark static global variables that are primarily read-only with
> __read_mostly to optimize cache utilization and performance.
> 
> The modified variables are module parameters and configuration
> flags that are:
> - Initialized at boot time

Please make these __ro_after_init where possible, not __read_mostly.  E.g.
force_avic is definitely read-only after init.

  reply	other threads:[~2026-01-30 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-30 20:44 [PATCH] KVM: SVM: Add __read_mostly to frequently read module parameters lirongqing
2026-01-30 20:57 ` Sean Christopherson [this message]
2026-01-31 12:24   ` 答复: [????] " Li,Rongqing

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=aX0bT-sKOSEVHHC8@google.com \
    --to=seanjc@google.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kvm@vger.kernel.org \
    --cc=lirongqing@baidu.com \
    --cc=mingo@redhat.com \
    --cc=pbonzini@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.