From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: Restart domU failure (memory allocation issue) Date: Fri, 14 Mar 2014 14:17:58 +0000 Message-ID: <53230F96.9070400@linaro.org> References: <53220B9A.50508@linaro.org> <5322F2D5.9020906@linaro.org> <53230B74.6090105@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrii Anisov Cc: Oleksandr Tyshchenko , Stefano Stabellini , Tim Deegan , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 03/14/2014 02:05 PM, Andrii Anisov wrote: > This is done in kernel space. When you map the pages, privcmd will set > specific callbacks that will be use when munmap will be called (see > privcmd_close in drivers/xen/privcmd.c). > The privcmd_close function will call the hypercall to remove the foreign > page from the p2m. > > > We will check if it works on our site (but it looks it does not). I think I've found why ... the privcmd_close is buggy on 3.8. You might need to backport this commit: commit 9eff37a8713939f218ab8bf0dc93f1d67af7b8b4 Author: Dan Carpenter Date: Mon Nov 5 09:42:17 2012 +0300 xen/privcmd: fix condition in privcmd_close() The parenthesis are in the wrong place so the original code is equivalent to: if (!xen_feature(XENFEAT_writable_descriptor_tables)) { ... Which obviously was not intended. Signed-off-by: Dan Carpenter Signed-off-by: Konrad Rzeszutek Wilk Regards, -- Julien Grall