x86/mm: move ro page fault emulation code
authorWei Liu <wei.liu2@citrix.com>
Wed, 13 Sep 2017 15:52:20 +0000 (16:52 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 22 Sep 2017 15:31:50 +0000 (16:31 +0100)
commit7fde99cb73ff81492a5af4334224fa61ed939ce7
tree6e96b1e56bcc47e003b377fbe49ef3178e4a7346
parentf04bc26dd534cc7309429ec3f9346a4087d93b49
x86/mm: move ro page fault emulation code

Move the code to pv/ro-page-fault.c.  Create a new header file
asm-x86/pv/mm.h and move the declaration of pv_ro_page_fault there.
Include the new header file in traps.c.

Fix some coding style issues. The prefixes (ptwr and mmio) are
retained because there are two sets of emulation code in the same file.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c
xen/arch/x86/pv/Makefile
xen/arch/x86/pv/ro-page-fault.c [new file with mode: 0644]
xen/arch/x86/traps.c
xen/include/asm-x86/mm.h
xen/include/asm-x86/pv/mm.h [new file with mode: 0644]