From patchwork Fri Jan 25 18:07:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10781809 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D9C811399 for ; Fri, 25 Jan 2019 18:08:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9ED3302F7 for ; Fri, 25 Jan 2019 18:08:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE45B30358; Fri, 25 Jan 2019 18:08:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F905302F7 for ; Fri, 25 Jan 2019 18:08:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729509AbfAYSIL (ORCPT ); Fri, 25 Jan 2019 13:08:11 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51964 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729497AbfAYSIK (ORCPT ); Fri, 25 Jan 2019 13:08:10 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A967E1650; Fri, 25 Jan 2019 10:08:09 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BE5E63F5AF; Fri, 25 Jan 2019 10:08:08 -0800 (PST) From: Andre Przywara To: Will Deacon Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH kvmtool 2/6] arm: fdt: add stdout-path to /chosen node Date: Fri, 25 Jan 2019 18:07:57 +0000 Message-Id: <20190125180801.209910-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190125180801.209910-1-andre.przywara@arm.com> References: <20190125180801.209910-1-andre.przywara@arm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The DT spec describes the stdout-path property in the /chosen node to contain the DT path for a default device usable for outputting characters. The Linux kernel uses this for earlycon (without further parameters), other DT users might rely on this as well. Add a property containing the path to our emulated 8250 serial device. Even when we use the virtio console, the serial console is still there and works, so we can expose this unconditionally. Putting the virtio console path in there will not work anyway. Signed-off-by: Andre Przywara --- arm/fdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arm/fdt.c b/arm/fdt.c index 28ba1c2c..8cda3ded 100644 --- a/arm/fdt.c +++ b/arm/fdt.c @@ -143,6 +143,7 @@ static int setup_fdt(struct kvm *kvm) _FDT(fdt_property_cell(fdt, "linux,pci-probe-only", 1)); _FDT(fdt_property_string(fdt, "bootargs", kvm->cfg.real_cmdline)); _FDT(fdt_property_u64(fdt, "kaslr-seed", kvm->cfg.arch.kaslr_seed)); + _FDT(fdt_property_string(fdt, "stdout-path", "/U6_16550A@3f8")); /* Initrd */ if (kvm->arch.initrd_size != 0) {