From 7372466b21c3b6c96bb7a52754e432bac883a1e3 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Thu, 9 Apr 2020 21:44:11 +0100 Subject: [PATCH] x86/mem_sharing: Fix build with !CONFIG_XSM MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit A build fails with: mem_sharing.c: In function ‘copy_special_pages’: mem_sharing.c:1649:9: error: ‘HVM_PARAM_STORE_PFN’ undeclared (first use in this function) HVM_PARAM_STORE_PFN, ^~~~~~~~~~~~~~~~~~~ ... This is because xsm/xsm.h includes xsm/dummy.h for the !CONFIG_XSM case, which brings public/hvm/params.h in. Fixes: 41548c5472a "mem_sharing: VM forking" Signed-off-by: Andrew Cooper Acked-by: Tamas K Lengyel --- xen/arch/x86/mm/mem_sharing.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/mm/mem_sharing.c b/xen/arch/x86/mm/mem_sharing.c index 85951b7bea..e572e9e39d 100644 --- a/xen/arch/x86/mm/mem_sharing.c +++ b/xen/arch/x86/mm/mem_sharing.c @@ -41,6 +41,8 @@ #include #include +#include + #include "mm-locks.h" static shr_handle_t next_handle = 1; -- 2.30.2