diff options
author | Edgar E. Iglesias <edgar.iglesias@amd.com> | 2024-04-18 16:40:58 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@amd.com> | 2024-06-09 20:16:14 +0200 |
commit | 6d87a2a311fe4a8363143e6914d000697ea0cd83 (patch) | |
tree | 5b46d0dfb746e742ce85bb84262cfd1e62e989c3 /hw/arm | |
parent | 9ecdd4bf08dfe4a37e16b8a8b228575aff641468 (diff) | |
download | qemu-6d87a2a311fe4a8363143e6914d000697ea0cd83.zip qemu-6d87a2a311fe4a8363143e6914d000697ea0cd83.tar.gz qemu-6d87a2a311fe4a8363143e6914d000697ea0cd83.tar.bz2 |
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>
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/xen_arm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/arm/xen_arm.c b/hw/arm/xen_arm.c index 15fa7df..6fad829e 100644 --- a/hw/arm/xen_arm.c +++ b/hw/arm/xen_arm.c @@ -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) |