|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V5 7/8] iommu/arm: Introduce iommu_add_dt_device API
On 24.09.19 18:57, Julien Grall wrote: Hi, Hi Julien On 9/24/19 4:30 PM, Oleksandr Tyshchenko wrote:@@ -1263,15 +1264,22 @@ static int __init handle_device(struct domain *d, struct dt_device_node *dev, Yes, I will add a check. The positive result for us is non-negative (either "device is protected" or "device doesn't need to be protected"). [...] Yes, I think, we don't need to check for return value, because the only one positive result "here" is the fact that "device is protected" (which is checked below). What is more, if we add a check for the return value to be strictly 0, we will get an error after guest's reboot (since iommu_add_dt_device() will return -EEXIST). So, I will add a comment explaining why we don't check. What do you think?
Will drop here. -- Regards, Oleksandr Tyshchenko _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |