[CRIU] [PATCH 2/2] compel: Add compel_run_at helper
Cyrill Gorcunov
gorcunov at gmail.com
Mon Dec 5 14:15:33 PST 2016
On Tue, Dec 06, 2016 at 12:57:09AM +0300, Pavel Emelyanov wrote:
> >
> > +int compel_run_at(struct parasite_ctl *ctl, unsigned long ip, user_regs_struct_t *ret_regs)
>
> What's the use in ret_regs argument for a caller?
The blob doesn't have to return error via traditional "a" register,
thus if needed one can pass @regs structure here and upon a trap
get the whole set and examinate regs. In particular if function
called inside may have more than one result returning, thus some
of results might come in "a" register, another in "D" and etc.
More information about the CRIU
mailing list