]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86/shadow: only 4-level guest code needs building when !HVM
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Apr 2021 10:34:04 +0000 (12:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Apr 2021 10:34:04 +0000 (12:34 +0200)
commitaff8bf94ce652bab55d4e0ec8832445bcc1c071f
tree4f02c782a98c44b006ec18c6b8280def712f5e5b
parent42bbda6bcc35b3b402a64b8571a4fe7bd43dde22
x86/shadow: only 4-level guest code needs building when !HVM

In order to limit #ifdef-ary, provide "stub" #define-s for
SH_type_{l1,fl1,l2}_{32,pae}_shadow and SHF_{L1,FL1,L2}_{32,PAE}.

The change in shadow_vcpu_init() is necessary to cover for "x86: correct
is_pv_domain() when !CONFIG_PV" (or any other change along those lines)
- we should only rely on is_hvm_*() to become a build time constant.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/Makefile
xen/arch/x86/mm/shadow/Makefile
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/private.h