x86/shadow: depend on PV || HVM
authorJan Beulich <jbeulich@suse.com>
Fri, 16 Apr 2021 12:32:46 +0000 (14:32 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 Apr 2021 17:57:01 +0000 (18:57 +0100)
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 <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Kconfig

index db0de0a9ecf109b6ffb1016ffe5a59b2a19f686c..32b9f23a20ecfed201d81b680d1fa0e1019f85dc 100644 (file)
@@ -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