x86/shadow: make sh_remove_write_access() helper HVM only
authorJan Beulich <jbeulich@suse.com>
Wed, 22 Apr 2020 08:50:05 +0000 (10:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Apr 2020 08:50:05 +0000 (10:50 +0200)
commit43f1a11f9a5727289e0c89fe5ead4594f3582efa
tree09ef693fe1be75e204e6f18778605425742f0015
parent5730ac3c8346f56fe8ee90249cdcbdab2a4d5791
x86/shadow: make sh_remove_write_access() helper HVM only

Despite the inline attribute at least some clang versions warn about
trace_shadow_wrmap_bf() being unused in !HVM builds. Include the helper
in the #ifdef region.

Fixes: 8b8d011ad868 ("x86/shadow: the guess_wrmap() hook is needed for HVM only")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c