x86/shadow: adjust is_pv_*() checks
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Apr 2021 10:37:19 +0000 (12:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Apr 2021 10:37:19 +0000 (12:37 +0200)
commitbe167ac0f0268074880b961c936519f756ac045b
tree0bde14c650a8bd0565356a6f0e0ce904e07ab493
parentaff8bf94ce652bab55d4e0ec8832445bcc1c071f
x86/shadow: adjust is_pv_*() checks

To cover for "x86: correct is_pv_domain() when !CONFIG_PV" (or any other
change along those lines) we should prefer is_hvm_*(), as it may become
a build time constant while is_pv_*() generally won't.

Also when a domain pointer is in scope, prefer is_*_domain() over
is_*_vcpu().

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