It is identical on all architecture, and this is a better overall than fixing
it up to have a proper boolean return value.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
if ( unlikely(!guest_handle_okay(unmap, count)) )
goto out;
- rc = -ENOSYS;
- if ( unlikely(!replace_grant_supported()) )
- goto out;
rc = gnttab_unmap_and_replace(unmap, count);
if ( rc > 0 )
{
void gnttab_mark_dirty(struct domain *d, mfn_t mfn);
#define gnttab_create_status_page(d, t, i) do {} while (0)
#define gnttab_release_host_mappings(domain) 1
-static inline int replace_grant_supported(void)
-{
- return 1;
-}
/*
* The region used by Xen on the memory will never be mapped in DOM0
#define gnttab_need_iommu_mapping(d) \
(!paging_mode_translate(d) && need_iommu(d))
-static inline int replace_grant_supported(void)
-{
- return 1;
-}
-
#endif /* __ASM_GRANT_TABLE_H__ */