|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 25/26] xen/riscv: add initial dom0less infrastructure support
On 6/15/26 5:36 PM, Jan Beulich wrote: On 08.05.2026 16:43, Oleksii Kurochko wrote:
Sounds good to me. I will do the following then in the separate patch:
diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index 683ab7d25a1e..d748404e82da 100644
--- a/xen/arch/arm/Kconfig
+++ b/xen/arch/arm/Kconfig
@@ -22,6 +22,7 @@ config ARM
select HAS_GRANT_CACHE_FLUSH if GRANT_TABLE
select HAS_SHARED_INFO
select HAS_STACK_PROTECTOR
+ select HAS_STATIC_MEMORY
select HAS_UBSAN
config ARCH_DEFCONFIG
diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 8b48d84c79e8..6e24f7f4e43b 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -161,6 +161,9 @@ config HAS_SCHED_GRANULARITY
config HAS_SHARED_INFO
bool
+config HAS_STATIC_MEMORY
+ bool
+
config HAS_SOFT_RESET
bool
@@ -196,7 +199,7 @@ config NUMA
config STATIC_MEMORY
bool "Static Allocation Support (UNSUPPORTED)" if UNSUPPORTED
- depends on DOM0LESS_BOOT && HAS_DEVICE_TREE_DISCOVERY
+ depends on HAS_STATIC_MEMORY && DOM0LESS_BOOT &&
HAS_DEVICE_TREE_DISCOVERY
help
Static Allocation refers to system or sub-system(domains) for
which memory areas are pre-defined by configuration using
physical
--- a/xen/arch/riscv/dom0less-build.c +++ b/xen/arch/riscv/dom0less-build.c @@ -102,3 +102,9 @@ int __init arch_parse_dom0less_node(struct dt_device_node *node,return 0; At the moment (even in downstream), RISC-V has nothing to do. I can just add the comment above return: /* Nothing specific to do for now */
Yes, it is dictated by DT code.
I didn't know that it is only for public headers. I can change that to _ULL. Also these are again two seemingly arbitrary numbers. It is pretty arbitrary, I just took what isn't used by QEMU machine for its address space. I double checked and it should be changed to something else as it falls into PCIE_ECAM range:
[VIRT_PCIE_ECAM] = { 0x30000000, 0x10000000 },
[VIRT_PCIE_MMIO] = { 0x40000000, 0x40000000 },
[VIRT_DRAM] = { 0x80000000, 0x0 },
I will use 0x79000000 instead.
I will update the commit message that it GUEST_MAGIC_BASE and
GUEST_MAGIC_SIZE are chosen arbitary and not to overlap with address
space provided by QEMU for RISC-V machine.
Thanks. ~ Oleksii
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |