do_update_va_mapping_otherdomain()
Isn't this hypercall broken, and should thus be removed as it is entirely unused, or alternatively be fixed? do_update_va_mapping() completely deals with current->domain in all respects, and guest_{,un}map_l1e() seem to also depend on dealing with current.
Thanks, Jan
Quoted 4 lines · Jan Beulich
Isn't this hypercall broken, and should thus be removed as it is entirely unused, or alternatively be fixed?
do_update_va_mapping()completely deals withcurrent->domainin all respects, and guest_{,un}map_l1e() seem to also depend on dealing with current.
The hypercall is supposed to operate on the local address space, but map a foreign page. It calls mod_l1_entry() which should refer to the foreign domain when it obtains a reference to the page being mapped.
-- Keir