x86/p2m: change_entry_type_* hooks are HVM-only
authorJan Beulich <jbeulich@suse.com>
Mon, 3 May 2021 13:27:56 +0000 (15:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 May 2021 13:27:56 +0000 (15:27 +0200)
commit136234f0da018390c98d4353dfe2f2934b623106
tree237e267715829ea7b9ee074bdd129f1fcbce4f78
parent230a2f68159394b69b35c18844d621e8dcf5b28e
x86/p2m: change_entry_type_* hooks are HVM-only

Exclude functions using them from !HVM builds, thus making it possible
to exclude the hooks as well. Also cover the already unused
memory_type_changed hook while inserting the #ifdef in the struct.

While no respective check was there, I can't see how
XEN_DOMCTL_set_broken_page_p2m could have been meant to work for PV the
way it is implemented. Restrict this operation to acting on HVM guests.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/domctl.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/paging.c
xen/include/asm-x86/p2m.h