mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
device-tree: Move Arm's static-shmem feature to common
This feature is arch agnostic, thus move it to common. Signed-off-by: Michal Orzel <michal.orzel@amd.com> Acked-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
1 parent
3e027c2732
commit
72c5fa2208
12 files changed
+17
-26
No files matched your search
@@ -247,12 +247,6 @@ config ARM64_BTI
|
||||
|
||||
source "arch/arm/tee/Kconfig"
|
||||
|
||||
config STATIC_SHM
|
||||
bool "Statically shared memory on a dom0less system" if UNSUPPORTED
|
||||
depends on STATIC_MEMORY
|
||||
help
|
||||
This option enables statically shared memory on a dom0less system.
|
||||
|
||||
config PARTIAL_EMULATION
|
||||
bool "Enable partial emulation of system/coprocessor registers"
|
||||
default y
|
||||
|
||||
@@ -51,7 +51,6 @@ obj-y += setup.o
|
||||
obj-y += shutdown.o
|
||||
obj-y += smp.o
|
||||
obj-y += smpboot.o
|
||||
obj-$(CONFIG_STATIC_SHM) += static-shmem.init.o
|
||||
obj-y += sysctl.o
|
||||
obj-y += time.o
|
||||
obj-y += traps.o
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
#include <xen/param.h>
|
||||
#include <xen/pfn.h>
|
||||
#include <xen/static-memory.h>
|
||||
#include <xen/static-shmem.h>
|
||||
#include <asm/fixmap.h>
|
||||
#include <asm/setup.h>
|
||||
#include <asm/static-shmem.h>
|
||||
|
||||
static unsigned long opt_xenheap_megabytes __initdata;
|
||||
integer_param("xenheap_megabytes", opt_xenheap_megabytes);
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
#include <xen/mm.h>
|
||||
#include <xen/pfn.h>
|
||||
#include <xen/static-memory.h>
|
||||
#include <xen/static-shmem.h>
|
||||
|
||||
#include <asm/setup.h>
|
||||
#include <asm/static-shmem.h>
|
||||
|
||||
/* Override macros from asm/page.h to make them work with mfn_t */
|
||||
#undef virt_to_mfn
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <xen/serial.h>
|
||||
#include <xen/sizes.h>
|
||||
#include <xen/static-memory.h>
|
||||
#include <xen/static-shmem.h>
|
||||
#include <xen/vmap.h>
|
||||
|
||||
#include <public/bootfdt.h>
|
||||
@@ -23,7 +24,6 @@
|
||||
#include <asm/domain_build.h>
|
||||
#include <asm/grant_table.h>
|
||||
#include <asm/setup.h>
|
||||
#include <asm/static-shmem.h>
|
||||
|
||||
#ifdef CONFIG_VGICV2
|
||||
static int __init make_gicv2_domU_node(struct kernel_info *kinfo)
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <xen/acpi.h>
|
||||
#include <xen/vmap.h>
|
||||
#include <xen/warning.h>
|
||||
#include <xen/static-shmem.h>
|
||||
#include <asm/device.h>
|
||||
#include <asm/setup.h>
|
||||
#include <asm/tee/tee.h>
|
||||
@@ -32,7 +33,6 @@
|
||||
#include <asm/cpufeature.h>
|
||||
#include <asm/dom0less-build.h>
|
||||
#include <asm/domain_build.h>
|
||||
#include <asm/static-shmem.h>
|
||||
#include <xen/event.h>
|
||||
|
||||
#include <xen/irq.h>
|
||||
|
||||
@@ -162,6 +162,12 @@ config STATIC_MEMORY
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config STATIC_SHM
|
||||
bool "Statically shared memory on a dom0less system" if UNSUPPORTED
|
||||
depends on STATIC_MEMORY
|
||||
help
|
||||
This option enables statically shared memory on a dom0less system.
|
||||
|
||||
config STATIC_EVTCHN
|
||||
bool "Static event channel support on a dom0less system"
|
||||
depends on DOM0LESS_BOOT
|
||||
|
||||
@@ -8,3 +8,4 @@ obj-y += intc.o
|
||||
obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += kernel.o
|
||||
obj-$(CONFIG_STATIC_EVTCHN) += static-evtchn.init.o
|
||||
obj-$(CONFIG_STATIC_MEMORY) += static-memory.init.o
|
||||
obj-$(CONFIG_STATIC_SHM) += static-shmem.init.o
|
||||
@@ -13,11 +13,9 @@
|
||||
#include <xen/lib.h>
|
||||
#include <xen/libfdt/libfdt-xen.h>
|
||||
#include <xen/sort.h>
|
||||
#include <xen/static-shmem.h>
|
||||
#include <xsm/xsm.h>
|
||||
#include <asm/setup.h>
|
||||
#ifdef CONFIG_STATIC_SHM
|
||||
#include <asm/static-shmem.h>
|
||||
#endif
|
||||
|
||||
static void __init __maybe_unused build_assertions(void)
|
||||
{
|
||||
|
||||
@@ -29,10 +29,7 @@
|
||||
#include <asm/setup.h>
|
||||
|
||||
#include <xen/static-memory.h>
|
||||
|
||||
#if __has_include(<asm/static-shmem.h>)
|
||||
# include <asm/static-shmem.h>
|
||||
#endif
|
||||
#include <xen/static-shmem.h>
|
||||
|
||||
#define XENSTORE_PFN_LATE_ALLOC UINT64_MAX
|
||||
|
||||
@@ -505,11 +502,9 @@ static int __init prepare_dtb_domU(struct domain *d, struct kernel_info *kinfo)
|
||||
if ( ret )
|
||||
goto err;
|
||||
|
||||
#ifdef CONFIG_STATIC_SHM
|
||||
ret = make_resv_memory_node(kinfo, addrcells, sizecells);
|
||||
if ( ret )
|
||||
goto err;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* domain_handle_dtb_bootmodule has to be called before the rest of
|
||||
@@ -802,11 +797,9 @@ static int __init construct_domU(struct domain *d,
|
||||
else
|
||||
assign_static_memory_11(d, &kinfo, node);
|
||||
|
||||
#ifdef CONFIG_STATIC_SHM
|
||||
rc = process_shm(d, &kinfo, node);
|
||||
if ( rc < 0 )
|
||||
return rc;
|
||||
#endif
|
||||
|
||||
rc = init_vuart(d, &kinfo, node);
|
||||
if ( rc < 0 )
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
#include <xen/rangeset.h>
|
||||
#include <xen/sched.h>
|
||||
#include <xen/static-memory.h>
|
||||
#include <xen/static-shmem.h>
|
||||
|
||||
#include <asm/setup.h>
|
||||
#include <asm/static-shmem.h>
|
||||
|
||||
typedef struct {
|
||||
struct domain *d;
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __ASM_STATIC_SHMEM_H_
|
||||
#define __ASM_STATIC_SHMEM_H_
|
||||
#ifndef XEN_STATIC_SHMEM_H
|
||||
#define XEN_STATIC_SHMEM_H
|
||||
|
||||
#include <xen/fdt-kernel.h>
|
||||
#include <xen/types.h>
|
||||
@@ -82,7 +82,7 @@ static inline void shm_mem_node_fill_reg_range(const struct kernel_info *kinfo,
|
||||
|
||||
#endif /* CONFIG_STATIC_SHM */
|
||||
|
||||
#endif /* __ASM_STATIC_SHMEM_H_ */
|
||||
#endif /* XEN_STATIC_SHMEM_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||