On Wed, Aug 10, 2011 at 04:34:53PM +0300, Pekka Enberg wrote:
>On Wed, 10 Aug 2011, Sasha Levin wrote:
>>This patch changes the serial device to print only auxiliary output to the
>>terminal.
>>
>>Doing so prevents printing output which the guest kernel never intended us
>>to print and by printing it we wrote junk to the users terminal.
>>
>>Signed-off-by: Sasha Levin <[email protected]>
>
>This doesn't seem to work for me. As soon as we switch to userspace,
>I don't get any output from serial console.
It works for me.
walimis
>
>>---
>>tools/kvm/hw/serial.c | 2 +-
>>1 files changed, 1 insertions(+), 1 deletions(-)
>>
>>diff --git a/tools/kvm/hw/serial.c b/tools/kvm/hw/serial.c
>>index 1199264..0393d3d 100644
>>--- a/tools/kvm/hw/serial.c
>>+++ b/tools/kvm/hw/serial.c
>>@@ -213,7 +213,7 @@ 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);
>>
>> dev->iir = UART_IIR_NO_INT;
>>--
>>1.7.6
>>
>>
>--
>To unsubscribe from this list: send the line "unsubscribe kvm" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html