]> xenbits.xensource.com Git - xen.git/commit
evtchn/fifo: use stable fields when recording "last queue" information
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2020 06:37:35 +0000 (08:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2020 06:37:35 +0000 (08:37 +0200)
commit6f6f07b64cbe90e54f8e62b4d6f2404cf5306536
treea4eef6c0ca40ff5b4dfa26d6dee8ebe74a13119c
parentbb3d31e03771353ed546b0290fb3f4d8f34d962c
evtchn/fifo: use stable fields when recording "last queue" information

Both evtchn->priority and evtchn->notify_vcpu_id could change behind the
back of evtchn_fifo_set_pending(), as for it - in the case of
interdomain channels - only the remote side's per-channel lock is held.
Neither the queue's priority nor the vCPU's vcpu_id fields have similar
properties, so they seem better suited for the purpose. In particular
they reflect the respective evtchn fields' values at the time they were
used to determine queue and vCPU.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/common/event_fifo.c