Signed-off-by: Tamas K Lengyel <tklengyel@sec.in.tum.de>
Acked-by: Tim Deegan <tim@xen.org>
return rc;
rc = -EINVAL;
- if ( !is_hvm_domain(d) )
+ if ( !p2m_mem_access_sanity_check(d) )
goto out;
rc = xsm_mem_event_op(XSM_DM_PRIV, d, XENMEM_access_op);
return hap_enabled(d) && cpu_has_vmx;
}
+/* Sanity check for mem_access hardware support */
+static inline bool_t p2m_mem_access_sanity_check(struct domain *d)
+{
+ return is_hvm_domain(d);
+}
+
/*
* Internal functions, only called by other p2m code
*/