qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [PATCH-for-10.1 00/13] arm: Spring header cleanups
Date: Thu, 3 Apr 2025 13:51:57 -0700	[thread overview]
Message-ID: <e6a91ce2-f22f-4abd-a28c-5f6e5c404b2a@linaro.org> (raw)
In-Reply-To: <0ddb4f55-853b-4f52-935c-51ebed73d38b@linaro.org>

On 4/3/25 12:31, Philippe Mathieu-Daudé wrote:
> On 3/4/25 20:22, Pierrick Bouvier wrote:
>> On 4/2/25 15:23, Philippe Mathieu-Daudé wrote:
>>> This series is more useful for heterogeneous emulation preparation
>>> than single binary, because it allows non-ARM hw/ code to configure
>>> ARM cores, so not using target-specific APIs. I figured some
>>> patches could be useful to Pierrick "build hw/arm once" series (in
>>> particular arm_cpu_has_feature).
>>>
>>
>> I'm ok with the cleanup part, as I sent a reviewed-by.
>>
>> However, I'm not sure in which context non-ARM hw/ code will really need
>> to do it. It would be better if we stick to mandatory changes for now,
>> instead of anticipating future needs, which might be real or not.
>> We can implement those changes only as part of a series that really
>> needs it.
> 
> I understand your view. I had to rebase these now old patches, and
> figured it will cost me less if I get them merged, rather than
> keeping rebasing them for 4 or 5 releases.
> 

Sure, that's the best approach. For the reviewer, it's not obvious when 
you implemented this though, so the only question we can ask is "Why is 
that needed?".

> Single binary effort is just a milestone toward heterogeneous emulation.

Yes. That said, it does not change the fact that anticipating needs 
(i.e. not explicitely required to compile/execute right now) can detour 
us from the goal, whether it's the single binary, heterogeneous 
emulation, or any feature we want to add to QEMU.

In the context of this series, it's still not obvious for me why a piece 
of hardware not related to Arm would poke internal registers to detect 
if a feature is implemented or not. Thus, it's not obvious why we need 
to expose that now. If we don't have an answer to that, I suggest to 
postpone this part of the series until we get a real use case.

For the cleanup part, as I mentioned before, I'm totally ok with it.

      reply	other threads:[~2025-04-03 20:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-02 22:23 [PATCH-for-10.1 00/13] arm: Spring header cleanups Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 01/13] target/arm/cpu-features: Include missing 'cpu.h' header Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 02/13] target/arm/qmp: " Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 03/13] target/arm/kvm: Include missing 'cpu-qom.h' header Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 04/13] target/arm/hvf: " Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 05/13] hw/arm: Remove unnecessary 'cpu.h' header Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 06/13] target/arm: Restrict inclusion of 'multiprocessing.h' Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 07/13] target/arm: Move some definitions from 'cpu.h' to 'multiprocessing.h' Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 08/13] hw/arm: Include missing 'target/arm/gtimer.h' header Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 09/13] target/arm: Extract PSCI definitions to 'psci.h' Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 10/13] target/arm: Extract feature definitions to 'cpu_has_feature.h' header Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 11/13] target/arm: Add arm_cpu_has_feature() helper Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 12/13] hw/arm/realview: Replace arm_feature() -> arm_cpu_has_feature() Philippe Mathieu-Daudé
2025-04-02 22:23 ` [PATCH-for-10.1 13/13] hw/arm/virt-acpi: " Philippe Mathieu-Daudé
2025-04-03 18:18 ` [PATCH-for-10.1 00/13] arm: Spring header cleanups Pierrick Bouvier
2025-04-03 18:22 ` Pierrick Bouvier
2025-04-03 19:31   ` Philippe Mathieu-Daudé
2025-04-03 20:51     ` Pierrick Bouvier [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=e6a91ce2-f22f-4abd-a28c-5f6e5c404b2a@linaro.org \
    --to=pierrick.bouvier@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@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).