yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
05bba0
From 3f947faca0fb91f4b1104862f7c71bf3f6bd5d48 Mon Sep 17 00:00:00 2001
05bba0
From: Paolo Bonzini <pbonzini@redhat.com>
05bba0
Date: Fri, 7 Aug 2015 15:24:38 +0200
05bba0
Subject: [PATCH 1/2] serial: reset state at startup
05bba0
05bba0
Message-id: <1438961078-13625-1-git-send-email-pbonzini@redhat.com>
05bba0
Patchwork-id: 67393
05bba0
O-Subject: [RHEL7.2 qemu-kvm-rhev PATCH] serial: reset state at startup
05bba0
Bugzilla: 922014
05bba0
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
RH-Acked-by: Andrew Jones <drjones@redhat.com>
05bba0
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
05bba0
05bba0
When a serial port is started, its initial state is all zero.  Make
05bba0
it consistent with reset state instead.
05bba0
05bba0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
05bba0
Upstream commit 4df7961faaa317d57e873ecdec58422d3f979336
05bba0
05bba0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
---
05bba0
 hw/char/serial.c | 1 +
05bba0
 1 file changed, 1 insertion(+)
05bba0
05bba0
diff --git a/hw/char/serial.c b/hw/char/serial.c
05bba0
index 0c472e2..2383c31 100644
05bba0
--- a/hw/char/serial.c
05bba0
+++ b/hw/char/serial.c
05bba0
@@ -685,6 +685,7 @@ void serial_init_core(SerialState *s)
05bba0
 
05bba0
     qemu_chr_add_handlers(s->chr, serial_can_receive1, serial_receive1,
05bba0
                           serial_event, s);
05bba0
+    serial_reset(s);
05bba0
 }
05bba0
 
05bba0
 void serial_exit_core(SerialState *s)
05bba0
-- 
05bba0
1.8.3.1
05bba0