It is called during xen_test targeting domain 0 and in set_id_and_name. The invalid domid would cause xen_init to fail, but I don't think it should even get to xen_init. That's what set_id_and_name is for.