diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-03-22 15:53:37 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-03-26 19:02:44 -0600 |
commit | d3bb371f8a8063f59dc9b3a654530063da967627 (patch) | |
tree | 395cfa9a3bb1b1030548be573c6fc9734288055a /meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0008-hw-arm-Add-grant-mapping.patch | |
parent | 13e2e08f028da93469d6a0ee18a153e9b5ae303d (diff) | |
parent | 8b38759ff39db98c29651a2d80eedb2fb1a105aa (diff) | |
download | meta-xilinx-d3bb371f8a8063f59dc9b3a654530063da967627.tar.gz |
Merge remote-tracking branch 'xilinx/rel-v2024.1' into master-next
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0008-hw-arm-Add-grant-mapping.patch')
-rw-r--r-- | meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0008-hw-arm-Add-grant-mapping.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0008-hw-arm-Add-grant-mapping.patch b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0008-hw-arm-Add-grant-mapping.patch new file mode 100644 index 00000000..3b83d229 --- /dev/null +++ b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0008-hw-arm-Add-grant-mapping.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From b5e5f60de37bb6f71bc34ecb989c31ef5c834272 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 8/8] hw: arm: Add grant mapping. | ||
5 | |||
6 | Add support for grant mapping and change qemu machine name to xenpvh. | ||
7 | |||
8 | Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com> | ||
9 | Acked-by: Stefano Stabellini <stefano.stabellini@amd.com> | ||
10 | --- | ||
11 | hw/arm/xen_arm.c | 5 ++++- | ||
12 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/hw/arm/xen_arm.c b/hw/arm/xen_arm.c | ||
15 | index 4ac425a3c5..392bed7367 100644 | ||
16 | --- a/hw/arm/xen_arm.c | ||
17 | +++ b/hw/arm/xen_arm.c | ||
18 | @@ -35,7 +35,7 @@ | ||
19 | #include "sysemu/tpm.h" | ||
20 | #include "hw/xen/arch_hvm.h" | ||
21 | |||
22 | -#define TYPE_XEN_ARM MACHINE_TYPE_NAME("xenpv") | ||
23 | +#define TYPE_XEN_ARM MACHINE_TYPE_NAME("xenpvh") | ||
24 | OBJECT_DECLARE_SIMPLE_TYPE(XenArmState, XEN_ARM) | ||
25 | |||
26 | static MemoryListener xen_memory_listener = { | ||
27 | @@ -115,6 +115,9 @@ static void xen_init_ram(MachineState *machine) | ||
28 | DPRINTF("Initialized region xen.ram.hi: base 0x%llx size 0x%lx\n", | ||
29 | GUEST_RAM1_BASE, ram_size[1]); | ||
30 | } | ||
31 | + | ||
32 | + DPRINTF("init grant ram mapping for XEN\n"); | ||
33 | + ram_grants = *xen_init_grant_ram(); | ||
34 | } | ||
35 | |||
36 | void arch_handle_ioreq(XenIOState *state, ioreq_t *req) | ||
37 | -- | ||
38 | 2.25.1 | ||
39 | |||