Skip to contentSkip to conversation

do_update_va_mapping_otherdomain()

DISCUSSION Jan Beulich 2 participants 2 messages Mar 14, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 with current->domain in 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