From: "Jan Beulich" Subject: Re: is_xen_swiotlb_buffer() vs CONFIG_HIGHMEM Date: Wed, 16 Dec 2009 07:40:48 +0000 Message-ID: <4B289D1002000078000262ED@vpn.id2.novell.com> References: <4B2661970200007800025B69@vpn.id2.novell.com> <4B27D699.5080901@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4B27D699.5080901@goop.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org >>> Jeremy Fitzhardinge 15.12.09 19:34 >>> >On 12/14/2009 07:02 AM, Jan Beulich wrote: >> shouldn't is_xen_swiotlb_buffer() also check against e.g. highstart_pfn >> to deal with wrap-around potentially leading to aliasing of >> [xen_io_tlb_start,xen_io_tlb_end)? >> =20 > >So what you're saying is that if the pfn is for a high page, then=20 >"__va(pfn << PAGE_SHIFT);" is simply invalid. The resulting addr is=20 >undefined, and may end up erroneously aliasing with the xen tlb buffer. > >Do I understand your concern properly? Yes. Jan