Dump shadow info should be arch specific
PATCH 1/1 Dump shadow info should be arch specific
Hi, Christian,
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 <[email protected]>
Thanks,
Kevin
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 <[email protected]>
xen/arch/ia64/xen/xenmisc.c +5 -0
@@ -334,6 +334,11 @@void continue_running (struct vcpu *same) {/* nothing to do */ +} + +void arch_dump_domains (struct domain *d) +{ +return ; }void panic_domain (struct pt_regs *regs,const char *fmt, ...)
xen/arch/x86/domain.c +20 -0
@@ -986,6 +986,26 @@relinquish_memory (d, &d->page_list); } +void arch_dump_domains (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:
xen/common/keyhandler.c +2 -16
@@ -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_domains (d);rangeset_domain_printk (d);
xen/include/xen/domain.h +2 -0
@@ -24,4 +24,6 @@extern void dump_pageframe_info (struct domain *d); +extern void arch_dump_domains (struct domain *d); +#endif /* __XEN_DOMAIN_H__ */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel