All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64
@ 2016-04-13 16:05 Michael
  2016-04-13 16:25 ` [Qemu-devel] [Bug 1569988] " Michael
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Michael @ 2016-04-13 16:05 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Both on master and, starting with 2016-03-22 builds from
http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
servers. For example, wget http://mifritscher resolves the DNS, but then
the message "network target couldn't be reached" occures. 2016-03-03
works fine. I suspect the IPv6 changes. My connection is IPv4 only.

I tested via knoppix 7.6. The command line is

qemu-system-x86_64.exe -m 512 -k de --cdrom
c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
-netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: dev network windows

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  New

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "network target couldn't be reached" occures.
  2016-03-03 works fine. I suspect the IPv6 changes. My connection is
  IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions

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

* [Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreign servers on Win64
  2016-04-13 16:05 [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64 Michael
@ 2016-04-13 16:25 ` Michael
  2016-04-14  7:41 ` Michael
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Michael @ 2016-04-13 16:25 UTC (permalink / raw)
  To: qemu-devel

Under Linux, it is working fine.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  New

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "network target couldn't be reached" occures.
  2016-03-03 works fine. I suspect the IPv6 changes. My connection is
  IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions

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

* [Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreign servers on Win64
  2016-04-13 16:05 [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64 Michael
  2016-04-13 16:25 ` [Qemu-devel] [Bug 1569988] " Michael
@ 2016-04-14  7:41 ` Michael
  2016-04-14  9:44 ` Stefan Weil
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Michael @ 2016-04-14  7:41 UTC (permalink / raw)
  To: qemu-devel

Another thing: if I disable ipv6, ipv4 runs still in sort of a timeout
before writing  Network is unreachable (ENETUNREACH), while ipv6 says
this without delay (which is ok/good)


** Description changed:

  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but then
- the message "network target couldn't be reached" occures. 2016-03-03
- works fine. I suspect the IPv6 changes. My connection is IPv4 only.
+ the message "Network is unreachable" occures. 2016-03-03 works fine. I
+ suspect the IPv6 changes. My connection is IPv4 only.
  
  I tested via knoppix 7.6. The command line is
  
  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  New

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "Network is unreachable" occures. 2016-03-03 works
  fine. I suspect the IPv6 changes. My connection is IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions

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

* [Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreign servers on Win64
  2016-04-13 16:05 [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64 Michael
  2016-04-13 16:25 ` [Qemu-devel] [Bug 1569988] " Michael
  2016-04-14  7:41 ` Michael
@ 2016-04-14  9:44 ` Stefan Weil
  2016-04-14 11:49 ` Stefan Weil
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Stefan Weil @ 2016-04-14  9:44 UTC (permalink / raw)
  To: qemu-devel

It looks like this commit caused the regression:

$ git bisect bad
c619644067f98098dcdbc951e2dda79e97560afa is the first bad commit
commit c619644067f98098dcdbc951e2dda79e97560afa
Author: Daniel P. Berrange <berrange@redhat.com>
Date:   Mon Mar 7 11:19:18 2016 +0000

    osdep: fix socket_error() to work with Mingw64

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  New

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "Network is unreachable" occures. 2016-03-03 works
  fine. I suspect the IPv6 changes. My connection is IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions

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

* [Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreign servers on Win64
  2016-04-13 16:05 [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64 Michael
                   ` (2 preceding siblings ...)
  2016-04-14  9:44 ` Stefan Weil
@ 2016-04-14 11:49 ` Stefan Weil
  2016-04-14 11:55 ` Stefan Weil
  2016-06-15 17:34 ` Stefan Weil
  5 siblings, 0 replies; 7+ messages in thread
From: Stefan Weil @ 2016-04-14 11:49 UTC (permalink / raw)
  To: qemu-devel

Here is a patch which fixes the problem.

diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c
index 2027a75..696867f 100644
--- a/slirp/tcp_input.c
+++ b/slirp/tcp_input.c
@@ -587,7 +587,7 @@ findso:
 
          if ((tcp_fconnect(so, so->so_ffamily) == -1) &&
 #if defined(_WIN32)
-              socket_error() != WSAEWOULDBLOCK
+              socket_error() != EAGAIN
 #else
               (errno != EINPROGRESS) && (errno != EWOULDBLOCK)
 #endif


Latest QEMU needs a slightly different patch:

diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c
index 5433e7f..3be2d2f 100644
--- a/slirp/tcp_input.c
+++ b/slirp/tcp_input.c
@@ -659,6 +659,7 @@ findso:
          }
 
          if ((tcp_fconnect(so, so->so_ffamily) == -1) &&
+              socket_error() != EAGAIN &&
               (errno != EINPROGRESS) && (errno != EWOULDBLOCK)
           ) {
            uint8_t code;

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  New

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "Network is unreachable" occures. 2016-03-03 works
  fine. I suspect the IPv6 changes. My connection is IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions

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

* [Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreign servers on Win64
  2016-04-13 16:05 [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64 Michael
                   ` (3 preceding siblings ...)
  2016-04-14 11:49 ` Stefan Weil
@ 2016-04-14 11:55 ` Stefan Weil
  2016-06-15 17:34 ` Stefan Weil
  5 siblings, 0 replies; 7+ messages in thread
From: Stefan Weil @ 2016-04-14 11:55 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: New => In Progress

** Changed in: qemu
     Assignee: (unassigned) => Stefan Weil (ubuntu-weilnetz)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  In Progress

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "Network is unreachable" occures. 2016-03-03 works
  fine. I suspect the IPv6 changes. My connection is IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions

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

* [Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreign servers on Win64
  2016-04-13 16:05 [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64 Michael
                   ` (4 preceding siblings ...)
  2016-04-14 11:55 ` Stefan Weil
@ 2016-06-15 17:34 ` Stefan Weil
  5 siblings, 0 replies; 7+ messages in thread
From: Stefan Weil @ 2016-06-15 17:34 UTC (permalink / raw)
  To: qemu-devel

Fixed since v2.6.0-rc3 release.

** Changed in: qemu
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  Fix Released

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "Network is unreachable" occures. 2016-03-03 works
  fine. I suspect the IPv6 changes. My connection is IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions

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

end of thread, other threads:[~2016-06-15 17:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-13 16:05 [Qemu-devel] [Bug 1569988] [NEW] [2.6] user network broken reaching foreign servers on Win64 Michael
2016-04-13 16:25 ` [Qemu-devel] [Bug 1569988] " Michael
2016-04-14  7:41 ` Michael
2016-04-14  9:44 ` Stefan Weil
2016-04-14 11:49 ` Stefan Weil
2016-04-14 11:55 ` Stefan Weil
2016-06-15 17:34 ` Stefan Weil

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.