qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH v2 00/12] hw: Strengthen SysBus & QBus API


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 00/12] hw: Strengthen SysBus & QBus API
Date: Thu, 19 Oct 2023 09:35:55 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 19/10/23 09:32, Thomas Huth wrote:
On 19/10/2023 09.15, Philippe Mathieu-Daudé wrote:
Hi,

This series ensure:

- qbus_new() and sysbus_init_mmio() are called *before*
   a device is realized,
- sysbus_mmio_map() is called *after* it is realized.

Just an additional idea that came up while reading your series:
I think we should also add proper function descriptions for sysbus_init_mmio() and sysbus_mmio_map() in include/hw/sysbus.h, to make people aware that the first function should be used within the device to expose the mmio region, while the latter should be used in the machine code that wires the devices to the correct location in the sysbus memory. What do you think?

I've been thinking about this, but I plan to eventually merge these
calls to the QDev API (after removing more unuseful / duplicated
SysBus functions). So I was planning to document there. But yeah,
better to start doing that now.



reply via email to

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