mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
XSM: make .hypfs() hook dependent upon HYPFS=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
430673b845
commit
dd60120e2a
3 files changed
+6
No files matched your search
@@ -437,11 +437,13 @@ static XSM_INLINE int cf_check xsm_resource_setup_misc(XSM_DEFAULT_VOID)
|
||||
return xsm_default_action(action, current->domain, NULL);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HYPFS
|
||||
static XSM_INLINE int cf_check xsm_hypfs_op(XSM_DEFAULT_VOID)
|
||||
{
|
||||
XSM_ASSERT_ACTION(XSM_PRIV);
|
||||
return xsm_default_action(action, current->domain, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
static XSM_INLINE long cf_check xsm_do_xsm_op(XEN_GUEST_HANDLE_PARAM(void) op)
|
||||
{
|
||||
|
||||
@@ -100,7 +100,9 @@ XSM_HOOK(int, pci_config_permission, struct domain *, uint32_t, uint16_t,
|
||||
uint16_t, uint8_t)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HYPFS
|
||||
XSM_HOOK(int, hypfs_op)
|
||||
#endif
|
||||
|
||||
XSM_HOOK(int, hvm_param, struct domain *, unsigned long)
|
||||
XSM_HOOK(int, hvm_param_altp2mhvm, struct domain *)
|
||||
|
||||
@@ -1345,10 +1345,12 @@ static int cf_check flask_resource_setup_misc(void)
|
||||
return avc_current_has_perm(SECINITSID_XEN, SECCLASS_RESOURCE, RESOURCE__SETUP, NULL);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HYPFS
|
||||
static inline int cf_check flask_hypfs_op(void)
|
||||
{
|
||||
return domain_has_xen(current->domain, XEN__HYPFS_OP);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int cf_check flask_add_to_physmap(struct domain *d1, struct domain *d2)
|
||||
{
|
||||
|
||||