|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2] xen/x86: clear per cpu stub page information in cpu_smpboot_free()
On 08.01.20 16:21, Jan Beulich wrote: On 08.01.2020 15:34, Juergen Gross wrote:cpu_smpboot_free() removes the stubs for the cpu going offline, but it isn't clearing the related percpu variables. This will result in crashes when a stub page is released due to all related cpus gone offline and one of those cpus going online later. Fix that by clearing stubs.addr and stubs.mfn in order to allocate a new stub page when needed.I was really hoping for you to mention CPU parking here. How about "Fix that by clearing stubs.mfn (and also stubs.addr just to be on the safe side) in order to allocate a new stub page when needed, irrespective of whether the CPU gets parked or removed." I agree. I'm not sure the addr clearing can be omitted. This might result in problems when during onlining an early error happens in cpu_smpboot_alloc() and thus skipping the call of alloc_stub_page(). The subsequent call of cpu_smpboot_free() will then overwrite mfn 0. Juergen _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |