qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
	qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH v2 3/3] hw/arm/virt: allow creation of a second NonSecure UART
Date: Tue, 11 Jun 2024 16:42:50 +0200	[thread overview]
Message-ID: <01dce86d-9644-4a97-b066-0496398b3c56@linaro.org> (raw)
In-Reply-To: <20240610162343.2131524-4-peter.maydell@linaro.org>

On 10/6/24 18:23, Peter Maydell wrote:
> For some use-cases, it is helpful to have more than one UART
> available to the guest.  If the second UART slot is not already used
> for a TrustZone Secure-World-only UART, create it as a NonSecure UART
> only when the user provides a serial backend (e.g.  via a second
> -serial command line option).
> 
> This avoids problems where existing guest software only expects a
> single UART, and gets confused by the second UART in the DTB.  The
> major example of this is older EDK2 firmware, which will send the
> GRUB bootloader output to UART1 and the guest serial output to UART0.
> Users who want to use both UARTs with a guest setup including EDK2
> are advised to update to EDK2 release edk2-stable202311 or newer.
> (The prebuilt EDK2 blobs QEMU upstream provides are new enough.)
> The relevant EDK2 changes are the ones described here:
> https://bugzilla.tianocore.org/show_bug.cgi?id=4577
> 
> Inspired-by: Axel Heider <axel.heider@hensoldt.net>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> Tested-by: Laszlo Ersek <lersek@redhat.com>
> ---
>   docs/system/arm/virt.rst |  6 +++++-
>   include/hw/arm/virt.h    |  1 +
>   hw/arm/virt-acpi-build.c | 12 ++++++++----
>   hw/arm/virt.c            | 38 +++++++++++++++++++++++++++++++++++---
>   4 files changed, 49 insertions(+), 8 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>


      reply	other threads:[~2024-06-11 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-10 16:23 [PATCH v2 0/3] hw/arm: Create second NonSecure UART for virt board Peter Maydell
2024-06-10 16:23 ` [PATCH v2 1/3] hw/arm/virt: Add serial aliases in DTB Peter Maydell
2024-06-10 16:23 ` [PATCH v2 2/3] hw/arm/virt: Rename VIRT_UART and VIRT_SECURE_UART to VIRT_UART[01] Peter Maydell
2024-06-10 16:23 ` [PATCH v2 3/3] hw/arm/virt: allow creation of a second NonSecure UART Peter Maydell
2024-06-11 14:42   ` Philippe Mathieu-Daudé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=01dce86d-9644-4a97-b066-0496398b3c56@linaro.org \
    --to=philmd@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).