evtchn: convert vIRQ lock to an r/w one
authorJan Beulich <jbeulich@suse.com>
Fri, 11 Dec 2020 10:52:35 +0000 (11:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 11 Dec 2020 10:52:35 +0000 (11:52 +0100)
commita69583cb50ec07c114cff97f8f902258d6f175d1
tree07abecd1d838d12a1aa9b53a1ff8475ed5433a75
parent777e3590f154e6a8af560dd318b9465fa168db20
evtchn: convert vIRQ lock to an r/w one

There's no need to serialize all sending of vIRQ-s; all that's needed
is serialization against the closing of the respective event channels
(so far by means of a barrier). To facilitate the conversion, switch to
an ordinary write locked region in evtchn_close().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
xen/common/domain.c
xen/common/event_channel.c
xen/include/xen/sched.h