|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 5/7] xen/arm: Remove __initdata and __init to enable CPU hotplug
Hi, On 12/04/18 13:50, Mirela Simonovic wrote: Hi, On Thu, Apr 12, 2018 at 11:03 AM, Julien Grall <julien.grall@xxxxxxx> wrote:Hi, On 12/04/18 01:07, Stefano Stabellini wrote:On Wed, 11 Apr 2018, Mirela Simonovic wrote: No it should not be removed. cpu0_boot_stack is only used for Xen is booted (e.g CPU0 jumping at _start). In the suspend/resume case you are not going to use that patch for CPU0. I am not sure about this. When you go idle, you could re-use the idle_vcpu[0]->arch.stack. So you save 12K in resident memory.I'm not sure I follow this, maybe Stefano can comment. Each CPU have an associated idle vCPU used for context switch and running idle mode. That idle vCPU contains the stack that is used for boot CPU. In the case of CPU0, you can not use idle vCPU stack when booting because it is not initialized. However during suspend/resume case, you will already have the idle_vcpu[0]->stack in hand. So there are no need to use cpu0_boot_stack. However, do you really need to setup the stack on resume? Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |