[Top][All Lists]

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

Re: [Qemu-arm] [Qemu-devel] [PATCH 2/3] hw/arm/virt: Add another UART to

From: Andrew Jones
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH 2/3] hw/arm/virt: Add another UART to the virt board
Date: Tue, 12 Dec 2017 16:16:05 +0100
User-agent: Mutt/ (2016-04-01)

On Tue, Dec 12, 2017 at 02:50:50PM +0000, Peter Maydell wrote:
> On 12 December 2017 at 14:45, Andrew Jones <address@hidden> wrote:
> > Should this be
> >
> >     if (!vmc->no_second_uart && serial_hds[uart_count] != NULL) {
> >
> > A bit late now, but maybe the other UART resource allocations should have
> > been conditional on actually being wired up too?
> What does x86 do?

Looks like they provide the io-ports unconditionally.

> I think the conclusion we came to about UARTs in general was that
> boards should always create the devices, and the UART models
> should cope with being passed a NULL chardev backend. (This
> is like real hardware, where the 2nd UART always exists even
> if you haven't plugged a cable into the 2nd serial port on the
> back of the box.)

Yes, I guess the real hardware analogy provides the justification
for doing it this way.

OK, so this patch is fine, but it kills my suggestion for AAVMF to
only output debug messages to a debug port when the debug port is
actually useful. Now it won't be able to tell the difference unless
we can inform it some other way.


> thanks
> -- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]