From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org, "Ani Sinha" <anisinha@redhat.com>,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH 2/2] dump/win_dump: Use stubs on non-Windows hosts like POSIX
Date: Thu, 8 Jan 2026 10:53:39 +0000 [thread overview]
Message-ID: <aV-Ms5PQDCiIA86v@redhat.com> (raw)
In-Reply-To: <0438ddd7-6061-4b7b-a995-0ec32f250f95@linaro.org>
On Thu, Jan 08, 2026 at 11:51:00AM +0100, Philippe Mathieu-Daudé wrote:
> On 8/1/26 10:11, Daniel P. Berrangé wrote:
> > On Wed, Jan 07, 2026 at 07:05:19PM +0100, Philippe Mathieu-Daudé wrote:
> > > Rather than compiling the same content for all targets (unused
> > > most of the time, i.e. qemu-system-avr ...), build it once per
> > > POSIX hosts. Check Windows host (less likely) before x86 host.
> > >
> > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> > > ---
> > > dump/win_dump-stubs.c | 21 +++++++++++++++++++++
> > > dump/win_dump.c | 12 ++++++++----
> > > dump/meson.build | 6 +++++-
> > > 3 files changed, 34 insertions(+), 5 deletions(-)
> > > create mode 100644 dump/win_dump-stubs.c
> >
> > snip
> >
> > > diff --git a/dump/meson.build b/dump/meson.build
> > > index 4277ce9328a..0aaf3f65d9c 100644
> > > --- a/dump/meson.build
> > > +++ b/dump/meson.build
> > > @@ -1,2 +1,6 @@
> > > system_ss.add([files('dump.c', 'dump-hmp-cmds.c'), snappy, lzo])
> > > -specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: files('win_dump.c'))
> > > +if host_os == 'windows'
> > > + system_ss.add(files('win_dump.c'))
> > > +else
> > > + system_ss.add(files('win_dump-stubs.c'))
> > > +endif
> >
> > This is very wrong.
> >
> > The win_dump.c file has no association with Windows hosts. It is about
> > creating crash dumps of Windows *guests* in the Windows dump format. The
> > current conditional which builds it on TARGET_X86_64 is correct.
>
> Great to know this is a *guest* feature and not a *host* one.
>
> Something else is currently wrong, because this file is built with
> qemu-system-avr on macOS.
Why is that a problem ? The entire file content is surrounded with
#if defined(TARGET_X86_64)
...the impl...
#else
...stubs...
#endif
soo qemu-system-avr will be building the stubs which is fine. macOS
is not a factor, since QEMU is fine to emulate Windows guests on
macOS hosts and thus Win dump is in scope for macOS
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2026-01-08 10:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-07 18:05 [PATCH 0/2] dump/win_dump: Build almost once Philippe Mathieu-Daudé
2026-01-07 18:05 ` [PATCH 1/2] dump/win_dump: Abort in create_win_dump() on non-x86 hosts Philippe Mathieu-Daudé
2026-01-08 8:24 ` Marc-André Lureau
2026-01-07 18:05 ` [PATCH 2/2] dump/win_dump: Use stubs on non-Windows hosts like POSIX Philippe Mathieu-Daudé
2026-01-08 8:26 ` Marc-André Lureau
2026-01-08 9:11 ` Daniel P. Berrangé
2026-01-08 10:51 ` Philippe Mathieu-Daudé
2026-01-08 10:53 ` Daniel P. Berrangé [this message]
2026-01-08 11:14 ` Philippe Mathieu-Daudé
2026-01-08 11:36 ` Daniel P. Berrangé
2026-01-08 16:16 ` 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=aV-Ms5PQDCiIA86v@redhat.com \
--to=berrange@redhat.com \
--cc=anisinha@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@linaro.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 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.