x86/shadow: the guess_wrmap() hook is needed for HVM only
authorJan Beulich <jbeulich@suse.com>
Tue, 21 Apr 2020 08:58:45 +0000 (10:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Apr 2020 08:58:45 +0000 (10:58 +0200)
commit8b8d011ad868df38afae6282103087556beaa1f9
tree06dc69c3cb3790726fb625ff45eddcd67406498e
parentdf9238eaa4ad870bab835de5be3242f8f2a632ce
x86/shadow: the guess_wrmap() hook is needed for HVM only

sh_remove_write_access() bails early for !external guests, and hence its
building and thus the need for the hook can be suppressed altogether in
!HVM configs.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-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/private.h
xen/include/asm-x86/paging.h