WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Unmap shadow vtable when freeing shadow table in free_sh

To: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Subject: Re: [Xen-devel] Unmap shadow vtable when freeing shadow table in free_shadow_pages().
From: James Morris <jmorris@xxxxxxxxxx>
Date: Wed, 12 Apr 2006 15:42:31 -0400 (EDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 12 Apr 2006 12:42:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <59D45D057E9702469E5775CBB56411F1024770E8@pdsmsx406>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 12 Apr 2006, Li, Xin B wrote:

> Unmap shadow vtable when freeing shadow table in free_shadow_pages().
> 
> Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>
> 

> +             if ( v->arch.shadow_vtable )
> +                    unmap_domain_page_global(v->arch.shadow_vtable);
> +                v->arch.shadow_vtable = NULL;

Why not:

                if ( v->arch.shadow_vtable ) 
                {
                        unmap_domain_page_global(v->arch.shadow_vtable);
                        v->arch.shadow_vtable = NULL;
                }


-- 
James Morris
<jmorris@xxxxxxxxxx>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>