mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
xen: mapcache: Add support for grant mappings
Add a second mapcache for grant mappings. The mapcache for grants needs to work with XC_PAGE_SIZE granularity since we can't map larger ranges than what has been granted to us. Like with foreign mappings (xen_memory), machines using grants are expected to initialize the xen_grants MR and map it into their address-map accordingly. CC: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
parent
49a7202979
commit
9ecdd4bf08
4 changed files with 144 additions and 37 deletions
|
@ -50,4 +50,5 @@ static inline void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size,
|
|||
#endif /* CONFIG_XEN_IS_POSSIBLE */
|
||||
|
||||
bool xen_mr_is_memory(MemoryRegion *mr);
|
||||
bool xen_mr_is_grants(MemoryRegion *mr);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue