]> xenbits.xensource.com Git - xen.git/commit
x86: fix do_update_va_mapping_otherdomain() wrt translated domains
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Oct 2017 10:43:41 +0000 (12:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Oct 2017 10:43:41 +0000 (12:43 +0200)
commit46aaf41ee099a048d7a554c03ae01bcdaa07f776
treedcdf1244225309fe1e5ac82aee405c47924b6f1d
parent66b7f58e585e39fb19bbf38df02fff5a80eba1ff
x86: fix do_update_va_mapping_otherdomain() wrt translated domains

While I can't seem to find any users of this hypercall (being a likely
explanation of why the problem wasn't noticed so far), just like for
do_mmu_update() paged-out and shared page handling is needed here. Move
all this logic into mod_l1_entry(), which then also results in no
longer
- doing any of this handling for non-present PTEs,
- acquiring two temporary page references when one is already more than
  enough.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/x86/mm.c