|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] domctl: fix IRQ permission granting/revocation
Hi Jan, On 10/12/2014 08:07, Jan Beulich wrote: With the change to the interface, some part of libxl may misuse xc_domain_irq_permission. For instance in tools/libxl/libxl_create.c: 1178 ret = irq >= 0 ? xc_physdev_map_pirq(CTX->xch, domid, irq, &irq) We get the PIRQ of domain domid in irq. 1179 : -EOVERFLOW; 1180 if (!ret) 1181 ret = xc_domain_irq_permission(CTX->xch, domid, irq, 1)Here, the PIRQ of the current domain should be passed. Fortunately, for this specific case, the PIRQs are the same. But this is confusing. As the pirq may not be the same in domain d, the XSM permission is wrong here. In anycase, it looks weird to use pirq here because the guy who defines the policy may not know the PIRQ value. 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 |