From: Markus Armbruster <armbru@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Roman Kiryanov" <rkir@google.com>,
qemu-devel@nongnu.org,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
mjt@tls.msk.ru, whollins@google.com, jansene@google.com,
jpcottin@google.com, "Eric Blake" <eblake@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [PATCH] ui/kbd-state.h: Make the header C++ compatible
Date: Fri, 30 Jan 2026 11:59:37 +0100 [thread overview]
Message-ID: <87sebnfjs6.fsf@pond.sub.org> (raw)
In-Reply-To: <CAFEAcA-ShmtJ2tOO_bz+d_oKJaDTG15bc9s775mND=FLWQdRpw@mail.gmail.com> (Peter Maydell's message of "Fri, 30 Jan 2026 09:19:32 +0000")
Peter Maydell <peter.maydell@linaro.org> writes:
> On Thu, 29 Jan 2026 at 21:44, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>>
>> Hi Peter,
>>
>> (+Paolo / Eric)
>>
>> On 29/1/26 21:31, Peter Maydell wrote:
>> >
>> > What are we trying to achieve here, and why does it benefit
>> > us as an upstream project ?
>> >
>> > cf previous email thread from 2024
>> > https://lore.kernel.org/qemu-devel/ZnqPpqfBxlk9tEdX@redhat.com/
>> > about "drip-feeding" of this kind of patch with no clear take
>> > on what the end state is or how much churn it's going to induce.
>>
>> I clearly know QEMU is not a C++ project. Now I don't see why we should
>> be reluctant to have headers being usable by a C++ compiler, as long as
>> it doesn't make our project worst to maintain.
>
> Every bit of code that is written by some downstream in C++ is
> some thing that will essentially then never be upstreamed without
> a big rewrite. So making it easier for downstreams to use C++
> reduces our chances of seeing them contribute what they do back to us.
>
> It's also extra work for us (for instance in this thread you
> proposed adding a CI job, which is more CI minutes cost to
> the project, more work for maintainers when something that
> builds fine locally falls over in the CI, and so on).
>
> Each individual fix might be trivial, but they add up.
> So it matters whether this one is "this is the only thing
> we tripped over since 2024" or "we just rebased to a new
> QEMU version and are going to be submitting dozens of these
> over the next few weeks".
>
>> See for example non-invasive commit 7246c4cc470 ("exec: don't use void*
>> in pointer arithmetic in headers"):
>
>> or commit 17c7df806b3 ("exec: avoid using C++ keywords in function
>> parameters"):
>
> For the record, I wasn't really enthusiastic about those changes
> either, for essentially the same reasons.
+1
[...]
next prev parent reply other threads:[~2026-01-30 11:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 19:04 [PATCH] ui/kbd-state.h: Make the header C++ compatible Roman Kiryanov
2026-01-29 19:16 ` Marc-André Lureau
2026-01-29 19:23 ` Philippe Mathieu-Daudé
2026-01-29 20:25 ` Roman Kiryanov
2026-01-29 20:31 ` Peter Maydell
2026-01-29 21:44 ` Philippe Mathieu-Daudé
2026-01-30 9:19 ` Peter Maydell
2026-01-30 10:59 ` Markus Armbruster [this message]
2026-02-02 11:00 ` Daniel P. Berrangé
2026-02-02 11:20 ` Philippe Mathieu-Daudé
2026-02-02 12:37 ` Markus Armbruster
2026-01-29 21:51 ` Roman Kiryanov
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=87sebnfjs6.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=jansene@google.com \
--cc=jpcottin@google.com \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rkir@google.com \
--cc=whollins@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.