XSM: make .dm_op() hook dependent upon IOREQ_SERVER=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:36:34 +02:00
1 parent 29df230854
commit 7d15b10f6c
3 files changed
+7

No files matched your search

+2
View File
@@ -739,11 +739,13 @@ static XSM_INLINE int cf_check xsm_pmu_op(
#endif /* CONFIG_X86 */ #endif /* CONFIG_X86 */
#ifdef CONFIG_IOREQ_SERVER
static XSM_INLINE int cf_check xsm_dm_op(XSM_DEFAULT_ARG struct domain *d) static XSM_INLINE int cf_check xsm_dm_op(XSM_DEFAULT_ARG struct domain *d)
{ {
XSM_ASSERT_ACTION(XSM_DM_PRIV); XSM_ASSERT_ACTION(XSM_DM_PRIV);
return xsm_default_action(action, current->domain, d); return xsm_default_action(action, current->domain, d);
} }
#endif
#ifdef CONFIG_ARGO #ifdef CONFIG_ARGO
static XSM_INLINE int cf_check xsm_argo_enable(const struct domain *d) static XSM_INLINE int cf_check xsm_argo_enable(const struct domain *d)
+3
View File
@@ -145,7 +145,10 @@ XSM_HOOK(int, ioport_mapping, struct domain *, uint32_t, uint32_t, uint8_t)
XSM_HOOK(int, pmu_op, struct domain *, unsigned int) XSM_HOOK(int, pmu_op, struct domain *, unsigned int)
#endif /* CONFIG_X86 */ #endif /* CONFIG_X86 */
#ifdef CONFIG_IOREQ_SERVER
XSM_HOOK(int, dm_op, struct domain *) XSM_HOOK(int, dm_op, struct domain *)
#endif
XSM_HOOK(int, xen_version, uint32_t) XSM_HOOK(int, xen_version, uint32_t)
XSM_HOOK(int, domain_resource_map, struct domain *) XSM_HOOK(int, domain_resource_map, struct domain *)
+2
View File
@@ -1852,10 +1852,12 @@ static int cf_check flask_pmu_op(struct domain *d, unsigned int op)
} }
#endif /* CONFIG_X86 */ #endif /* CONFIG_X86 */
#ifdef CONFIG_IOREQ_SERVER
static int cf_check flask_dm_op(struct domain *d) static int cf_check flask_dm_op(struct domain *d)
{ {
return current_has_perm(d, SECCLASS_HVM, HVM__DM); return current_has_perm(d, SECCLASS_HVM, HVM__DM);
} }
#endif
static int cf_check flask_xen_version(uint32_t op) static int cf_check flask_xen_version(uint32_t op)
{ {
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.