[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH] plat: Configure stack size page order


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Tue, 27 Aug 2019 10:56:40 +0300
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
  • Delivery-date: Tue, 27 Aug 2019 07:56:56 +0000
  • Ironport-phdr: 9a23:luJTkxEeN0gphCk1nIqRh51GYnF86YWxBRYc798ds5kLTJ7yoc2wAkXT6L1XgUPTWs2DsrQY0rCQ6v29EjVav96oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vMhm6txjdu8kWjIdtN6o91BrEqWZUdupLwm9lOUidlAvm6Meq+55j/SVQu/Y/+MNFTK73Yac2Q6FGATo/K2w669HluhfFTQuU+3sTSX4WnQZSAwjE9x71QJH8uTbnu+Vn2SmaOcr2Ta0oWTmn8qxmRgPkhDsBOjUk9mzcl85+g79BoB+5pxJx3ZPabo+WOvR5Za7RYc8WSHBdUstLSyBNHoWxZJYPAeobOuZYqpHwqkUJrRulGQmsBeXvwSJOiH/rxa06zvkqHAba0wwnBNIOrHXUrNPvOKcWTOC11LTIwC7fYPNNwzv98JXIfQs7rfGWWrJ9aMzcwlQsGQPdllictIPoMy6P2ukOs2WX9fRsWfythmI9pQx9uiWjy8gxhoXThY8YykrI+Tt3zYs7P9G0VUF2bcCiHZBNrS+VLZF2TdknQ2xwvSY6zaAJtoCjcSgRzZQn2wbfa/uac4iU+h7jVPieITN/hH99ZrK/ggy98UmkyuHmSsa0y0xGrjJYktbXrHwNzRvT5tCGSvt74EihxS6C2x3c5+1ZO0w5lqrWJ4Q/zrIulJcfq0rOEjfzmErsja+Wcksk+vKv6+TierjpupicN5RoigH/NKQigMi/AfkgMggTRGWU5f+82Kf7/U3kW7pGlOc2kq7BvJDAOcsbvrK5AxNS0os77ha/DjGm0NUfnXkcNV5KZQyIj5b3NFHKO/34Cfa/g0+wkDdw3fzHMaPuApPXInjEirfhcq5361RAxwor0dBf+5VUB6kPIP3tXk/xtcTYAQEjPwy03ubnCcly1oIFVGKJHKCWLKfSvkWT6e41PeaMeZcfuCzhJPg9+/7ukXg5lEcGfamo2JsXb3a4Eu5lI0WEf3XshNYAHnkQvgclSuzllkGNUTpJaHmpRa4z+Cw7Apq8DYjfXoCtnKCB3CCjE51IYmBJEE2DHm/yeIWCRvgMcjydIs57njMfT7euVogh1RCztALh0LpnMvfU9TACuZ35yNd1/PfflQwq9TNvFcidyWaNHClImTYNRjk327s6rUFjx1Or1aljn+ceBdFVofRTXVQUL5nZmsd9EMzzXErlY8+UAAKtRc66ADd3Ss8p3vcFeABlBt/klBeVjHniOKMci7HeXM98yanbxXWkf8s=
  • Ironport-sdr: NnV651nKxRaLjc4m2U2VD4CniHaz1R6NBAh7GE+Axdk1mB5RWQXAAN3a/i64f8GoacJRjB9xHu C2DrUsCEbQIA==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

This patch adds a config option for configuring the stack size page order. We
need this for supporting large stacks.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 arch/arm/arm/include/uk/asm/limits.h    | 2 +-
 arch/arm/arm64/include/uk/asm/limits.h  | 2 +-
 arch/x86/x86_64/include/uk/asm/limits.h | 2 +-
 plat/Config.uk                          | 9 +++++++++
 4 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/arch/arm/arm/include/uk/asm/limits.h 
b/arch/arm/arm/include/uk/asm/limits.h
index 085761c3..e2298d6b 100644
--- a/arch/arm/arm/include/uk/asm/limits.h
+++ b/arch/arm/arm/include/uk/asm/limits.h
@@ -39,7 +39,7 @@
 #define __PAGE_MASK            (~((__PAGE_SIZE) - 1))
 #endif
 
-#define __STACK_SIZE_PAGE_ORDER        2
+#define __STACK_SIZE_PAGE_ORDER        CONFIG_STACK_SIZE_PAGE_ORDER
 #define __STACK_SIZE           (__PAGE_SIZE * (1 << __STACK_SIZE_PAGE_ORDER))
 
 #define __WORDSIZE             32
diff --git a/arch/arm/arm64/include/uk/asm/limits.h 
b/arch/arm/arm64/include/uk/asm/limits.h
index cec05641..fb70f2ba 100644
--- a/arch/arm/arm64/include/uk/asm/limits.h
+++ b/arch/arm/arm64/include/uk/asm/limits.h
@@ -40,7 +40,7 @@
 #define __PAGE_MASK            (~((__PAGE_SIZE) - 1))
 #endif
 
-#define __STACK_SIZE_PAGE_ORDER        4
+#define __STACK_SIZE_PAGE_ORDER        CONFIG_STACK_SIZE_PAGE_ORDER
 #define __STACK_SIZE   (__PAGE_SIZE * (1 << __STACK_SIZE_PAGE_ORDER))
 #define __STACK_ALIGN_SIZE     16
 
diff --git a/arch/x86/x86_64/include/uk/asm/limits.h 
b/arch/x86/x86_64/include/uk/asm/limits.h
index a969bd17..21814044 100644
--- a/arch/x86/x86_64/include/uk/asm/limits.h
+++ b/arch/x86/x86_64/include/uk/asm/limits.h
@@ -39,7 +39,7 @@
 #define __PAGE_MASK            (~((__PAGE_SIZE) - 1))
 #endif
 
-#define __STACK_SIZE_PAGE_ORDER        4
+#define __STACK_SIZE_PAGE_ORDER        CONFIG_STACK_SIZE_PAGE_ORDER
 #define __STACK_SIZE           (__PAGE_SIZE * (1 << __STACK_SIZE_PAGE_ORDER))
 
 #define __WORDSIZE             64
diff --git a/plat/Config.uk b/plat/Config.uk
index 8a878eb0..d0b99bd5 100644
--- a/plat/Config.uk
+++ b/plat/Config.uk
@@ -25,3 +25,12 @@ config HZ
        help
                Configure the timer interrupt frequency.
                Only change this if you know what you're doing.
+
+config STACK_SIZE_PAGE_ORDER
+       int
+       prompt "Stack size page order"
+       default 4
+       help
+               Indirectly configures the stack size by changing the stack size 
page
+               order. Stack size is equal with 2^order * page size (e.g. 4KB).
+               Only change this if you know what you're doing.
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.