From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>,
"Anton Johansson" <anjo@rev.ng>
Subject: Re: [PATCH 3/3] semihosting: Restrict to TCG
Date: Thu, 30 May 2024 15:58:21 +0200 [thread overview]
Message-ID: <d2b81c56-a57c-4fbe-a65e-86e9755e7c48@linaro.org> (raw)
In-Reply-To: <CABgObfbvjG9bBgCwM-kL+YhjhMw1qLnQdQToCEkKW+V3trskoA@mail.gmail.com>
On 30/5/24 09:31, Paolo Bonzini wrote:
> On Thu, May 30, 2024 at 9:22 AM Philippe Mathieu-Daudé
> <philmd@linaro.org> wrote:
>>
>> On 30/5/24 08:02, Paolo Bonzini wrote:
>>> On Wed, May 29, 2024 at 5:56 PM Philippe Mathieu-Daudé
>>> <philmd@linaro.org> wrote:
>>>> It is pointless to build semihosting when TCG is not available.
>>>
>>> Why? I would have naively assumed that a suitable semihosting API
>>> could be implemented by KVM. The justification (and thus the commit
>>> message) needs to be different for each architecture if it's a matter
>>> of instruction set or insufficient KVM userspace API.
>>
>> I wasn't sure where semihosting could be used so asked on IRC and
>> Alex told me TCG only. Maybe the current implementation is TCG
>> only, and I can reword. It certainly need some refactor to work
>> on KVM, because currently semihosting end calling the TCG probe_access
>> API, which I'm trying to restrict to TCG in order to ease linking
>> multiple libtcg for the single binary (see
>> https://lore.kernel.org/qemu-devel/20240529155918.6221-1-philmd@linaro.org/).
>
> Ok, that goes in the commit message though.
>
> "Semihosting currently uses the TCG probe_access API. It is pointless
> to have it in the binary when TCG isn't".
>
> and in the first two patches:
>
> "Semihosting currently uses the TCG probe_access API. To prepare for
> encoding the TCG dependency in Kconfig, do not enable it unless TCG is
> available".
>
> But then, "select FOO if TCG" mean that it can be compiled out; so
> perhaps "imply SEMIHOSTING if TCG" is better? Same for RISC-V's
> "select ARM_COMPATIBLE_SEMIHOSTING if TCG".
You are right. Thanks for reminding me Kconfig "imply" :)
Regards,
Phil.
next prev parent reply other threads:[~2024-05-30 13:58 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 15:55 [PATCH 0/3] semihosting: Restrict to TCG Philippe Mathieu-Daudé
2024-05-29 15:55 ` [PATCH 1/3] target/mips: Restrict semihosting " Philippe Mathieu-Daudé
2024-05-29 15:55 ` [PATCH 2/3] target/riscv: " Philippe Mathieu-Daudé
2024-05-29 15:55 ` [PATCH 3/3] semihosting: Restrict " Philippe Mathieu-Daudé
2024-05-30 6:02 ` Paolo Bonzini
2024-05-30 7:22 ` Philippe Mathieu-Daudé
2024-05-30 7:31 ` Paolo Bonzini
2024-05-30 13:58 ` Philippe Mathieu-Daudé [this message]
2024-06-12 13:12 ` Philippe Mathieu-Daudé
2024-06-18 11:33 ` Philippe Mathieu-Daudé
2024-06-18 13:56 ` Alex Bennée
2024-06-18 14:16 ` Philippe Mathieu-Daudé
2024-06-19 7:49 ` Paolo Bonzini
2024-07-17 10:49 ` Philippe Mathieu-Daudé
2024-05-30 7:27 ` Alex Bennée
2024-05-29 17:40 ` [PATCH 0/3] " Richard Henderson
2024-05-29 19:11 ` Alex Bennée
2024-05-30 6:03 ` Paolo Bonzini
2024-05-30 7:23 ` Philippe Mathieu-Daudé
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=d2b81c56-a57c-4fbe-a65e-86e9755e7c48@linaro.org \
--to=philmd@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=anjo@rev.ng \
--cc=pbonzini@redhat.com \
--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).