From: Tristan Gingold Subject: Re: RFC: xencomm in common Date: Thu, 24 Aug 2006 09:40:43 +0200 Message-ID: <200608240940.43574.Tristan.Gingold@bull.net> References: <200608231015.41202.Tristan.Gingold@bull.net> <20060824014411.GB12861%yamahata@valinux.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20060824014411.GB12861%yamahata@valinux.co.jp> 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: Isaku Yamahata Cc: xen-ppc-devel@lists.xensource.com, xen-devel , xen-ia64-devel List-Id: xen-devel@lists.xenproject.org Le Jeudi 24 Ao=FBt 2006 03:44, Isaku Yamahata a =E9crit : > Hi Tristan. > Since I looked the patch very roughly, I might be wrong and parania thoug= h. > > xencomm_copy_from_guest(), xencomm_copy_to_guest() converts > address, then acessses a page. > The Xen/IA64 P2M table is lockless so that the page can be freed > by another cpu and used for other purpose at the same time. > (Actually such a guest behaviour doesn't make sense, but possible.) > get_page()/put_page() are necessary to prevent such a situation. > Actually Xen/IA64's vcpu_get_domain_bundle() and > efi_translate_domain_addr() do it. Ok, I have to add get_page/put_page. Thank you for the comment. Tristan.