x86/pv: Avoid locked bit manipulation in register_guest_callback()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 14 Mar 2018 15:20:05 +0000 (15:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Jul 2018 09:12:40 +0000 (10:12 +0100)
commitad43ce53ad2dab6673e750f8793560e6e460ae28
tree0a5e401c4c5bb2a4a425aba635d39cdc05baf4a5
parent6f28c09aa96b636ed4027cada570c1f2b8dc590f
x86/pv: Avoid locked bit manipulation in register_guest_callback()

Changes to arch.vgc_flags are made to current in syncrhonous context only, and
don't need to be locked.  (The only other changes are via
arch_set_info_guest(), which operates on descheduled vcpus only).

Replace the {set,clear}_bit() calls with compiler-visible bitwise operations.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/pv/callback.c