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-changelog

[Xen-changelog] Unmap shadow vtable when freeing shadow table in free_sh

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Unmap shadow vtable when freeing shadow table in free_shadow_pages().
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Apr 2006 12:08:07 +0000
Delivery-date: Thu, 13 Apr 2006 05:08:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID a9ae49b52c28dd961984ab8f3250572f37b4d4f2
# Parent  268f2b85f3137be92248f1e1fd0778fe5990a648
Unmap shadow vtable when freeing shadow table in free_shadow_pages().

Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>

diff -r 268f2b85f313 -r a9ae49b52c28 xen/arch/x86/shadow32.c
--- a/xen/arch/x86/shadow32.c   Thu Apr 13 09:10:19 2006
+++ b/xen/arch/x86/shadow32.c   Thu Apr 13 09:12:16 2006
@@ -583,6 +583,13 @@
         {
             put_shadow_ref(pagetable_get_pfn(v->arch.shadow_table));
             v->arch.shadow_table = mk_pagetable(0);
+
+            if ( shadow_mode_external(d) )
+            {
+                if ( v->arch.shadow_vtable )
+                    unmap_domain_page_global(v->arch.shadow_vtable);
+                v->arch.shadow_vtable = NULL;
+            }
         }
 
         if ( v->arch.monitor_shadow_ref )
diff -r 268f2b85f313 -r a9ae49b52c28 xen/arch/x86/shadow_public.c
--- a/xen/arch/x86/shadow_public.c      Thu Apr 13 09:10:19 2006
+++ b/xen/arch/x86/shadow_public.c      Thu Apr 13 09:12:16 2006
@@ -898,6 +898,13 @@
         {
             put_shadow_ref(pagetable_get_pfn(v->arch.shadow_table));
             v->arch.shadow_table = mk_pagetable(0);
+
+            if ( shadow_mode_external(d) )
+            {
+                if ( v->arch.shadow_vtable )
+                    unmap_domain_page_global(v->arch.shadow_vtable);
+                v->arch.shadow_vtable = NULL;
+            }
         }
 
         if ( v->arch.monitor_shadow_ref )

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Unmap shadow vtable when freeing shadow table in free_shadow_pages()., Xen patchbot -unstable <=