From 5d1646d90e1f2cceb9f0828f4b28318cd0ec7744 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 12:05:51 +0200 Subject: Adding upstream version 5.10.209. Signed-off-by: Daniel Baumann --- arch/arm/include/asm/xen/events.h | 30 ++++++++++++++++++++++++++++++ arch/arm/include/asm/xen/hypercall.h | 1 + arch/arm/include/asm/xen/hypervisor.h | 1 + arch/arm/include/asm/xen/interface.h | 1 + arch/arm/include/asm/xen/page-coherent.h | 2 ++ arch/arm/include/asm/xen/page.h | 6 ++++++ 6 files changed, 41 insertions(+) create mode 100644 arch/arm/include/asm/xen/events.h create mode 100644 arch/arm/include/asm/xen/hypercall.h create mode 100644 arch/arm/include/asm/xen/hypervisor.h create mode 100644 arch/arm/include/asm/xen/interface.h create mode 100644 arch/arm/include/asm/xen/page-coherent.h create mode 100644 arch/arm/include/asm/xen/page.h (limited to 'arch/arm/include/asm/xen') diff --git a/arch/arm/include/asm/xen/events.h b/arch/arm/include/asm/xen/events.h new file mode 100644 index 000000000..c83086f74 --- /dev/null +++ b/arch/arm/include/asm/xen/events.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_ARM_XEN_EVENTS_H +#define _ASM_ARM_XEN_EVENTS_H + +#include +#include + +enum ipi_vector { + XEN_PLACEHOLDER_VECTOR, + + /* Xen IPIs go here */ + XEN_NR_IPIS, +}; + +static inline int xen_irqs_disabled(struct pt_regs *regs) +{ + return raw_irqs_disabled_flags(regs->ARM_cpsr); +} + +#define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((long long*)(ptr),\ + atomic64_t, \ + counter), (val)) + +/* Rebind event channel is supported by default */ +static inline bool xen_support_evtchn_rebind(void) +{ + return true; +} + +#endif /* _ASM_ARM_XEN_EVENTS_H */ diff --git a/arch/arm/include/asm/xen/hypercall.h b/arch/arm/include/asm/xen/hypercall.h new file mode 100644 index 000000000..3522cbaed --- /dev/null +++ b/arch/arm/include/asm/xen/hypercall.h @@ -0,0 +1 @@ +#include diff --git a/arch/arm/include/asm/xen/hypervisor.h b/arch/arm/include/asm/xen/hypervisor.h new file mode 100644 index 000000000..d6e7709d0 --- /dev/null +++ b/arch/arm/include/asm/xen/hypervisor.h @@ -0,0 +1 @@ +#include diff --git a/arch/arm/include/asm/xen/interface.h b/arch/arm/include/asm/xen/interface.h new file mode 100644 index 000000000..88c0d75da --- /dev/null +++ b/arch/arm/include/asm/xen/interface.h @@ -0,0 +1 @@ +#include diff --git a/arch/arm/include/asm/xen/page-coherent.h b/arch/arm/include/asm/xen/page-coherent.h new file mode 100644 index 000000000..27e984977 --- /dev/null +++ b/arch/arm/include/asm/xen/page-coherent.h @@ -0,0 +1,2 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#include diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h new file mode 100644 index 000000000..dc7f6e91a --- /dev/null +++ b/arch/arm/include/asm/xen/page.h @@ -0,0 +1,6 @@ +#include + +static inline bool xen_kernel_unmapped_at_usr(void) +{ + return false; +} -- cgit v1.2.3