mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Binbin Wu <binbin.wu@linux.intel.com>
To: Sohil Mehta <sohil.mehta@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>,
	Borislav Petkov <bp@alien8.de>, Thomas Gleixner <tglx@kernel.org>,
	Ingo Molnar <mingo@redhat.com>,
	x86@kernel.org, "H . Peter Anvin" <hpa@zytor.com>,
	Xin Li <xin@zytor.com>, Andy Lutomirski <luto@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Tom Lendacky <thomas.lendacky@amd.com>,
	"Chang S . Bae" <chang.seok.bae@intel.com>,
	Chao Gao <chao.gao@intel.com>,
	Sean Christopherson <seanjc@google.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Dave Hansen <dave.hansen@intel.com>,
	kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] x86/cea: Index exception stacks by the ordering enum
Date: Mon, 23 Nov 2026 14:56:37 +0800	[thread overview]
Message-ID: <f29fb935-8877-4488-861a-3c88c12d664f@linux.intel.com> (raw)
In-Reply-To: <20261120235025.2809042-3-sohil.mehta@intel.com>

On 11/21/2026 7:50 AM, Sohil Mehta wrote:
> The exception stacks are generated by ESTACKS_MEMBERS(), which pastes
> each stack name into a member name, once for the physical storage and
> once for the CEA mapping.
> 
> The macro used to be the only thing keeping the two structures in the
> same order, but there is no ordering requirement left to enforce. The
> stacks are mapped one at a time and have been paired by name for a
> while. Also, the sizes stopped matching once the #VC stacks became
> config dependent.
> 
> So, spell out the physical storage and index the mapping by the stack
> ordering enum. Also drop CEA_ESTACK_SIZE, which just duplicated
> EXCEPTION_STKSZ.
> 
> The stack addresses and the guard pages are unchanged. No functional
> change intended.
> 
> Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>

Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>

      reply	other threads:[~2026-11-23  6:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 23:50 [PATCH 0/2] x86/cea: Clean up the exception stack names and declarations Sohil Mehta
2026-11-20 23:50 ` [PATCH 1/2] x86/cea: Prefix exception stack names with ESTACK_ Sohil Mehta
2026-11-20 23:50 ` [PATCH 2/2] x86/cea: Index exception stacks by the ordering enum Sohil Mehta
2026-11-23  6:56   ` Binbin Wu [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=f29fb935-8877-4488-861a-3c88c12d664f@linux.intel.com \
    --to=binbin.wu@linux.intel.com \
    --cc=bp@alien8.de \
    --cc=chang.seok.bae@intel.com \
    --cc=chao.gao@intel.com \
    --cc=dave.hansen@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterz@infradead.org \
    --cc=seanjc@google.com \
    --cc=sohil.mehta@intel.com \
    --cc=tglx@kernel.org \
    --cc=thomas.lendacky@amd.com \
    --cc=x86@kernel.org \
    --cc=xin@zytor.com \
    /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®