@@ -10,6 +10,7 @@
#include <asm/alternative.h>
#include <asm/apic.h>
#include <asm/endbr.h>
+#include <asm/flushtlb.h>
#include <asm/nmi.h>
#include <asm/nops.h>
#include <asm/processor.h>
@@ -17,9 +17,9 @@
#include <xen/bsearch.h>
#include <xen/err.h>
#include <xen/init.h>
-#include <xen/mm.h> /* TODO: Fix asm/tlbflush.h breakage */
#include <xen/sha2.h>
+#include <asm/flushtlb.h>
#include <asm/msr.h>
#include "private.h"
@@ -16,6 +16,7 @@
#include <asm/endbr.h>
#include <asm/fixmap.h>
+#include <asm/flushtlb.h>
#include <asm/nmi.h>
#include <asm/setup.h>
@@ -587,10 +587,6 @@ 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)
-#include <asm/flushtlb.h>
-#endif
-
enum XENSHARE_flags {
SHARE_rw,
SHARE_ro,
alternative.c and livepatch.c pick up flushtlb.h transitively through mm.h. Fix these, and finally resolve the TODO in microcode/amd.c 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/x86/alternative.c | 1 + xen/arch/x86/cpu/microcode/amd.c | 2 +- xen/arch/x86/livepatch.c | 1 + xen/include/xen/mm.h | 4 ---- 4 files changed, 3 insertions(+), 5 deletions(-)