xen/x86: mem_sharing: Use copy_domain_page in __mem_sharing_unshare_page
authorJulien Grall <julien.grall@linaro.org>
Thu, 5 Oct 2017 17:42:16 +0000 (18:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Oct 2017 12:36:43 +0000 (13:36 +0100)
commite6cccc721c58c5e260331050b68bdbd1b36c226d
tree41239f3fdc4fba26c954f8383e1f9eee7c6f7bb2
parent23044a4e00c1a6bfb70a19a8ed263d47ea5412fc
xen/x86: mem_sharing: Use copy_domain_page in __mem_sharing_unshare_page

The function __mem_sharing_unshare_page contains an open-code version of
copy_domain_page. Use the function to simplify a bit the code.

At the same time replace _mfn(__page_to_mfn(...)) by page_to_mfn(...)
given that the file given already provides a typesafe version of page_to_mfn.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_sharing.c