memory: bail from page scrubbing when CPU is no longer online
authorJan Beulich <jbeulich@suse.com>
Fri, 29 Jan 2021 10:34:37 +0000 (11:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 Jan 2021 10:34:37 +0000 (11:34 +0100)
commit3c9fd69416f8ffc611705fb24dfb383203ddc84f
treefe83ce226c166769629392bca33f12b4bd2c32ca
parent389d4c12a1a9af7fc20dfd2e97f7bae9f37d932c
memory: bail from page scrubbing when CPU is no longer online

Scrubbing can significantly delay the offlining (parking) of a CPU (e.g.
because of booting into in smt=0 mode), to a degree that the "CPU <n>
still not dead..." messages logged on x86 in 1s intervals can be seen
multiple times. There are no softirqs involved in this process, so
extend the existing preemption check in the scrubbing logic to also exit
when the CPU is no longer observed online.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/page_alloc.c