[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/5] x86: use switch() in _put_page_type()
>>> On 04.12.17 at 16:40, <andrew.cooper3@xxxxxxxxxx> wrote: > On 04/12/17 10:46, Jan Beulich wrote: >> Use this to cheaply add another assertion. >> >> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> >> --- >> TBD: Would it perhaps be better to return after the assertion? > > Yes, otherwise we risk falling into an infinite continue loop. I've used -EILSEQ, but no, there's no infinite loop potential here, as there's a preemption check past the switch() statement (and there was "break" rather than "continue" after the assertion). This and the lack of reasonably suitable error code to return here was why I didn't use "return" in the first version. Or did you mean "infinite continuation loop" (affecting just the guest)? > With a suitable return value, Reviewed-by: Andrew Cooper > <andrew.cooper3@xxxxxxxxxx> Thanks. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |