On Fri, Sep 15, 2017 at 07:48:44PM +0100, Ian Jackson wrote: > +static int all_restrict_cb(Xentoolcore__Active_Handle *ah, uint32_t domid) { > + xendevicemodel_handle *dmod = CONTAINER_OF(ah, *dmod, tc_ah); > + > + if (dmod->fd < 0) > + /* just in case */ > + return 0; > + > + return xendevicemodel_restrict(dmod, domid);
I'm not sure if this would meet the idempotent rule we lay out in the header. Calling this function for a second time may produce a different return code. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel