allow for architecture to "decorate" dev_bus_addr
PATCH 1/1 allow for architecture to "decorate" dev_bus_addr
Not for inclusion for 3.0.3 but it should be harmless. But includes patch this time :)
The following patch allows for an architecture to decorate the dev_bus_addr returned by a gnttab mapping.
Signed-off-by Jimi Xenidis <[email protected]>
xen/common/grant_table.c +1 -1
@@ -280,7 +280,7 @@ __gnttab_map_grant_ref( ld->grant_table->maptrack[handle].ref = op->ref; ld->grant_table->maptrack[handle].flags = op->flags; - op->dev_bus_addr = (u64 )frame <<PAGE_SHIFT ; + op->dev_bus_addr =GNTTAB_DEV_BUS ((u64 )frame <<PAGE_SHIFT ); op->handle = handle; op->status = GNTST_okay;
xen/include/xen/grant_table.h +4 -0
@@ -96,4 +96,8 @@ gnttab_release_mappings(gnttab_release_mappings ( struct domain *d); +#ifndef GNTTAB_DEV_BUS +#define GNTTAB_DEV_BUS (f) (f) +#endif +#endif /* __XEN_GRANT_TABLE_H__ */