qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Bug: Lost slirp functionality on qemu-system-ppc build for windows.
@ 2019-02-10 22:12 Howard Spoelstra
  2019-02-11  7:56 ` Thomas Huth
  0 siblings, 1 reply; 4+ messages in thread
From: Howard Spoelstra @ 2019-02-10 22:12 UTC (permalink / raw)
  To: qemu-devel qemu-devel

Hi,

I just cross compiled Qemu-system-ppc for Windows on Fedora 29 and
discovered slirp does not work anymore. Tap networking works fine.
Bisecting got me here:

a9d8b3ec4385793815d7121785730422fa3dfb68 is the first bad commit
commit a9d8b3ec4385793815d7121785730422fa3dfb68
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Thu Jan 17 15:43:52 2019 +0400

    slirp: replace remaining qemu headers dependency

    Except for the migration code which is gated by WITH_QEMU, only
    include our own headers, so libslirp can be built standalone.

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

:040000 040000 cd06df21ed96497cd12f2a20adb3d66cb0da8010
ab5afd3f50910e39b2b700722cd47de8f0cf9e2c M    slirp


Best,
Howard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Bug: Lost slirp functionality on qemu-system-ppc build for windows.
  2019-02-10 22:12 [Qemu-devel] Bug: Lost slirp functionality on qemu-system-ppc build for windows Howard Spoelstra
@ 2019-02-11  7:56 ` Thomas Huth
  2019-02-11  9:52   ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2019-02-11  7:56 UTC (permalink / raw)
  To: Howard Spoelstra, qemu-devel qemu-devel, Marc-André Lureau,
	Samuel Thibault

On 2019-02-10 23:12, Howard Spoelstra wrote:
> Hi,
> 
> I just cross compiled Qemu-system-ppc for Windows on Fedora 29 and
> discovered slirp does not work anymore. Tap networking works fine.
> Bisecting got me here:
> 
> a9d8b3ec4385793815d7121785730422fa3dfb68 is the first bad commit
> commit a9d8b3ec4385793815d7121785730422fa3dfb68
> Author: Marc-André Lureau <marcandre.lureau@redhat.com>
> Date:   Thu Jan 17 15:43:52 2019 +0400
> 
>     slirp: replace remaining qemu headers dependency
> 
>     Except for the migration code which is gated by WITH_QEMU, only
>     include our own headers, so libslirp can be built standalone.
> 
>     Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
>     Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> 
> :040000 040000 cd06df21ed96497cd12f2a20adb3d66cb0da8010
> ab5afd3f50910e39b2b700722cd47de8f0cf9e2c M    slirp

Thanks for bisecting the issue already! ... adding Marc-André and Samuel
to the thread, maybe they have a clue what might be wrong here...

 Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Bug: Lost slirp functionality on qemu-system-ppc build for windows.
  2019-02-11  7:56 ` Thomas Huth
@ 2019-02-11  9:52   ` Peter Maydell
  2019-02-11 16:06     ` Marc-André Lureau
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2019-02-11  9:52 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Howard Spoelstra, qemu-devel qemu-devel, Marc-André Lureau,
	Samuel Thibault

On Mon, 11 Feb 2019 at 07:57, Thomas Huth <thuth@redhat.com> wrote:
>
> On 2019-02-10 23:12, Howard Spoelstra wrote:
> > Hi,
> >
> > I just cross compiled Qemu-system-ppc for Windows on Fedora 29 and
> > discovered slirp does not work anymore. Tap networking works fine.
> > Bisecting got me here:
> >
> > a9d8b3ec4385793815d7121785730422fa3dfb68 is the first bad commit
> > commit a9d8b3ec4385793815d7121785730422fa3dfb68
> > Author: Marc-André Lureau <marcandre.lureau@redhat.com>
> > Date:   Thu Jan 17 15:43:52 2019 +0400
> >
> >     slirp: replace remaining qemu headers dependency
> >
> >     Except for the migration code which is gated by WITH_QEMU, only
> >     include our own headers, so libslirp can be built standalone.
> >
> >     Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> >     Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> >
> > :040000 040000 cd06df21ed96497cd12f2a20adb3d66cb0da8010
> > ab5afd3f50910e39b2b700722cd47de8f0cf9e2c M    slirp
>
> Thanks for bisecting the issue already! ... adding Marc-André and Samuel
> to the thread, maybe they have a clue what might be wrong here...

Probably you've missed something in copying the "work around
weird Windows host stuff" bits from osdep.h and sysemu/os-win32.h.
For instance you don't seem to have an equivalent of most of the
wrapped functions that set errno -- eg os-win32.h defines recv
to be qemu_recv_wrap, which is a function in util/oslib-win32.c.

thanks
-- PMM

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Bug: Lost slirp functionality on qemu-system-ppc build for windows.
  2019-02-11  9:52   ` Peter Maydell
@ 2019-02-11 16:06     ` Marc-André Lureau
  0 siblings, 0 replies; 4+ messages in thread
From: Marc-André Lureau @ 2019-02-11 16:06 UTC (permalink / raw)
  To: Peter Maydell
  Cc: Thomas Huth, qemu-devel qemu-devel, Samuel Thibault,
	Howard Spoelstra

Hi

On Mon, Feb 11, 2019 at 10:52 AM Peter Maydell <peter.maydell@linaro.org> wrote:
>
> On Mon, 11 Feb 2019 at 07:57, Thomas Huth <thuth@redhat.com> wrote:
> >
> > On 2019-02-10 23:12, Howard Spoelstra wrote:
> > > Hi,
> > >
> > > I just cross compiled Qemu-system-ppc for Windows on Fedora 29 and
> > > discovered slirp does not work anymore. Tap networking works fine.
> > > Bisecting got me here:
> > >
> > > a9d8b3ec4385793815d7121785730422fa3dfb68 is the first bad commit
> > > commit a9d8b3ec4385793815d7121785730422fa3dfb68
> > > Author: Marc-André Lureau <marcandre.lureau@redhat.com>
> > > Date:   Thu Jan 17 15:43:52 2019 +0400
> > >
> > >     slirp: replace remaining qemu headers dependency
> > >
> > >     Except for the migration code which is gated by WITH_QEMU, only
> > >     include our own headers, so libslirp can be built standalone.
> > >
> > >     Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > >     Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> > >
> > > :040000 040000 cd06df21ed96497cd12f2a20adb3d66cb0da8010
> > > ab5afd3f50910e39b2b700722cd47de8f0cf9e2c M    slirp
> >
> > Thanks for bisecting the issue already! ... adding Marc-André and Samuel
> > to the thread, maybe they have a clue what might be wrong here...
>
> Probably you've missed something in copying the "work around
> weird Windows host stuff" bits from osdep.h and sysemu/os-win32.h.
> For instance you don't seem to have an equivalent of most of the
> wrapped functions that set errno -- eg os-win32.h defines recv
> to be qemu_recv_wrap, which is a function in util/oslib-win32.c.

It looks like you are right. I am working on a patch set to fix it asap.

thanks

-- 
Marc-André Lureau

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-11 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-10 22:12 [Qemu-devel] Bug: Lost slirp functionality on qemu-system-ppc build for windows Howard Spoelstra
2019-02-11  7:56 ` Thomas Huth
2019-02-11  9:52   ` Peter Maydell
2019-02-11 16:06     ` Marc-André Lureau

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).