]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
xen/mm: Exclude flushtlb.h from mm.h for ARM
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 12 Mar 2025 16:37:09 +0000 (16:37 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 12 Mar 2025 18:45:45 +0000 (18:45 +0000)
A number of files pick up flushtlb.h transitively through mm.h, while the
flushtlb.h hierachy themselves aren't even self-sufficient.

Address all of these, and exclude flushtlb.h from mm.h

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Julien Grall <julien@xen.org>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
CC: Bertrand Marquis <bertrand.marquis@arm.com>
CC: Oleksii Kurochko <oleksii.kurochko@gmail.com>
CC: Shawn Anastasio <sanastasio@raptorengineering.com>
xen/arch/arm/include/asm/arm32/flushtlb.h
xen/arch/arm/include/asm/arm64/flushtlb.h
xen/arch/arm/include/asm/fixmap.h
xen/arch/arm/include/asm/pmap.h
xen/arch/arm/mmu/domain_page.c
xen/arch/arm/mmu/pt.c
xen/arch/arm/mmu/setup.c
xen/arch/arm/traps.c
xen/include/xen/mm.h

index 61c25a31899834d8da7d1545956ea6525e4391ff..510eb649a5c690b0d254cafeab7e5cd0378ed58c 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ASM_ARM_ARM32_FLUSHTLB_H__
 #define __ASM_ARM_ARM32_FLUSHTLB_H__
 
+#include <asm/arm32/sysregs.h>
+
 /*
  * Every invalidation operation use the following patterns:
  *
index 45642201d147e2a012d7371448a5dd413d051fe1..b98c8d14a78fcb1493cd1f1fb861e210252e61d3 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ASM_ARM_ARM64_FLUSHTLB_H__
 #define __ASM_ARM_ARM64_FLUSHTLB_H__
 
+#include <asm/alternative.h>
+
 /*
  * Every invalidation operation use the following patterns:
  *
index 0cb5d54d1c7421b733d8166fae4173e774c52b54..68d82d3d4ea2f8079bc78dc5b2bf609dd3d6e094 100644 (file)
@@ -22,6 +22,8 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/lpae.h>
+
 /*
  * Direct access to xen_fixmap[] should only happen when {set,
  * clear}_fixmap() is unusable (e.g. where we would end up to
index bca3381796f3ce5469890f001b29dc0057300d54..1162e8a6e4d2a2d36cada3593c22b2da1bb5a0ef 100644 (file)
@@ -4,6 +4,7 @@
 #include <xen/mm.h>
 
 #include <asm/fixmap.h>
+#include <asm/flushtlb.h>
 
 static inline void arch_pmap_map(unsigned int slot, mfn_t mfn)
 {
index 3a43601623f08d19823f3e00caafda29decf3a01..850214925a3b213ae3a0a0f6443f3e94fa915a35 100644 (file)
@@ -3,6 +3,8 @@
 #include <xen/pmap.h>
 #include <xen/vmap.h>
 
+#include <asm/flushtlb.h>
+
 /* Override macros from asm/page.h to make them work with mfn_t */
 #undef virt_to_mfn
 #define virt_to_mfn(va) _mfn(__virt_to_mfn(va))
index da28d669e7968a411748146819807349eaab618a..16c73da853e62e306404631cc128b5da6fe21238 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <asm/current.h>
 #include <asm/fixmap.h>
+#include <asm/flushtlb.h>
 
 #ifdef NDEBUG
 static inline void
index f6119ccacf1530501a736cec3ca242b43489a0fe..64a06e30e8fb48195848842707bd7eef5c0d0d1f 100644 (file)
@@ -13,6 +13,7 @@
 #include <xen/vmap.h>
 
 #include <asm/fixmap.h>
+#include <asm/flushtlb.h>
 #include <asm/setup.h>
 
 /* Override macros from asm/page.h to make them work with mfn_t */
index 445e7378dd791b165156e84a11d77b3a38b9f147..52f267fb11f89ce46ff7eb5cc02f4f2dc9ac396b 100644 (file)
@@ -34,6 +34,7 @@
 #include <asm/cpuerrata.h>
 #include <asm/cpufeature.h>
 #include <asm/event.h>
+#include <asm/flushtlb.h>
 #include <asm/hsr.h>
 #include <asm/mem_access.h>
 #include <asm/mmio.h>
index 154e649db9e4f9c1fe7cc82732205480a4704bc5..27e420e302d8e64b8d1ffaf3368c0ebe33d7cbb1 100644 (file)
@@ -587,7 +587,7 @@ void destroy_ring_for_helper(void **_va, struct page_info *page);
 /* Return the upper bound of MFNs, including hotplug memory. */
 unsigned long get_upper_mfn_bound(void);
 
-#if defined(CONFIG_X86) || defined(CONFIG_ARM)
+#if defined(CONFIG_X86)
 #include <asm/flushtlb.h>
 #endif