From patchwork Thu May 9 14:55:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 2544331 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1351F3FC5A for ; Thu, 9 May 2013 14:55:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754359Ab3EIOzU (ORCPT ); Thu, 9 May 2013 10:55:20 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:37566 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755711Ab3EIOzT (ORCPT ); Thu, 9 May 2013 10:55:19 -0400 Received: by mail-wg0-f49.google.com with SMTP id j13so3266274wgh.16 for ; Thu, 09 May 2013 07:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=XneX5eJnLFUN4sKB6VqxRyjCaVpjrptLuBJRFbLupkE=; b=LJnGmsuASJicvW0hJzFYe8qnI5Tjyx4zxOXK2X0jJUku/WuiA8g8iIQsManOWKDzLb WCnxw3d4xcyT2F/3L4v4mGGqSctUzmwrmM+FbcrzeR2UsrLwACmUM/qAmXpkV9ClLoQa 4XC8TS0yzrPIg2gzcSuWft5uVOEJkXo21JSgIp8vD/aRpPU77gYSh+KACE0hl/zCKF8N WpcxJ7dM5qtASUPRphS/RdNiQuR2m+vEV5dvoZAGgKJjGGReZny34VOw4Fy9Bhru4v9W BIxRcplrywa3bRbjVsCVjE//nVwTcx63h+tQ4SISJYkqh9BZ9J3PVXx9Iv2jW6KXlwmB TKCw== X-Received: by 10.180.74.172 with SMTP id u12mr33861563wiv.0.1368111314288; Thu, 09 May 2013 07:55:14 -0700 (PDT) Received: from playground.lan (93-34-176-20.ip50.fastwebnet.it. [93.34.176.20]) by mx.google.com with ESMTPSA id q20sm4969266wiv.7.2013.05.09.07.55.12 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 09 May 2013 07:55:13 -0700 (PDT) From: Paolo Bonzini To: kvm@vger.kernel.org Subject: [PATCH kvm-unit-tests v2 2/3] io: only initialize serial port once Date: Thu, 9 May 2013 16:55:04 +0200 Message-Id: <1368111305-9076-3-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1368111305-9076-1-git-send-email-pbonzini@redhat.com> References: <1368111305-9076-1-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Paolo Bonzini --- 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++) {