x86/P2M: p2m.c is HVM-only
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:50:29 +0000 (14:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:50:29 +0000 (14:50 +0200)
commitc479415610f0448bb07d39185e72ef36e08ebec0
tree3691860339c5bf1ff27671a6869b24ab53c5543f
parent512699aa5196d8e4a03af5969802f7bd2843ab03
x86/P2M: p2m.c is HVM-only

This only requires moving p2m_percpu_rwlock elsewhere (ultimately I
think all P2M locking should go away as well when !HVM, but this looks
to require further code juggling). The two other unguarded functions are
already unneeded (by virtue of DCE) when !HVM.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/Makefile
xen/arch/x86/mm/p2m-basic.c
xen/arch/x86/mm/p2m.c