|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 5/6] x86: enable multi-vector MSI
On 4/23/2013 1:26 AM, Jan Beulich wrote: Ok, thanks for explanation. Do you think you could add comment in the code?kkk It was not quite clear at the beginning why we need this assertion.On 23.04.13 at 02:55, Suravee Suthikulanit <suravee.suthikulpanit@xxxxxxx>wrote:On 4/19/2013 5:59 AM, Jan Beulich wrote: The problem occurs when the function "xen/driver/passthrough/amd/iommu_init.c: enable_iommu()" trying to initialize IOMMU and calling the "set_msi_affinity", which in turn calling "write_msi_msg". At this point, "nvec" is still zero. So, the following code should fix it.
unsigned int nvec = entry[-nr].msi.nvec;
if ( nvec > 0 )
ASSERT((msg->data & (nvec - 1)) == nr);
Suravee
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |