x86/shadow: exclude HVM-only code from sh_remove_shadows() when !HVM
authorJan Beulich <jbeulich@suse.com>
Fri, 29 Jul 2022 06:49:06 +0000 (08:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 Jul 2022 06:49:06 +0000 (08:49 +0200)
commit8a3b89e4307da260675483bb86fc06cc62ed7c08
tree8d49e2d7cb8bbc7a13a8ded29fe9ccdc9aedfc21
parent3629759626ac7201a670a8a2d4d4a536e7443575
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>
xen/arch/x86/mm/shadow/common.c