From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH 6 of 8] x86/mm: Properly account for paged out pages Date: Thu, 26 Jan 2012 13:11:06 +0100 Message-ID: <20120126121105.GB545@aepfle.de> References: <20120126095401.GC21629@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andres Lagar-Cavilla Cc: andres@gridcentric.ca, xen-devel@lists.xensource.com, tim@xen.org, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org On Thu, Jan 26, Andres Lagar-Cavilla wrote: > there is a put_page in case things go wrong, after the alloc_domheap_page > call. So doing the decrement at alloc is a bit too soon. Thats probably true. But in the case of failure the guest will likely hang soon. Is the copy_from_user() (and p2m_mem_paging_prep itself) restartable? If not, the guest should probably be crashed. The way xenpaging_populate_page() is written right now, it will just exit, EFAULT isnt caught. Olaf