hw/arm: xen: Enable use of grant mappings
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
9ecdd4bf08
commit
6d87a2a311
@ -125,6 +125,11 @@ static void xen_init_ram(MachineState *machine)
|
||||
GUEST_RAM1_BASE, ram_size[1]);
|
||||
memory_region_add_subregion(sysmem, GUEST_RAM1_BASE, &ram_hi);
|
||||
}
|
||||
|
||||
/* Setup support for grants. */
|
||||
memory_region_init_ram(&xen_grants, NULL, "xen.grants", block_len,
|
||||
&error_fatal);
|
||||
memory_region_add_subregion(sysmem, XEN_GRANT_ADDR_OFF, &xen_grants);
|
||||
}
|
||||
|
||||
void arch_handle_ioreq(XenIOState *state, ioreq_t *req)
|
||||
|
Loading…
Reference in New Issue
Block a user