x86/p2m: constify p2m_mem_access_sanity_check()
PATCH v2 1/1 x86/p2m: constify p2m_mem_access_sanity_check()
Minor improvement; simply improving code quality by using consts wherever reasonable.
--- xen/arch/x86/mm/mem_access.c | 2 +- xen/include/asm-x86/mem_access.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/mm/mem_access.c +1 -1
@@ -541,7 +541,7 @@ void arch_p2m_set_access_required(struct domain *d, bool access_required)#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); }
xen/include/asm-x86/mem_access.h +1 -1
@@ -44,7 +44,7 @@ bool p2m_mem_access_emulate_check(struct vcpu *v, 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__ */
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Razvan Cojocaru
Minor improvement; simply improving code quality by using consts wherever reasonable.
Suggested-by Jan Beulich <[email protected]>Signed-off-by Razvan Cojocaru <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Razvan Cojocaru
Minor improvement; simply improving code quality by using consts wherever reasonable.
Suggested-by Jan Beulich <[email protected]>Signed-off-by Razvan Cojocaru <[email protected]>
Tamas, I think we need your ack for this?
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Tamas K Lengyel
Acked-byQuoted 9 lines · Razvan Cojocaru
Quoted 5 lines · Razvan Cojocaru
Minor improvement; simply improving code quality by using consts wherever reasonable.
Suggested-by Jan Beulich <[email protected]>Signed-off-by Razvan Cojocaru <[email protected]>Tamas, I think we need your ack for this?
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel