ia64/xen-unstable

changeset 8990:407a50974a46

Cset 8950 adds shadow info dump in common code, however
IA64 has no shadow mode. Move it into arch specific stub instead.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Feb 24 08:27:05 2006 +0100 (2006-02-24)
parents c646586d1065
children 5e73c92e5f1f
files xen/arch/ia64/xen/xenmisc.c xen/arch/x86/domain.c xen/common/keyhandler.c xen/include/xen/domain.h
line diff
     1.1 --- a/xen/arch/ia64/xen/xenmisc.c	Thu Feb 23 18:40:08 2006 +0100
     1.2 +++ b/xen/arch/ia64/xen/xenmisc.c	Fri Feb 24 08:27:05 2006 +0100
     1.3 @@ -336,6 +336,10 @@ void continue_running(struct vcpu *same)
     1.4  	/* nothing to do */
     1.5  }
     1.6  
     1.7 +void arch_dump_domain_info(struct domain *d)
     1.8 +{
     1.9 +}
    1.10 +
    1.11  void panic_domain(struct pt_regs *regs, const char *fmt, ...)
    1.12  {
    1.13  	va_list args;
     2.1 --- a/xen/arch/x86/domain.c	Thu Feb 23 18:40:08 2006 +0100
     2.2 +++ b/xen/arch/x86/domain.c	Fri Feb 24 08:27:05 2006 +0100
     2.3 @@ -986,6 +986,26 @@ void domain_relinquish_resources(struct 
     2.4      relinquish_memory(d, &d->page_list);
     2.5  }
     2.6  
     2.7 +void arch_dump_domain_info(struct domain *d)
     2.8 +{
     2.9 +    if ( shadow_mode_enabled(d) )
    2.10 +    {
    2.11 +        printk("    shadow mode: ");
    2.12 +        if ( shadow_mode_refcounts(d) )
    2.13 +            printk("refcounts ");
    2.14 +        if ( shadow_mode_write_all(d) )
    2.15 +            printk("write_all ");
    2.16 +        if ( shadow_mode_log_dirty(d) )
    2.17 +            printk("log_dirty ");
    2.18 +        if ( shadow_mode_translate(d) )
    2.19 +            printk("translate ");
    2.20 +        if ( shadow_mode_external(d) )
    2.21 +            printk("external ");
    2.22 +        if ( shadow_mode_wr_pt_pte(d) )
    2.23 +            printk("wr_pt_pte ");
    2.24 +        printk("\n");
    2.25 +    }
    2.26 +}
    2.27  
    2.28  /*
    2.29   * Local variables:
     3.1 --- a/xen/common/keyhandler.c	Thu Feb 23 18:40:08 2006 +0100
     3.2 +++ b/xen/common/keyhandler.c	Fri Feb 24 08:27:05 2006 +0100
     3.3 @@ -132,22 +132,8 @@ static void dump_domains(unsigned char k
     3.4                 d->handle[ 4], d->handle[ 5], d->handle[ 6], d->handle[ 7],
     3.5                 d->handle[ 8], d->handle[ 9], d->handle[10], d->handle[11],
     3.6                 d->handle[12], d->handle[13], d->handle[14], d->handle[15]);
     3.7 -        if ( shadow_mode_enabled(d) ) {
     3.8 -            printk("    shadow mode: ");
     3.9 -            if ( shadow_mode_refcounts(d) )
    3.10 -                printk("refcounts ");
    3.11 -            if ( shadow_mode_write_all(d) )
    3.12 -                printk("write_all ");
    3.13 -            if ( shadow_mode_log_dirty(d) )
    3.14 -                printk("log_dirty ");
    3.15 -            if ( shadow_mode_translate(d) )
    3.16 -                printk("translate ");
    3.17 -            if ( shadow_mode_external(d) )
    3.18 -                printk("external ");
    3.19 -            if ( shadow_mode_wr_pt_pte(d) )
    3.20 -                printk("wr_pt_pte ");
    3.21 -            printk("\n");
    3.22 -        }
    3.23 +
    3.24 +        arch_dump_domain_info(d);
    3.25  
    3.26          rangeset_domain_printk(d);
    3.27  
     4.1 --- a/xen/include/xen/domain.h	Thu Feb 23 18:40:08 2006 +0100
     4.2 +++ b/xen/include/xen/domain.h	Fri Feb 24 08:27:05 2006 +0100
     4.3 @@ -24,4 +24,6 @@ extern void domain_relinquish_resources(
     4.4  
     4.5  extern void dump_pageframe_info(struct domain *d);
     4.6  
     4.7 +extern void arch_dump_domain_info(struct domain *d);
     4.8 +
     4.9  #endif /* __XEN_DOMAIN_H__ */