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

[Xen-changelog] Cset 8950 adds shadow info dump in common code, however



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 407a50974a4676470723179122784fa6a7b15890
# Parent  c646586d10651e94c2b56a370e3f737c19883726
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@xxxxxxxxx>

diff -r c646586d1065 -r 407a50974a46 xen/arch/ia64/xen/xenmisc.c
--- a/xen/arch/ia64/xen/xenmisc.c       Thu Feb 23 17:40:08 2006
+++ b/xen/arch/ia64/xen/xenmisc.c       Fri Feb 24 07:27:05 2006
@@ -334,6 +334,10 @@
 void continue_running(struct vcpu *same)
 {
        /* nothing to do */
+}
+
+void arch_dump_domain_info(struct domain *d)
+{
 }
 
 void panic_domain(struct pt_regs *regs, const char *fmt, ...)
diff -r c646586d1065 -r 407a50974a46 xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Thu Feb 23 17:40:08 2006
+++ b/xen/arch/x86/domain.c     Fri Feb 24 07:27:05 2006
@@ -986,6 +986,26 @@
     relinquish_memory(d, &d->page_list);
 }
 
+void arch_dump_domain_info(struct domain *d)
+{
+    if ( shadow_mode_enabled(d) )
+    {
+        printk("    shadow mode: ");
+        if ( shadow_mode_refcounts(d) )
+            printk("refcounts ");
+        if ( shadow_mode_write_all(d) )
+            printk("write_all ");
+        if ( shadow_mode_log_dirty(d) )
+            printk("log_dirty ");
+        if ( shadow_mode_translate(d) )
+            printk("translate ");
+        if ( shadow_mode_external(d) )
+            printk("external ");
+        if ( shadow_mode_wr_pt_pte(d) )
+            printk("wr_pt_pte ");
+        printk("\n");
+    }
+}
 
 /*
  * Local variables:
diff -r c646586d1065 -r 407a50974a46 xen/common/keyhandler.c
--- a/xen/common/keyhandler.c   Thu Feb 23 17:40:08 2006
+++ b/xen/common/keyhandler.c   Fri Feb 24 07:27:05 2006
@@ -132,22 +132,8 @@
                d->handle[ 4], d->handle[ 5], d->handle[ 6], d->handle[ 7],
                d->handle[ 8], d->handle[ 9], d->handle[10], d->handle[11],
                d->handle[12], d->handle[13], d->handle[14], d->handle[15]);
-        if ( shadow_mode_enabled(d) ) {
-            printk("    shadow mode: ");
-            if ( shadow_mode_refcounts(d) )
-                printk("refcounts ");
-            if ( shadow_mode_write_all(d) )
-                printk("write_all ");
-            if ( shadow_mode_log_dirty(d) )
-                printk("log_dirty ");
-            if ( shadow_mode_translate(d) )
-                printk("translate ");
-            if ( shadow_mode_external(d) )
-                printk("external ");
-            if ( shadow_mode_wr_pt_pte(d) )
-                printk("wr_pt_pte ");
-            printk("\n");
-        }
+
+        arch_dump_domain_info(d);
 
         rangeset_domain_printk(d);
 
diff -r c646586d1065 -r 407a50974a46 xen/include/xen/domain.h
--- a/xen/include/xen/domain.h  Thu Feb 23 17:40:08 2006
+++ b/xen/include/xen/domain.h  Fri Feb 24 07:27:05 2006
@@ -24,4 +24,6 @@
 
 extern void dump_pageframe_info(struct domain *d);
 
+extern void arch_dump_domain_info(struct domain *d);
+
 #endif /* __XEN_DOMAIN_H__ */

_______________________________________________
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®.