diff options
Diffstat (limited to 'meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-8.1/0011-hw-arm-Add-grant-mapping.patch')
-rw-r--r-- | meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-8.1/0011-hw-arm-Add-grant-mapping.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-8.1/0011-hw-arm-Add-grant-mapping.patch b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-8.1/0011-hw-arm-Add-grant-mapping.patch new file mode 100644 index 00000000..fb5450e6 --- /dev/null +++ b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-8.1/0011-hw-arm-Add-grant-mapping.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From b1eaba758a9000061fc53a934c348d6ef8dcdf64 Mon Sep 17 00:00:00 2001 | ||
2 | From: Vikram Garhwal <vikram.garhwal@amd.com> | ||
3 | Date: Tue, 31 Jan 2023 21:46:43 +0000 | ||
4 | Subject: [PATCH 11/11] hw: arm: Add grant mapping. | ||
5 | |||
6 | Enable grant ram mapping support for Xenpvh machine on ARM. | ||
7 | |||
8 | Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com> | ||
9 | Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> | ||
10 | --- | ||
11 | hw/arm/xen_arm.c | 3 +++ | ||
12 | 1 file changed, 3 insertions(+) | ||
13 | |||
14 | diff --git a/hw/arm/xen_arm.c b/hw/arm/xen_arm.c | ||
15 | index a5631529d0..1587e2a43b 100644 | ||
16 | --- a/hw/arm/xen_arm.c | ||
17 | +++ b/hw/arm/xen_arm.c | ||
18 | @@ -127,6 +127,9 @@ static void xen_init_ram(MachineState *machine) | ||
19 | DPRINTF("Initialized region xen.ram.hi: base 0x%llx size 0x%lx\n", | ||
20 | GUEST_RAM1_BASE, ram_size[1]); | ||
21 | } | ||
22 | + | ||
23 | + DPRINTF("init grant ram mapping for XEN\n"); | ||
24 | + ram_grants = *xen_init_grant_ram(); | ||
25 | } | ||
26 | |||
27 | void arch_handle_ioreq(XenIOState *state, ioreq_t *req) | ||
28 | -- | ||
29 | 2.39.2 | ||
30 | |||