mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
7a01c8179c
commit
430673b845
3 files changed
+6
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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 *)
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||