The size of the percpu stack area of Xen on x86_64 is 8 pages, not 2.
This is the case since Xen commit 0b630aa340ec in 2007.
While not really critical in its current usage, it should be corrected
nevertheless.
Signed-off-by: Juergen Gross <jgross(a)suse.com>
---
V2:
- add Xen commit id to commit message (lijiang)
- remove make induced change of Makefile
---
x86_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/x86_64.c b/x86_64.c
index 8e3eb89..5019c69 100644
--- a/x86_64.c
+++ b/x86_64.c
@@ -8113,7 +8113,7 @@ x86_64_init_hyper(int when)
machdep->pageshift = ffs(machdep->pagesize) - 1;
machdep->pageoffset = machdep->pagesize - 1;
machdep->pagemask = ~((ulonglong)machdep->pageoffset);
- machdep->stacksize = machdep->pagesize * 2;
+ machdep->stacksize = machdep->pagesize * 8;
if ((machdep->pgd = (char *)malloc(PAGESIZE())) == NULL)
error(FATAL, "cannot malloc pgd space.");
if ((machdep->pud = (char *)malloc(PAGESIZE())) == NULL)
--
2.35.3