Re: [PATCH] kvm tools: Print only serial output to the terminal

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

 



On Wed, 10 Aug 2011, Sasha Levin wrote:
Pekka, could you check whats the MCR value when your guest is writing
from usermode?

MCR: b
MCR: b
MCR: b
MCR: b
MCR: b
MCR: b
MCR: b
MCR: b
MCR: b
MCR: b

  # KVM session terminated.

diff --git a/tools/kvm/hw/serial.c b/tools/kvm/hw/serial.c
index 1199264..44d9439 100644
--- a/tools/kvm/hw/serial.c
+++ b/tools/kvm/hw/serial.c
@@ -213,8 +213,10 @@ static bool serial8250_out(struct ioport *ioport, struct kvm *kvm, u16 port, voi
 		case UART_TX: {
 			char *addr = data;

-			if (!(dev->mcr & UART_MCR_LOOP))
+			if (!(dev->mcr & (UART_MCR_LOOP | UART_MCR_OUT2)))
 				term_putc(CONSOLE_8250, addr, size * count);
+			else
+				printf("MCR: %x\n",  dev->mcr);

 			dev->iir		= UART_IIR_NO_INT;
 			break;
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux