xen/domain: Remove function pointers from domain pause helpers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 Oct 2021 03:07:02 +0000 (04:07 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 Dec 2021 17:03:54 +0000 (17:03 +0000)
commit52c06465fc7286cb06743adf15f10b0759ed8f4e
treeb39a716a848657c69d252a23e250e1685c1e05dc
parent32365f3476ac4655f2f26111cd7879912808cd77
xen/domain: Remove function pointers from domain pause helpers

Function pointer calls are expensive (especially with Spectre v2 protections),
and all these do are select between the sync and nosync helpers.  Pass a
boolean instead, and use direct calls everywhere.

Pause/unpause operations on behalf of dom0 are not fastpaths, so avoid
exposing the __domain_pause_by_systemcontroller() internal.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/domain.c
xen/include/xen/sched.h