|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH V4 5/6] libxl: Allocate MMIO params for I2c device and update DT
On 09.08.22 08:34, Viresh Kumar wrote: Hello Viresh This patch allocates Virtio MMIO params (IRQ and memory region) and pass them to the backend, also update Guest device-tree based on Virtio I2C DT bindings [1]. Nit: Patch does more than it claims in the description, I am speaking about the changes related to make_xen_iommu_node(). So I would add a sentence about that here. [1] https://www.kernel.org/doc/Documentation/devicetree/bindings/i2c/i2c-virtio.yaml Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> --- tools/libs/light/libxl_arm.c | 57 +++++++++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 7 deletions(-) diff --git a/tools/libs/light/libxl_arm.c b/tools/libs/light/libxl_arm.c index 891cb6ef2674..93ea8e3d3fa3 100644 --- a/tools/libs/light/libxl_arm.c +++ b/tools/libs/light/libxl_arm.c @@ -110,6 +110,15 @@ int libxl__arch_domain_prepare_config(libxl__gc *gc, } }+ for (i = 0; i < d_config->num_i2cs; i++) {+ libxl_device_i2c *i2c = &d_config->i2cs[i]; + Nit: This blank line is not needed, I think + int rc = alloc_virtio_mmio_params(gc, &i2c->base, &i2c->irq, + &virtio_mmio_base, &virtio_mmio_irq); Nit: Something wrong with the indentation and looks like the blank line is needed here.
Preferably with above fixed: Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx> -- Regards, Oleksandr Tyshchenko
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |