[RFC/PATCH LGUEST X86_64 13/13] Hack to get output

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

 



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@xxxxxxxxxx>
Cc: Glauber de Oliveira Costa <glommer@xxxxxxxxx>
Cc: Chris Wright <chrisw@xxxxxxxxxxxx>


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);
 

--

_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/virtualization


[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux