plain text document attachment (lguest64-debug.patch) This is just a hack patch to get output from the guest. It calls lguest_vprint from printk which is a hypercall to the host to do the printk for the guest. Chris Wright recommended that I put this into early_printk, but until I can get that to work, I'm posting this. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Cc: Glauber de Oliveira Costa <glommer@gmail.com> Cc: Chris Wright <chrisw@sous-sol.org> Index: work-pv/kernel/printk.c ==================================================================--- work-pv.orig/kernel/printk.c +++ work-pv/kernel/printk.c @@ -499,12 +499,17 @@ static int have_callable_console(void) * printf(3) */ +extern void lguest_vprint(const char *fmt, va_list ap); asmlinkage int printk(const char *fmt, ...) { va_list args; + va_list lgargs; int r; va_start(args, fmt); + va_copy(lgargs, args); + lguest_vprint(fmt, lgargs); + va_end(lgargs); r = vprintk(fmt, args); va_end(args); --