[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 07/22] xentoolcore_restrict_all: Implement for libxendevicemodel



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@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.