common: avoid atomic read-modify-write accesses in map_vcpu_info()
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:40:56 +0000 (14:40 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:40:56 +0000 (14:40 +0100)
commitc8cfbba625e3e74fd0152bd42449821e764cabae
tree3b7d9e3e5b7d17b79b13e267be5e9051318cd382
parentd9195962a62241f5f1b89d926eff8c063678f0c5
common: avoid atomic read-modify-write accesses in map_vcpu_info()

There's no need to set the evtchn_pending_sel bits one by one. Simply
write full words with all ones.

For Arm this requires extending write_atomic() to also handle 64-bit
values; for symmetry read_atomic() gets adjusted as well.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/common/domain.c
xen/include/asm-arm/atomic.h