x86/mem_access: use __get_gfn_type_access in set_mem_access
authorTamas K Lengyel <tamas.lengyel@intel.com>
Wed, 29 Jan 2020 14:06:50 +0000 (15:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 29 Jan 2020 14:06:50 +0000 (15:06 +0100)
commit9b71d6a759a6835c7723afa3d79e1e7f10da4396
treecb0d4becc60e51655138ec7ba4b83f6420f07b57
parent5e08f5f56c9955d853c26c985b6fb1fb45d0355d
x86/mem_access: use __get_gfn_type_access in set_mem_access

Use __get_gfn_type_access instead of p2m->get_entry to trigger page-forking
when the mem_access permission is being set on a page that has not yet been
copied over from the parent.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/mem_access.c