x86/mem_sharing: Fix build with !CONFIG_XSM
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 9 Apr 2020 20:44:11 +0000 (21:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Apr 2020 14:20:10 +0000 (15:20 +0100)
commit7372466b21c3b6c96bb7a52754e432bac883a1e3
tree64a7e8be71505b7991369faf1ea7f732f900583b
parent13dcb32b6b585d9a29997e81c0a9610cf1a7f64d
x86/mem_sharing: Fix build with !CONFIG_XSM

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 <andrew.cooper3@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_sharing.c