Minor improvement; simply improving code quality by using consts
wherever reasonable.
Suggested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
#endif
}
-bool p2m_mem_access_sanity_check(struct domain *d)
+bool p2m_mem_access_sanity_check(const struct domain *d)
{
return is_hvm_domain(d) && cpu_has_vmx && hap_enabled(d);
}
const vm_event_response_t *rsp);
/* Sanity check for mem_access hardware support */
-bool p2m_mem_access_sanity_check(struct domain *d);
+bool p2m_mem_access_sanity_check(const struct domain *d);
#endif /*__ASM_X86_MEM_ACCESS_H__ */