[PATCH kvm-unit-tests v2 2/3] io: only initialize serial port once

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

 



Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
 lib/x86/io.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/x86/io.c b/lib/x86/io.c
index 0282888..d3b971e 100644
--- a/lib/x86/io.c
+++ b/lib/x86/io.c
@@ -46,6 +46,7 @@ static void print_serial(const char *buf)
         unsigned long i;
         if (!serial_inited) {
             serial_init();
+            serial_inited = 1;
         }
 
         for (i = 0; i < len; i++) {
-- 
1.8.1.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