[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 08/17] xen/arm: ITS: Add APIs to add and assign device
On 18/07/2015 10:44, Vijay Kilari wrote: Hi Julien On Wed, Jul 15, 2015 at 7:45 PM, Julien Grall <julien.grall@xxxxxxxxxx> wrote:Hi Vijay, On 10/07/2015 09:42, vijay.kilari@xxxxxxxxx wrote:[...]+int its_assign_device(struct domain *d, u32 vdevid, u32 pdevid)[...]+ for ( i = 0; i < pdev->nr_lpis; i++ ) + { + plpi = its_get_plpi(pdev, i); + route_irq_to_guest(d, i, plpi, "LPI"); + desc = irq_to_desc(plpi); + spin_lock(&desc->lock); + set_irq_device(desc, pdev);This should be part of its_add_device and not its_assign_device.The domain to which irq should be routed is known only in assign_device. So route_irq_to_guest is called from assign_device. I know ... I was speaking about set_irq_device. I can move set_irq_device to add_device Yes please, this would be the right place. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |