ia64/xen-unstable

changeset 12813:963a02c040f6

[XEN] remove unused monitor_vtable mapping.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Wed Dec 06 12:13:22 2006 +0000 (2006-12-06)
parents 26a3c7c10782
children 59d3be0dd1d4
files xen/arch/x86/mm/shadow/common.c xen/include/asm-x86/domain.h
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/common.c	Wed Dec 06 11:25:51 2006 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/common.c	Wed Dec 06 12:13:22 2006 +0000
     1.3 @@ -2433,11 +2433,10 @@ void sh_update_paging_modes(struct vcpu 
     1.4                  }
     1.5          }
     1.6  
     1.7 -        if ( pagetable_get_pfn(v->arch.monitor_table) == 0 )
     1.8 +        if ( pagetable_is_null(v->arch.monitor_table) )
     1.9          {
    1.10              mfn_t mmfn = shadow_make_monitor_table(v);
    1.11              v->arch.monitor_table = pagetable_from_mfn(mmfn);
    1.12 -            v->arch.monitor_vtable = sh_map_domain_page(mmfn);
    1.13          } 
    1.14  
    1.15          if ( v->arch.shadow.mode != old_mode )
    1.16 @@ -2467,12 +2466,10 @@ void sh_update_paging_modes(struct vcpu 
    1.17                      return;
    1.18                  }
    1.19  
    1.20 -                sh_unmap_domain_page(v->arch.monitor_vtable);
    1.21                  old_mfn = pagetable_get_mfn(v->arch.monitor_table);
    1.22                  v->arch.monitor_table = pagetable_null();
    1.23                  new_mfn = v->arch.shadow.mode->make_monitor_table(v);            
    1.24                  v->arch.monitor_table = pagetable_from_mfn(new_mfn);
    1.25 -                v->arch.monitor_vtable = sh_map_domain_page(new_mfn);
    1.26                  SHADOW_PRINTK("new monitor table %"SH_PRI_mfn "\n",
    1.27                                 mfn_x(new_mfn));
    1.28  
    1.29 @@ -3272,7 +3269,8 @@ void shadow_audit_p2m(struct domain *d)
    1.30  
    1.31      //SHADOW_PRINTK("p2m audit starts\n");
    1.32  
    1.33 -    test_linear = ( (d == current->domain) && current->arch.monitor_vtable );
    1.34 +    test_linear = ( (d == current->domain) 
    1.35 +                    && !pagetable_is_null(current->arch.monitor_table) );
    1.36      if ( test_linear )
    1.37          local_flush_tlb(); 
    1.38  
     2.1 --- a/xen/include/asm-x86/domain.h	Wed Dec 06 11:25:51 2006 +0000
     2.2 +++ b/xen/include/asm-x86/domain.h	Wed Dec 06 12:13:22 2006 +0000
     2.3 @@ -196,7 +196,6 @@ struct arch_vcpu
     2.4      unsigned long cr3;           	    /* (MA) value to install in HW CR3 */
     2.5  
     2.6      void *guest_vtable;                 /* virtual addr of pagetable */
     2.7 -    root_pgentry_t *monitor_vtable;		/* virtual addr of monitor_table */
     2.8  
     2.9      /* Current LDT details. */
    2.10      unsigned long shadow_ldt_mapcnt;