From: Jan Beulich Date: Fri, 16 Apr 2021 12:32:46 +0000 (+0200) Subject: x86/shadow: depend on PV || HVM X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~612 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bea65a212c0581520203b6ad0d07615693f42f73;p=xen.git x86/shadow: depend on PV || HVM With the building of guest_?.o now depending on PV or HVM, without further #ifdef-ary shadow code won't link anymore when !PV && !HVM. Since this isn't a useful configuration anyway, exclude shadow code from being built in this case. Fixes: aff8bf94ce65 ("x86/shadow: only 4-level guest code needs building when !HVM") Reported-by: Andrew Cooper Signed-off-by: Jan Beulich --- diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index db0de0a9ec..32b9f23a20 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -122,6 +122,7 @@ config XEN_SHSTK config SHADOW_PAGING bool "Shadow Paging" default !PV_SHIM_EXCLUSIVE + depends on PV || HVM ---help--- Shadow paging is a software alternative to hardware paging support