]> xenbits.xensource.com Git - xen.git/commit
memory: bail from page scrubbing when CPU is no longer online
authorJan Beulich <jbeulich@suse.com>
Fri, 5 Mar 2021 14:42:31 +0000 (15:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Mar 2021 14:42:31 +0000 (15:42 +0100)
commitab3770e98f8ca1feae8607f52b3ec118664c8a74
tree1047203e5f17bc41f8421c5b5fc93ce3e6f51abe
parentc11bd12218365e31ee4d00f315a075b21a015914
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>
master commit: 3c9fd69416f8ffc611705fb24dfb383203ddc84f
master date: 2021-01-29 11:34:37 +0100
xen/common/page_alloc.c