XSM: make .kexec() hook dependent upon KEXEC=y

It's unreachable / dead otherwise.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This commit is contained in:
Jan Beulich committed 2026-08-03 16:35:12 +02:00
1 parent 7a01c8179c
commit 430673b845
3 files changed
+6

No files matched your search

+2
View File
@@ -271,11 +271,13 @@ static XSM_INLINE int cf_check xsm_console_io(
return xsm_default_action(XSM_PRIV, d, NULL);
}
#ifdef CONFIG_KEXEC
static XSM_INLINE int cf_check xsm_kexec(XSM_DEFAULT_VOID)
{
XSM_ASSERT_ACTION(XSM_PRIV);
return xsm_default_action(action, current->domain, NULL);
}
#endif
static XSM_INLINE int cf_check xsm_schedop_shutdown(
XSM_DEFAULT_ARG struct domain *d1, struct domain *d2)
+2
View File
@@ -61,7 +61,9 @@ XSM_HOOK(int, claim_pages, struct domain *)
XSM_HOOK(int, console_io, struct domain *, int)
#ifdef CONFIG_KEXEC
XSM_HOOK(int, kexec)
#endif
XSM_HOOK(int, schedop_shutdown, struct domain *, struct domain *)
+2
View File
@@ -536,10 +536,12 @@ static int cf_check flask_console_io(struct domain *d, int cmd)
return domain_has_xen(d, perm);
}
#ifdef CONFIG_KEXEC
static int cf_check flask_kexec(void)
{
return domain_has_xen(current->domain, XEN__KEXEC);
}
#endif
static int cf_check flask_schedop_shutdown(struct domain *d1, struct domain *d2)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.