From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] hvm: handle PoD and grant pages in HVMOP_get_mem_type Date: Mon, 22 Oct 2012 16:59:21 +0200 Message-ID: <20121022145921.GB22644@aepfle.de> References: <918914F5-6729-40C8-8D46-5EABB8FAB35B@gridcentric.ca> <20121022144840.GA22644@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: <20121022144840.GA22644@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andres Lagar-Cavilla Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Oct 22, Olaf Hering wrote: > On Fri, Oct 19, Andres Lagar-Cavilla wrote: > > > + else if ( p2m_is_grant(t) ) > > > + a.mem_type = HVMMEM_ram_rw; > > > > Yes there can be p2m_is_grant pages in an HVM, if it is running a > > backend. Note that you need to discriminate whether the grant is > > mapped writable in order to return ram_rw or ram_ro. > > I will put p2m_grant_map_rw into HVMMEM_ram_rw, and p2m_grant_map_ro > into HVMMEM_ram_ro. Reading through the p2m_is_* defines, p2m_grant_map_ro maps already to HVMMEM_ram_ro. So the patch covers all cases already. Olaf