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

Re: [Xen-devel] [PATCH v3 20/24] xen/passthrough: Extend XEN_DOMCTL_assign_device to support DT device



>>> On 20.01.15 at 15:37, <julien.grall@xxxxxxxxxx> wrote:
> On 20/01/15 09:34, Jan Beulich wrote:
>>>>> On 13.01.15 at 15:25, <julien.grall@xxxxxxxxxx> wrote:
>>> --- a/xen/drivers/passthrough/iommu.c
>>> +++ b/xen/drivers/passthrough/iommu.c
>>> @@ -337,6 +337,13 @@ int iommu_do_domctl(
>>>      ret = iommu_do_pci_domctl(domctl, d, u_domctl);
>>>  #endif
>>>  
>>> +    if ( ret != -ENOSYS )
>>> +        return ret;
>>> +
>>> +#ifdef HAS_DEVICE_TREE
>>> +    ret = iommu_do_dt_domctl(domctl, d, u_domctl);
>>> +#endif
>> 
>> Please move the (inverted) if() into the #ifdef block (but also see
>> below regarding the specific error code used).
> 
> What do you mean by the "inverted if()"?

#ifdef HAS_DEVICE_TREE
    if ( ret == -ENOSYS )
        ret = iommu_do_dt_domctl(domctl, d, u_domctl);
#endif

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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