]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen: switch to using core atomics for synchronization
authorElliott Mitchell <ehem+freebsd@m5p.com>
Mon, 24 Jan 2022 01:19:16 +0000 (17:19 -0800)
committerRoger Pau Monné <royger@FreeBSD.org>
Wed, 29 Mar 2023 07:51:42 +0000 (09:51 +0200)
commit9f3be3a6ec8ec6096e3d6c715695a6560aabbb80
treedf0ad0ff83dad8d02dd1e35bd7d7cadea81d9dba
parent49ca3167b7be6145b238588573673a0f14f9e7e2
xen: switch to using core atomics for synchronization

Now that the atomic macros are always genuinely atomic on x86, they can
be used for synchronization with Xen.  A single core VM isn't too
unusual, but actual single core hardware is uncommon.

Replace an open-coding of evtchn_clear_port() with the inline.

Substantially inspired by work done by Julien Grall <julien@xen.org>,
2014-01-13 17:40:58.

Reviewed by: royger
MFC after: 1 week
sys/amd64/include/xen/synch_bitops.h [deleted file]
sys/dev/xen/evtchn/evtchn_dev.c
sys/dev/xen/grant_table/grant_table.c
sys/i386/include/xen/synch_bitops.h [deleted file]
sys/x86/xen/xen_intr.c
sys/xen/evtchn/evtchnvar.h