mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
29df230854
commit
7d15b10f6c
3 files changed
+7
No files matched your search
@@ -739,11 +739,13 @@ static XSM_INLINE int cf_check xsm_pmu_op(
|
||||
|
||||
#endif /* CONFIG_X86 */
|
||||
|
||||
#ifdef CONFIG_IOREQ_SERVER
|
||||
static XSM_INLINE int cf_check xsm_dm_op(XSM_DEFAULT_ARG struct domain *d)
|
||||
{
|
||||
XSM_ASSERT_ACTION(XSM_DM_PRIV);
|
||||
return xsm_default_action(action, current->domain, d);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARGO
|
||||
static XSM_INLINE int cf_check xsm_argo_enable(const struct domain *d)
|
||||
|
||||
@@ -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)
|
||||
#endif /* CONFIG_X86 */
|
||||
|
||||
#ifdef CONFIG_IOREQ_SERVER
|
||||
XSM_HOOK(int, dm_op, struct domain *)
|
||||
#endif
|
||||
|
||||
XSM_HOOK(int, xen_version, uint32_t)
|
||||
XSM_HOOK(int, domain_resource_map, struct domain *)
|
||||
|
||||
|
||||
@@ -1852,10 +1852,12 @@ static int cf_check flask_pmu_op(struct domain *d, unsigned int op)
|
||||
}
|
||||
#endif /* CONFIG_X86 */
|
||||
|
||||
#ifdef CONFIG_IOREQ_SERVER
|
||||
static int cf_check flask_dm_op(struct domain *d)
|
||||
{
|
||||
return current_has_perm(d, SECCLASS_HVM, HVM__DM);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int cf_check flask_xen_version(uint32_t op)
|
||||
{
|
||||
|
||||