shr_pages field is MEM_SHARING-only
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:47:56 +0000 (14:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:47:56 +0000 (14:47 +0200)
commit5ca3be305d2a970db1731f5651374d60abdd322f
tree2d6c6431c00c2e79312f9de17a057bf546412c3a
parent819cdc5a7301222f0f5f9260cfe8cd9c87d81f2f
shr_pages field is MEM_SHARING-only

Conditionalize it and its uses accordingly. The main goal though is to
demonstrate that x86's p2m_teardown() is now empty when !HVM, which in
particular means the last remaining use of p2m_lock() in this cases goes
away.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tamas K Lengyel <tamas@tklengyel.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-basic.c
xen/common/domctl.c
xen/common/keyhandler.c
xen/include/xen/sched.h