From: Ian Campbell Subject: Re: [PATCH v9 04/14] arch/arm: unmap partially-mapped I/O-memory regions Date: Thu, 3 Jul 2014 16:15:12 +0100 Message-ID: <1404400512.10477.0.camel@kazak.uk.xensource.com> References: <1404326543-16875-1-git-send-email-avanzini.arianna@gmail.com> <1404326543-16875-5-git-send-email-avanzini.arianna@gmail.com> <1404398450.8683.9.camel@kazak.uk.xensource.com> <53B5700E.9050202@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53B5700E.9050202@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-07-03 at 16:00 +0100, Julien Grall wrote: > On 07/03/2014 03:40 PM, Ian Campbell wrote: > > On Wed, 2014-07-02 at 20:42 +0200, Arianna Avanzini wrote: > >> This commit changes the function apply_p2m_changes() to unwind changes > >> performed while mapping an I/O-memory region, if errors are seen during > >> the operation. This is useful to avoid that I/O-memory areas are > >> partially accessible to guests. > > > > I think it won't quite unwind, since it will actually destroy whatever > > was there before we tried to put something new. > > > > Is there anything here which is specific to I/O memory areas? It seems > > to affect all mapping types. > > I think it's fine to unmap for mapping types. Agreed, but the commit message doesn't reflect that.