From: Keir Fraser Subject: Re: [PATCH 0/4] fix preemption handling for XENMEM_add_to_physmap_range{, _range} Date: Wed, 18 Dec 2013 17:15:59 +0000 Message-ID: References: <52B1BF76020000780010EC02@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VtKjP-0004ff-7B for xen-devel@lists.xenproject.org; Wed, 18 Dec 2013 17:16:23 +0000 Received: by mail-wi0-f174.google.com with SMTP id z2so5618914wiv.7 for ; Wed, 18 Dec 2013 09:16:21 -0800 (PST) In-Reply-To: <52B1BF76020000780010EC02@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , xen-devel Cc: Tim Deegan , Keir Fraser , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 18/12/2013 14:29, "Jan Beulich" wrote: > The hypervisor isn't supposed to use the input structures for > storing continuation information - only fields explicitly used as > hypercall outputs should ever be updated. > > Obviously this implies an ABI change, but since the previous > behavior was not intended to be that way I don't think we should > stick to the old behavior. > > There's one caveat though - with the previous model, the caller > could - upon failure - use the updated structure to find out how > by progress was made. However, that wasn't intended afaict, > largely supported by this information depending on hypervisor > internals (i.e. the caller would have to know the order of request > processing and the meaning of the respective size fields, which > aren't simply saying "this much was processed"). > > Consequently, as a follow-up we may want to consider making > explicit (and straight forward) this progress indication on error. > > 1: move XENMEM_add_to_physmap handling framework to common code > 2: fix XENMEM_add_to_physmap preemption handling > 3: move XENMEM_add_to_physmap_range handling framework to common code > 4: fix XENMEM_add_to_physmap_range preemption handling > > Signed-off-by: Jan Beulich Nice to have this fixed! Acked-by: Keir Fraser