From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: [PATCH] mem_event: use wait queue when ring is full Date: Thu, 15 Dec 2011 12:43:29 +0000 Message-ID: <20111215124329.GD4274@ocelot.phlegethon.org> References: 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: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, At 20:23 +0100 on 09 Dec (1323462235), Olaf Hering wrote: > mem_event: use wait queue when ring is full > > This change is based on an idea/patch from Adin Scannell. > > If the ring is full, put the current vcpu to sleep if it belongs to the > target domain. The wakeup happens in the p2m_*_resume functions. Wakeup > will take the number of free slots into account. > > A request from foreign domain has to succeed once a slot was claimed > because such vcpus can not sleep. > > This change fixes also a bug in p2m_mem_paging_drop_page(). Up to now a > full ring will lead to harmless inconsistency in the pager. [...] > Signed-off-by: Olaf Hering This patch is OK by me as it stands, so Acked-by: Tim Deegan but I'll wait for an explicit ack from Andres or Adin before applying it. Cheers, Tim.