replace vCPU's dirty CPU mask by numeric ID
authorJan Beulich <jbeulich@suse.com>
Wed, 24 Jan 2018 16:58:45 +0000 (17:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Jan 2018 16:58:45 +0000 (17:58 +0100)
commitdf8234fd2c9eaa6c671524878f1e1257d584c536
tree58f2be2ac6b23400d66b9ed98da2eeb41ff3174d
parent73d1f55efcd12c49e2c52b5a8971a320cbf27444
replace vCPU's dirty CPU mask by numeric ID

At most one bit can be set in the masks, so especially on larger systems
it's quite a bit of unnecessary memory and processing overhead to track
the information as a mask. Store the numeric ID of the respective CPU
instead, or VCPU_CPU_CLEAN if no dirty state exists.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/domain.c
xen/arch/x86/domain.c
xen/arch/x86/mm.c
xen/common/domain.c
xen/common/keyhandler.c
xen/include/xen/sched.h