mbox series

[kvm-unit-tests,0/3] x86: Bump per-CPU stack/data to 12KiB

Message ID 20250215012032.1206409-1-seanjc@google.com (mailing list archive)
Headers show
Series x86: Bump per-CPU stack/data to 12KiB | expand

Message

Sean Christopherson Feb. 15, 2025, 1:20 a.m. UTC
Make the stacks and per-CPU data page aligned, and bump the total size to
12KiB to reduce the probability having to debug stack overflow insanity in
the future.

Sean Christopherson (3):
  x86: Make per-CPU stacks page-aligned
  x86: Add a macro for the size of the per-CPU stack/data area
  x86: Increase per-CPU stack/data area to 12KiB

 lib/x86/apic-defs.h |  7 ++++---
 lib/x86/setup.c     |  2 +-
 lib/x86/smp.c       |  2 +-
 x86/cstart.S        | 10 +++++-----
 x86/cstart64.S      |  8 ++++----
 x86/trampolines.S   |  7 +++++--
 6 files changed, 20 insertions(+), 16 deletions(-)


base-commit: f77fb696cfd0e4a5562cdca189be557946bf522f

Comments

Sean Christopherson Feb. 24, 2025, 5:23 p.m. UTC | #1
On Fri, 14 Feb 2025 17:20:29 -0800, Sean Christopherson wrote:
> Make the stacks and per-CPU data page aligned, and bump the total size to
> 12KiB to reduce the probability having to debug stack overflow insanity in
> the future.
> 
> Sean Christopherson (3):
>   x86: Make per-CPU stacks page-aligned
>   x86: Add a macro for the size of the per-CPU stack/data area
>   x86: Increase per-CPU stack/data area to 12KiB
> 
> [...]

Applied to kvm-x86 next (and now pulled by Paolo), thanks!

[1/3] x86: Make per-CPU stacks page-aligned
      https://github.com/kvm-x86/kvm-unit-tests/commit/a95dd6beeeb4
[2/3] x86: Add a macro for the size of the per-CPU stack/data area
      https://github.com/kvm-x86/kvm-unit-tests/commit/2821b32d627d
[3/3] x86: Increase per-CPU stack/data area to 12KiB
      https://github.com/kvm-x86/kvm-unit-tests/commit/b94ace2edb58

--
https://github.com/kvm-x86/kvm-unit-tests/tree/next