[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Unmap shadow vtable when freeing shadow table in free_shadow_pages().



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.