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

Re: [PATCH v1 11/27] xen/riscv: create APLIC DT node for guest domains





On 4/13/26 10:43 AM, Oleksii Kurochko wrote:
+        return res;
+
+    data = dt_get_property(aplic_node, "#interrupt-cells", &len);
+    if ( !data )
+    {
+        printk("%s: Can't find '#interrupt-cells' property\n",
+               aplic_node->full_name);
+        return -FDT_ERR_XEN(ENOENT);
+    }

Again, pull this up to be first in the function?

Agree, it makes sense to move it up.

But on other hand, there are several time used the same construction dt_get_propety() from host aplic node then write this property to guest aplic node, then maybe we want to keep this dt_get_property(aplic_node, "#interrupt-cells", &len); where it is now to have the same visually construction way of guest device tree properties.

~ Oleksii



 


Rackspace

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