qemu/Reserve-address-for-MSI-mapping-in-the-CVM-scenario.patch

42 lines
1.5 KiB
Diff
Raw Permalink Normal View History

From e698238a5fa6e78fdffc8269d59884df69da3434 Mon Sep 17 00:00:00 2001
From: chenzheng <chenzheng71@huawei.com>
Date: Thu, 5 Dec 2024 11:06:57 +0000
Subject: [PATCH] Reserve address for MSI mapping in the CVM scenario.
Signed-off-by: yangxiangkai@huawei.com
---
hw/arm/virt.c | 3 ++-
include/hw/arm/virt.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index a9efcec85e..8823f2ed1c 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -162,8 +162,9 @@ static const MemMapEntry base_memmap[] = {
[VIRT_PVTIME] = { 0x090a0000, 0x00010000 },
[VIRT_SECURE_GPIO] = { 0x090b0000, 0x00001000 },
[VIRT_CPUHP_ACPI] = { 0x090c0000, ACPI_CPU_HOTPLUG_REG_LEN},
- /* In the virtCCA scenario, this space is used for MSI interrupt mapping */
[VIRT_MMIO] = { 0x0a000000, 0x00000200 },
+ /* In the virtCCA scenario, this space is used for MSI interrupt mapping */
+ [VIRT_CVM_MSI] = { 0x0a001000, 0x00fff000 },
[VIRT_CPUFREQ] = { 0x0b000000, 0x00010000 },
/* ...repeating for a total of NUM_VIRTIO_TRANSPORTS, each of that size */
[VIRT_PLATFORM_BUS] = { 0x0c000000, 0x02000000 },
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index 4b7dc61c24..345b2d5594 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -121,6 +121,7 @@ enum {
VIRT_UART,
VIRT_CPUFREQ,
VIRT_MMIO,
+ VIRT_CVM_MSI,
VIRT_RTC,
VIRT_FW_CFG,
VIRT_PCIE,
--
2.41.0.windows.1