mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/shadow: exclude HVM-only code from sh_remove_shadows() when !HVM
In my (debug) build this amounts to well over 500 bytes of dead code. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
3629759626
commit
8a3b89e430
1 file changed
+2
@@ -2240,10 +2240,12 @@ void sh_remove_shadows(struct domain *d, mfn_t gmfn, int fast, int all)
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef CONFIG_HVM
|
||||
DO_UNSHADOW(SH_type_l2_32_shadow);
|
||||
DO_UNSHADOW(SH_type_l1_32_shadow);
|
||||
DO_UNSHADOW(SH_type_l2_pae_shadow);
|
||||
DO_UNSHADOW(SH_type_l1_pae_shadow);
|
||||
#endif
|
||||
DO_UNSHADOW(SH_type_l4_64_shadow);
|
||||
DO_UNSHADOW(SH_type_l3_64_shadow);
|
||||
DO_UNSHADOW(SH_type_l2h_64_shadow);
|
||||
|
||||