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

Re: [Xen-devel] [PATCH][VTD] bug fix for EPT/VT-d table sharing


  • To: Olaf Hering <olaf@xxxxxxxxx>, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Mon, 10 Jan 2011 10:32:31 +0000
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>
  • Delivery-date: Mon, 10 Jan 2011 02:38:57 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=xwuW0FZb193/hQ1BC+RIZsHGYh5cGaBb6FjqYRoubKuIiHgTEn/iiIPfof3i0/YTZE K5tKgKWymvwDqe7JGPLHfnZPivOOA/FKm+wFnG9juqYlSLfZLWgFezI/m/T7Jn3D+QyZ L2qmGGZME0i2dMqwyvorfmYYDCdgyNa3yEQzk=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acuwsa97gpLH9I2jOEqZOo4qta3TcA==
  • Thread-topic: [Xen-devel] [PATCH][VTD] bug fix for EPT/VT-d table sharing

On 10/01/2011 09:52, "Olaf Hering" <olaf@xxxxxxxxx> wrote:

> On Fri, Jan 07, Kay, Allen M wrote:
> 
>>> @@ -548,17 +533,12 @@ static int inline iommu_flush_iotlb_psi(
>>>     if ( !cap_pgsel_inv(iommu->cap) )
>>>         return iommu_flush_iotlb_dsi(iommu, did, flush_non_present_entry,
>>> flush_dev_iotlb);
>>> 
>>> -    /*
>>> -     * PSI requires page size is 2 ^ x, and the base address is naturally
>>> -     * aligned to the size
>>> -     */
>>> -    align = get_alignment(addr >> PAGE_SHIFT_4K, pages);
>>>     /* Fallback to domain selective flush if size is too big */
>>> -    if ( align > cap_max_amask_val(iommu->cap) )
>>> +    if ( order > cap_max_amask_val(iommu->cap) )
> 
> This leaves 'align' uninitialized when flush->iotlb() is called.
> 
> iommu.c:546: error: 'align' may be used uninitialized in this function

I fixed this as of c/s 22696.

 -- Keir

> 
> Olaf
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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