[PATCH v2 1/3] xen: fix stacksize

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

 



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@xxxxxxxx>
---
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

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/crash-utility
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux