x86/p2m: pass the p2m to write_p2m_entry handlers
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 27 Feb 2019 11:09:01 +0000 (12:09 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 28 Feb 2019 17:35:20 +0000 (17:35 +0000)
commit9b94b18064ccedc90c04d1e0ea13b7ca88081e67
treeb5aa651cfad28d984a14e8e9045d85b9f654c608
parent0452d02b6e7849537914dd30cbfc8eb27cdad2ce
x86/p2m: pass the p2m to write_p2m_entry handlers

Current callers pass the p2m to paging_write_p2m_entry, but the
implementation specific handlers of the write_p2m_entry hook instead
of a p2m get a domain struct due to the handling done in
paging_write_p2m_entry.

Change the code so that the implementations of write_p2m_entry take a
p2m instead of a domain.

This is a non-functional change, but will be used by follow up
patches.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/paging.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/none.c
xen/arch/x86/mm/shadow/private.h
xen/include/asm-x86/paging.h