[Qemu-devel] [PULL 2/9] slirp/smb: Replace constant strings by glib string

2017-04-29 Thread Samuel Thibault
d length buffers by g_str* functions that dynamically allocate and use g_dir_make_tmp to make the directory. (It's fairly new glib but we have a compat function for it). Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> Signed-off-by: S

[Qemu-devel] [PULL 3/9] slirp: tftp, copy sockaddr_size

2017-04-29 Thread Samuel Thibault
er is the sockaddr_in6 lhost on the stack. Copy only the source addr size. Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> Reviewed-by: Thomas Huth <th...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> Signed-off-by: Samuel Thibault <samuel.thiba..

[Qemu-devel] [PULL 1/9] slirp: allow host port 0 for hostfwd

2017-04-29 Thread Samuel Thibault
Example of use: $ qemu-system-x86_64 -net user,hostfwd=127.0.0.1:0-:22 ... Then, get your port with: $ lsof -np 1474 | grep LISTEN qemu-syst 31777 bernat 12u IPv4 [...] TCP 127.0.0.1:35145 (LISTEN) Signed-off-by: Vincent Bernat <vinc...@bernat.im> Signed-off-by: Samuel

[Qemu-devel] [PULL 0/9] slirp updates

2017-04-29 Thread Samuel Thibault
The following changes since commit 81b2d5ceb0cfb4cdc2163492e3169ed714b0cda9: Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20170426' into staging (2017-04-26 20:50:49 +0100) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault

[Qemu-devel] [PATCH] slirp: fix pinging the virtual ipv4 DNS server

2017-04-29 Thread Samuel Thibault
so that people do not think it is not working at least basically. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> diff --git a/slirp/ip_icmp.c b/slirp/ip_icmp.c index 5ffc7a683d..0b667a429a 100644 --- a/slirp/ip_icmp.c +++ b/slirp/ip_icmp.c @@ -152,8 +152,9 @@ icmp_input(

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread Samuel Thibault
Hello, FONNEMANN Mark, on mer. 19 avril 2017 18:11:59 +, wrote: > I have tested 2.9-rc4 and the problem still exists there as well. FONNEMANN Mark, on lun. 24 avril 2017 23:43:02 +, wrote: > I just confirmed that the problem exists in 2.9 release using > qemu-system-i386.exe as well.

Re: [Qemu-devel] [PATCH 1/1] slirp: don't zero ti_i since we acccess it later.

2017-04-27 Thread Samuel Thibault
Hello, Thomas Huth, on lun. 24 avril 2017 11:15:56 +0200, wrote: > On 20.04.2017 22:43, Tao Wu wrote: > > The current code looks buggy, we zero ti_i while we access > > ti_dst/ti_src later. Indeed. > > Signed-off-by: Tao Wu > > *mtod(m, struct tcpiphdr *) = *ti;

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-22 Thread Samuel Thibault
Stefan Weil, on ven. 21 avril 2017 21:58:18 +0200, wrote: > Am 17.04.2017 um 00:10 schrieb FONNEMANN Mark: > > I hadn't seen the original report on the list, sorry. There is too much > > traffic on qemu-devel for me to manage to catch these :/ > > > > This problem was fixed by > > e42f869b

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-16 Thread Samuel Thibault
Hello, I hadn't seen the original report on the list, sorry. There is too much traffic on qemu-devel for me to manage to catch these :/ This problem was fixed by e42f869b ("slirp: Make RA build more flexible") and a2f80fdf ("slirp: Send RDNSS in RA only if host has an IPv6 DNS server") which

Re: [Qemu-devel] [PATCH v2 5/5] slirp: add a fake NC-SI backend

2017-04-13 Thread Samuel Thibault
t; + > > +case NCSI_PKT_CMD_GLS: { > > +rnh->common.length = htons(16); > > +break; > > +} > > + > > +slirp_output(slirp->opaque, ncsi_reply, sizeof(ncsi_reply)); Are we really supposed to send sizeof(ncsi_reply), and not accordingly to the size announced withing the packet? Appart from that, Acked-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> Samuel

Re: [Qemu-devel] [PATCH for 2.10] slirp/smb: Replace constant strings by glib string

2017-04-08 Thread Samuel Thibault
Hello, Applied to my tree, thanks! Samuel

Re: [Qemu-devel] [PATCH v2 1/1] slirp: add SOCKS5 support

2017-04-02 Thread Samuel Thibault
Hello, Thanks for the patch! Laurent Vivier, on mar. 28 mars 2017 21:07:56 +0200, wrote: > @@ -617,6 +621,10 @@ void slirp_pollfds_poll(GArray *pollfds, int > select_error) > * Check sockets for reading > */ > else if (revents & (G_IO_IN |

Re: [Qemu-devel] [PATCH 14/43] usb: made printf always compile in debug output

2017-04-01 Thread Samuel Thibault
onov <[2]g.danil.a...@gmail.com> Acked-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> > --- >  hw/usb/dev-serial.c  | 17 + >  hw/usb/dev-storage.c | 17 + >  hw/usb/hcd-ehci.h    | 10 +- >  hw/usb/hcd-xhci.c    | 19

[Qemu-devel] [PULL 2/3] slirp: Make RA build more flexible

2017-03-28 Thread Samuel Thibault
Do not hardcode the RA size at all, use a pl_size variable which accounts the accumulated size, and fill rip->ip_pl at the end. This will allow to make some blocks optional. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> Reviewed-by: Philippe Mathieu-Daudé <f4.

[Qemu-devel] [PULL 1/3] slirp: fix compilation errors with DEBUG set

2017-03-28 Thread Samuel Thibault
Philippe Mathieu-Daudé <f4...@amsat.org> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/slirp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slirp/slirp.c b/slirp/slirp.c index 60539de7a3..5a94b06f5e 100644 --- a/slirp/slirp.c +++ b/slirp/

[Qemu-devel] [PULL 3/3] slirp: Send RDNSS in RA only if host has an IPv6 DNS server

2017-03-28 Thread Samuel Thibault
Previously we would always send an RDNSS option in the RA, making the guest try to resolve DNS through IPv6, even if the host does not actually have and IPv6 DNS server available. This makes the RDNSS option enabled only when an IPv6 DNS server is available. Signed-off-by: Samuel Thibault

[Qemu-devel] [PULL 0/3] slirp updates

2017-03-28 Thread Samuel Thibault
The following changes since commit df9046363220e57d45818312759b954c033c58ab: Update version for v2.9.0-rc2 release (2017-03-28 19:11:16 +0100) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault for you to fetch changes up

Re: [Qemu-devel] [PATCH 2/2] slirp: Send RDNSS in RA only if host has an IPv6 DNS server

2017-03-27 Thread Samuel Thibault
Hello, Philippe Mathieu-Daudé, on lun. 27 mars 2017 11:56:00 -0300, wrote: > Why don't declare at function begining and remove this { } ? Oh, right, now I can. While working on the code I still had ifdef WIN32, so it'd lead to an unused variable warning. But now that the ifdef is gone, we can

[Qemu-devel] [PATCH 1/2] slirp: Make RA build more flexible

2017-03-26 Thread Samuel Thibault
Do not hardcode the RA size at all, use a pl_size variable which accounts the accumulated size, and fill rip->ip_pl at the end. This will allow to make some blocks optional. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/ip6_icmp.c | 24 +--

[Qemu-devel] [PATCH 0/2] Fix spurious RDNSS announce

2017-03-26 Thread Samuel Thibault
Hello, These two patches fix sending the IPv6 RDNSS announce only when it can actually work, fixing the bug reported by Cole Robinson <crobi...@redhat.com>. Could somebody review them before I can send a pull update? Samuel Thibault (2): slirp: Make RA build more flexible slirp: Send

[Qemu-devel] [PATCH 2/2] slirp: Send RDNSS in RA only if host has an IPv6 DNS server

2017-03-26 Thread Samuel Thibault
Previously we would always send an RDNSS option in the RA, making the guest try to resolve DNS through IPv6, even if the host does not actually have and IPv6 DNS server available. This makes the RDNSS option enabled only when an IPv6 DNS server is available. Signed-off-by: Samuel Thibault

Re: [Qemu-devel] slirp + ipxe + ipv6 dns issue

2017-03-26 Thread Samuel Thibault
Hello, Cole Robinson, on ven. 24 mars 2017 21:17:43 -0400, wrote: > I bisected to this commit: > > slirp: Add RDNSS advertisement Mmm, I see. Could you try the attached patch to confirm that it fixes the issue for you too? Samuel diff --git a/slirp/ip6_icmp.c b/slirp/ip6_icmp.c index

Re: [Qemu-devel] [PATCH] slirp: tftp, copy sockaddr_size

2017-03-23 Thread Samuel Thibault
'save_ip' <== Memory access at offset 96 partially underflows > this variable > > The sockaddr_storage pointer is the sockaddr_in6 lhost on the > stack. Copy only the source addr size. > > Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> Reviewed-by: S

Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level

2017-02-28 Thread Samuel Thibault
Dr. David Alan Gilbert, on mar. 28 févr. 2017 17:40:19 +, wrote: > * Samuel Thibault (samuel.thiba...@gnu.org) wrote: > > Dr. David Alan Gilbert, on mar. 28 févr. 2017 17:09:26 +, wrote: > > > but only for Linux. > > > > That's what I was referring to. >

Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level

2017-02-28 Thread Samuel Thibault
Dr. David Alan Gilbert, on mar. 28 févr. 2017 17:09:26 +, wrote: > but only for Linux. That's what I was referring to. Samuel

Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level

2017-02-28 Thread Samuel Thibault
Dr. David Alan Gilbert, on mar. 28 févr. 2017 17:00:17 +, wrote: > * Samuel Thibault (samuel.thiba...@gnu.org) wrote: > > Dr. David Alan Gilbert, on mar. 28 févr. 2017 16:54:46 +, wrote: > > > I'm thinking one way to do it without changing the version would > >

Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level

2017-02-28 Thread Samuel Thibault
Dr. David Alan Gilbert, on mar. 28 févr. 2017 16:54:46 +, wrote: > I'm thinking one way to do it without changing the version would > be to use the existing value for IPv4, and on reading allow any other > value for IPv6 (or just the ones we know about); that would make > it inwards migration

Re: [Qemu-devel] [PATCH] blk: Add discard=sparse mode

2017-02-27 Thread Samuel Thibault
Hello, Max Reitz, on lun. 27 févr. 2017 17:12:47 +0100, wrote: > > #ifdef CONFIG_FALLOCATE_PUNCH_HOLE > > -if (s->has_discard && s->has_fallocate) { > > +if (s->has_discard && (s->has_fallocate || open_flags & > > BDRV_O_SPARSE)) { > > s->has_fallocate has a meaning. I wouldn't try to

[Qemu-devel] [PATCH] blk: Add discard=sparse mode

2017-02-26 Thread Samuel Thibault
which does this, by disabling the fallocate call. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> diff --git a/block.c b/block.c index b663204f3f..e9cd83210a 100644 --- a/block.c +++ b/block.c @@ -665,12 +665,14 @@ static void bdrv_join_options(BlockDriverState *bs, QDict *o

Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level

2017-02-26 Thread Samuel Thibault
Samuel Thibault, on dim. 26 févr. 2017 21:34:27 +0100, wrote: > since we'll want to change the size of the field Ah, no, sorry, it was forced to be 16bit, so at least the size is fine. But I guess we don't want to change the values to have cross-OS compatibility without changing the vers

Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level

2017-02-26 Thread Samuel Thibault
Hello, Dr. David Alan Gilbert, on jeu. 23 févr. 2017 11:40:45 +, wrote: > * Daniel P. Berrange (berra...@redhat.com) wrote: > > IOW if we transmit this data on the wire, we've effectively said that > > our migration data format is *not* portable across different host OS > > platforms. At that

[Qemu-devel] [PULL 1/5] slirp: VMState conversion; tcpcb

2017-02-26 Thread Samuel Thibault
n Gilbert <dgilb...@redhat.com> Reviewed-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> Reviewed-by: Juan Quintela <quint...@redhat.com> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/slirp.c | 149 --

[Qemu-devel] [PULL 5/5] slirp: VMStatify remaining except for loop

2017-02-26 Thread Samuel Thibault
From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> This converts the remaining components, except for the top level loop, to VMState. Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com> Reviewed-by: Juan Quintela <quint...@redhat.com> Signed-off-by: Samuel T

[Qemu-devel] [PULL 4/5] slirp: VMStatify socket level

2017-02-26 Thread Samuel Thibault
vid Alan Gilbert <dgilb...@redhat.com> Reviewed-by: Juan Quintela <quint...@redhat.com> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/slirp.c | 170 ++--- slirp/socket.h | 6 +- 2 files changed, 93 in

[Qemu-devel] [PULL 2/5] slirp: VMStatify sbuf

2017-02-26 Thread Samuel Thibault
iewed-by: David Gibson <da...@gibson.dropbear.id.au> Reviewed-by: Juan Quintela <quint...@redhat.com> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/sbuf.h | 4 +- slirp/slirp.c | 116 ++ 2 files

[Qemu-devel] [PULL 3/5] slirp: Common lhost/fhost union

2017-02-26 Thread Samuel Thibault
d-by: Philippe Mathieu-Daudé <f4...@amsat.org> Reviewed-by: Juan Quintela <quint...@redhat.com> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/socket.h | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/slirp/so

[Qemu-devel] [PULL 0/5] slirp updates

2017-02-26 Thread Samuel Thibault
The following changes since commit 685783c5b69c83c942d1fc21679311eeb8f79ab9: Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging (2017-02-26 16:38:40 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel

[Qemu-devel] [PULL 2/3] slirp: Convert mbufs to use g_malloc() and g_free()

2017-02-26 Thread Samuel Thibault
ed-off-by: Peter Maydell <peter.mayd...@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/mbuf.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --gi

[Qemu-devel] [PULL 0/3] slirp updates

2017-02-26 Thread Samuel Thibault
The following changes since commit 6528a4c1f20c1ba5a22ab84bec6788a574ac04c8: Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (2017-02-26 11:47:00 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel

[Qemu-devel] [PULL 1/3] slirp: Check qemu_socket() return value in udp_listen()

2017-02-26 Thread Samuel Thibault
l fail; but Coverity complains (CID 1005723). Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- slirp/udp.c | 4 1 file changed, 4 insertions(+) diff --g

[Qemu-devel] [PULL 3/3] slirp: tcp_listen(): Don't try to close() an fd we never opened

2017-02-26 Thread Samuel Thibault
to use, because we need closesocket() to do the right thing on Windows. Change to using the right function and only calling it if needed. Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> Signed-off-by: Samuel Thibault <samuel.

Re: [Qemu-devel] libslirp and QEMU slirp

2017-02-08 Thread Samuel Thibault
Hello, Stefan Hajnoczi, on Mon 06 Feb 2017 11:55:05 +, wrote: > I'm proposing this topic for discussion because there might be common > ground for Samuel from QEMU and the VDE folks to collaborate. > > Samuel: Should QEMU join forces with libslirp? Well, there are not that many forces from

[Qemu-devel] [PATCH] Drop duplicate display option documentation

2017-01-15 Thread Samuel Thibault
The curses and none possibilities are already documented on a separate line, so documenting it on the sdl line was both unneeded and confusing. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> diff --git a/qemu-options.hx b/qemu-options.hx index c534a2f7f9..9c81d3752d

Re: [Qemu-devel] [PULL v2 05/11] sdl2: set window ID

2017-01-12 Thread Samuel Thibault
Hello, Gerd Hoffmann, on Thu 12 Jan 2017 16:56:49 +0100, wrote: > On Do, 2017-01-12 at 16:10 +0100, Stefan Weil wrote: > > This commit breaks builds for Windows. See below for details. > > > Windows does not use X11. gcc fails: > > > > CC ui/sdl2.o > > /qemu/ui/sdl2.c: In function

[Qemu-devel] [PATCH 2/3] console: move window ID code from baum to sdl

2016-12-20 Thread Samuel Thibault
This moves the SDL bits for window ID from the baum driver to SDL, as well as fixing the build for non-X11. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- Difference from v3: Use qemu_console_lookup_by_index and qemu_console_is_graphic to access the console --- ba

[Qemu-devel] [PATCH 3/3] sdl2: set window ID

2016-12-20 Thread Samuel Thibault
This uses the console API to record the window ID of the SDL2 windows. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- ui/sdl2.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 30d2a3c35d..9a79b17b92 100644 --- a/ui/sdl2.c +++ b/ui/

[Qemu-devel] [PATCH 1/3] console: add API to get underlying gui window ID

2016-12-20 Thread Samuel Thibault
This adds two console functions, qemu_console_set_window_id and qemu_graphic_console_get_window_id, to let graphical backend record the window id in the QemuConsole structure, and let the baum driver read it. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- Difference f

[Qemu-devel] [PATCHv4 0/3] Move getting XWindow ID from baum driver to graphical backend

2016-12-20 Thread Samuel Thibault
a QemuConsole* parameter instead of an integer index, Samuel Samuel Thibault (3): console: add API to get underlying gui window ID console: move window ID code from baum to sdl sdl2: set window ID backends/baum.c | 31 --- include/ui/console.h | 4 ui/console.c

Re: [Qemu-devel] [PULL 0/2] slirp updates: MIN/MAX, tftp dynamic blocks

2016-12-20 Thread Samuel Thibault
no-re...@patchew.org, on Tue 20 Dec 2016 15:15:43 -0800, wrote: > Your series seems to have some coding style problems. See output below for > more information: > ERROR: suspect code indent for conditional statements (10, 14) > #90: FILE: slirp/tftp.c:393: > + if (blksize > 0) { > +

Re: [Qemu-devel] [PATCH] slirp: support dynamic block size for TFTP transfers

2016-12-20 Thread Samuel Thibault
Hervé Poussineau, on Mon 21 Nov 2016 20:45:49 +0100, wrote: > The blocksize option is defined in RFC 1783. > We now support block sizes between 1 and 1432 bytes, instead of 512 only. > > Signed-off-by: Hervé Poussineau I fixed a couple of trivial things and commited to my

[Qemu-devel] [PULL 1/2] slirp, disas: Replace min/max with MIN/MAX macros

2016-12-20 Thread Samuel Thibault
From: Yuval Shaia <yuval.sh...@oracle.com> Signed-off-by: Yuval Shaia <yuval.sh...@oracle.com> Reviewed-by: Markus Armbruster <arm...@redhat.com> Reviewed-by: Laurent Vivier <lviv...@redhat.com> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org>

[Qemu-devel] [PULL 2/2] slirp: support dynamic block size for TFTP transfers

2016-12-20 Thread Samuel Thibault
From: Hervé Poussineau <hpous...@reactos.org> The blocksize option is defined in RFC 1783 and RFC 2348. We now support block sizes between 1 and 1428 bytes, instead of 512 only. Signed-off-by: Hervé Poussineau <hpous...@reactos.org> Signed-off-by: Samuel Thibault <samuel.thiba.

[Qemu-devel] [PULL 0/2] slirp updates: MIN/MAX, tftp dynamic blocks

2016-12-20 Thread Samuel Thibault
The following changes since commit 82ecffa8c050bf5bbc13329e9b65eac1caa5b55c: Open 2.9 development tree (2016-12-20 16:20:16 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault for you to fetch changes up

Re: [Qemu-devel] [PATCH v2] slirp, disas: Replace min/max with MIN/MAX macros

2016-12-20 Thread Samuel Thibault
I have applied it to my tree, thanks! Samuel

Re: [Qemu-devel] [PATCH v2 4/5] slirp: VMStatify socket level

2016-11-28 Thread Samuel Thibault
Hello, Dr. David Alan Gilbert, on Mon 28 Nov 2016 09:08:16 +, wrote: > Hmm, I don't really know IPv6 but I'm thinking this code will become > something like > the following (says he not knowing whether a scope-id or a flowinfo > is something that needs migrating) (untested): > > > static

Re: [Qemu-devel] [PATCH] cutils: Define min and max marcos

2016-11-27 Thread Samuel Thibault
Yuval Shaia, on Mon 28 Nov 2016 00:18:26 +0200, wrote: > On Sun, Nov 27, 2016 at 03:10:04PM +0100, Samuel Thibault wrote: > > Yuval Shaia, on Fri 25 Nov 2016 12:31:26 +0200, wrote: > > > -#ifndef _WIN32 > > > -#define min(x,y) ((x) < (y) ? (x) : (y)) > > >

Re: [Qemu-devel] [PATCH v2 4/5] slirp: VMStatify socket level

2016-11-27 Thread Samuel Thibault
Samuel Thibault, on Sun 27 Nov 2016 16:13:46 +0100, wrote: > Dr. David Alan Gilbert (git), on Wed 23 Nov 2016 18:52:57 +, wrote: > > +static const VMStateDescription vmstate_slirp_socket_addr = { > > +.name = "slirp-socket-addr", > > +.version_id = 4, &

Re: [Qemu-devel] [PATCH v2 4/5] slirp: VMStatify socket level

2016-11-27 Thread Samuel Thibault
Hello, Dr. David Alan Gilbert (git), on Wed 23 Nov 2016 18:52:57 +, wrote: > +static const VMStateDescription vmstate_slirp_socket_addr = { > +.name = "slirp-socket-addr", > +.version_id = 4, > +.fields = (VMStateField[]) { > +VMSTATE_UINT16(ss.ss_family, union

Re: [Qemu-devel] [PATCH] cutils: Define min and max marcos

2016-11-27 Thread Samuel Thibault
Hello, Yuval Shaia, on Fri 25 Nov 2016 12:31:26 +0200, wrote: > -#ifndef _WIN32 > -#define min(x,y) ((x) < (y) ? (x) : (y)) > -#define max(x,y) ((x) > (y) ? (x) : (y)) > -#endif This has protection against _WIN32, I guess that was on purpose. Perhaps qemu should avoid risking a clash with

Re: [Qemu-devel] [v2] tftp: fake support for netascii protocol

2016-11-21 Thread Samuel Thibault
Stefan Hajnoczi, on Mon 21 Nov 2016 14:46:16 +, wrote: > On Sun, Nov 20, 2016 at 09:41:36AM +0100, Vincent Bernat wrote: > > From: Vincent Bernat > > > > Some network equipments are requesting a file using the netascii > > protocol and this is not configurable. Currently,

[Qemu-devel] [PULL] tftp: fake support for netascii protocol

2016-11-20 Thread Samuel Thibault
uested transformation (LF -> CR,LF) as it would be far more complex. The current implementation is good enough. A user has always the choice to preencode the served file correctly. Signed-off-by: Vincent Bernat <vinc...@bernat.im> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-ly

[Qemu-devel] [PULL] tftp: fake support for netascii protocol

2016-11-20 Thread Samuel Thibault
The following changes since commit b0bcc86d2a87456f5a276f941dc775b265b309cf: Update version for v2.8.0-rc0 release (2016-11-15 20:55:12 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault for you to fetch changes up

Re: [Qemu-devel] [PULL] tftp: fake support for netascii protocol

2016-11-19 Thread Samuel Thibault
Vincent Bernat, on Sat 19 Nov 2016 09:03:08 +0100, wrote: > ❦ 19 novembre 2016 08:32 +0100, Thomas Huth  : > > >> Some network equipments are requesting a file using the netascii > >> protocol and this is not configurable. Currently, qemu's tftpd only > >> supports the octet

Re: [Qemu-devel] [PATCH for-2.8] curses: Fix compiler warnings (Mingw-w64 redefinition of macro KEY_EVENT)

2016-11-19 Thread Samuel Thibault
es.h in ui/curses.c is not needed > and was removed. > > Those two modifications fix the redefinition warnings. > > Signed-off-by: Stefan Weil <s...@weilnetz.de> Acked-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> > --- > include/ui/console.h | 3 +++ >

Re: [Qemu-devel] [PATCH] tftp: fake support for netascii protocol

2016-11-18 Thread Samuel Thibault
Hello, Vincent Bernat, on Thu 17 Nov 2016 13:22:32 +0100, wrote: > ❦ 17 novembre 2016 13:20 +0100, Vincent Bernat  : > > > Some network equipments are requesting a file using the netascii > > protocol and this is not configurable. Currently, qemu's tftpd only > >

[Qemu-devel] [PULL] tftp: fake support for netascii protocol

2016-11-18 Thread Samuel Thibault
uested transformation (LF -> CR,LF) as it would be far more complex. The current implementation is good enough. A user has always the choice to preencode the served file correctly. Signed-off-by: Vincent Bernat <vinc...@bernat.im> Signed-off-by: Samuel Thibault <samuel.thiba...@ens-ly

[Qemu-devel] [PULL] tftp: fake support for netascii protocol

2016-11-18 Thread Samuel Thibault
The following changes since commit b0bcc86d2a87456f5a276f941dc775b265b309cf: Update version for v2.8.0-rc0 release (2016-11-15 20:55:12 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault for you to fetch changes up

[Qemu-devel] [PULL] slirp: Fix access to freed memory

2016-11-14 Thread Samuel Thibault
The following changes since commit 83c83f9a5266ff113060f887f106a47920fa6974: Merge remote-tracking branch 'bonzini/tags/for-upstream' into staging (2016-11-11 12:51:50 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault for you

[Qemu-devel] [PULL] slirp: Fix access to freed memory

2016-11-14 Thread Samuel Thibault
socket any more. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> Tested-by: Brian Candler <b.cand...@pobox.com> Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com> --- slirp/socket.c | 17 + 1 file changed, 17 insertions(+) diff --git a/slirp/socket

Re: [Qemu-devel] [PATCH] slirp: Fix access to freed memory

2016-11-13 Thread Samuel Thibault
Hello, Note: no-re...@patchew.org, on Sun 13 Nov 2016 15:13:47 -0800, wrote: > Your series seems to have some coding style problems. See output below for > more information: > > === OUTPUT BEGIN === > fatal: unrecognized argument: --no-patch > Checking PATCH 1/1: ... > ERROR: suspect code

[Qemu-devel] [PATCH] slirp: Fix access to freed memory

2016-11-13 Thread Samuel Thibault
socket any more. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> Tested-by: Brian Candler <b.cand...@pobox.com> --- slirp/socket.c | 17 + 1 file changed, 17 insertions(+) diff --git a/slirp/socket.c b/slirp/socket.c index 280050a..6c18971 100644 --- a

Re: [Qemu-devel] Crashing in tcp_close

2016-11-12 Thread Samuel Thibault
Hello, Brian Candler, on Sat 12 Nov 2016 09:33:55 +, wrote: > On 11/11/2016 22:09, Samuel Thibault wrote: > >Ooh, I see. Now it's obvious, now that it's not coming from the tcb > >loop:) Could you try the attached patch? > > It looks like it now goes into an infinite l

Re: [Qemu-devel] Crashing in tcp_close

2016-11-11 Thread Samuel Thibault
Brian Candler, on Fri 11 Nov 2016 20:53:12 +, wrote: > On 11/11/2016 16:17, Samuel Thibault wrote: > >Could you increase the value given to valgrind's --num-callers= so we > >can make sure the context of this call? > > OK: re-run with --num-callers=250. It took a

Re: [Qemu-devel] Crashing in tcp_close

2016-11-11 Thread Samuel Thibault
Hello, Brian Candler, on Fri 11 Nov 2016 16:02:44 +, wrote: > Aha!! Looking carefully at valgrind output, I see some definite cases of > use-after-free in tcp_output. Does the info below help? Ok, that's interesting. I however still don't see how that could happen :) > ==18350== Invalid

[Qemu-devel] [PATCH] Fix cursesw detection

2016-11-09 Thread Samuel Thibault
of e.g. the WACS_DEGREE macro. We also want to stop at the first curses_inc_list configuration which works, and make sure to set IFS to : at each new loop. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> Tested-by: Cornelia Huck <cornelia.h...@de.ibm.com> --- configure |

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
Sergey Smolov, on Wed 09 Nov 2016 13:15:18 +0300, wrote: > Is it planned to publish this patch into master? Yes. Samuel

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
hor: Samuel Thibault <samuel.thiba...@ens-lyon.org> Date: Tue Nov 8 20:57:27 2016 +0100 Fix cursesw detection On systems which do not provide ncursesw.pc and whose /usr/include/curses.h does not include wide support, we should not only try with no -I, i.e. /usr/include,

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
Hello, Cornelia Huck, on Wed 09 Nov 2016 10:12:36 +0100, wrote: > On Wed, 9 Nov 2016 10:04:02 +0100 > Samuel Thibault <samuel.thiba...@gnu.org> wrote: > > Please post config.log so we can have a clue about what is going > > wrong. All these error messages are meant

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
Hello, Cornelia Huck, on Wed 09 Nov 2016 09:58:59 +0100, wrote: > On Tue, 8 Nov 2016 21:10:19 +0100 > Samuel Thibault <samuel.thiba...@gnu.org> wrote: > > Cornelia Huck, on Tue 08 Nov 2016 12:34:49 +0100, wrote: > > “ > > configure test passed without -

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-08 Thread Samuel Thibault
seems like a good > idea, but I don't think it's related to this issue. Actually it is: in your case it's the second config which will work, the third one will fail. Not breaking would mean we keep the failing one. Samuel commit 4c5e78e8843fa919f2601d8e44029ed0e711c6d9 Author: Samuel Thibault <samuel.thiba...@e

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-07 Thread Samuel Thibault
Hello, On 7 November 2016 at 13:38, Michal Suchanek wrote: > -curses_inc_list="$($pkg_config --cflags ncursesw 2>/dev/null):" > +curses_inc_list="$($pkg_config --cflags ncursesw > 2>/dev/null)-I/usr/include/ncursesw:" Cornelia Huck, on Mon 07 Nov 2016 17:26:56 +0100,

Re: [Qemu-devel] Crashing in tcp_close

2016-11-06 Thread Samuel Thibault
Hello, Stefan Hajnoczi, on Fri 04 Nov 2016 11:14:19 +, wrote: > CCing slirp maintainers to get attention on this bug Thanks! > > Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. > > 0x76a1bb5b in _int_free (av=0x76d5fb20 , > > p=, have_lock=0) at

Re: [Qemu-devel] slirp: fix ipv6 guest network access with windows host

2016-11-02 Thread Samuel Thibault
les so that the address > passed to connect does not have random data in it. > > Signed-off-by: Bo Hu <[2]b...@google.com> > +    memset(, 0, sizeof(lhost); > +    memset(, 0, sizeof(fhost); There is just a typo: missing closing parenthesis... But apart from that, Reviewed-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> Samuel

Re: [Qemu-devel] [PATCH 4/4] gtk: set window ID

2016-10-31 Thread Samuel Thibault
Samuel Thibault, on Mon 31 Oct 2016 17:00:07 +0100, wrote: > This uses the console API to record the window ID of the GTK windows. Ah, sorry, I let this one through, please ignore it, it'll need rework as discussed in the other thread. Samuel

[Qemu-devel] [PATCH 2/4] console: move window ID code from baum to sdl

2016-10-31 Thread Samuel Thibault
This moves the SDL bits for window ID from the baum driver to SDL, as well as fixing the build for non-X11. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- backends/baum.c | 25 +++-- ui/sdl.c| 25 + 2 files chang

[Qemu-devel] [PATCHv3 0/4] Move getting XWindow ID from baum driver to graphical backend

2016-10-31 Thread Samuel Thibault
, where the window handle needs to be explictly truncated to 32bit (such handles are guaranteed to be 32bit) Samuel Samuel Thibault (4): console: add API to get underlying gui window ID console: move window ID code from baum to sdl sdl2: set window ID gtk: set window ID backends/baum.c

[Qemu-devel] [PATCH 3/4] sdl2: set window ID

2016-10-31 Thread Samuel Thibault
This uses the console API to record the window ID of the SDL2 windows. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- ui/sdl2.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 30d2a3c..b464f16 100644 --- a/ui/sdl2.c +++ b/ui/

[Qemu-devel] [PATCH 1/4] console: add API to get underlying gui window ID

2016-10-31 Thread Samuel Thibault
This adds two console functions, qemu_console_set_window_id and qemu_graphic_console_get_window_id, to let graphical backend record the window id in the QemuConsole structure, and let the baum driver read it. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- include/ui/con

[Qemu-devel] [PATCH 4/4] gtk: set window ID

2016-10-31 Thread Samuel Thibault
This uses the console API to record the window ID of the GTK windows. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- ui/gtk.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index ca737c4..d75f255

Re: [Qemu-devel] [PULL 6/6] curses: Use cursesw instead of curses

2016-10-31 Thread Samuel Thibault
Cornelia Huck, on Mon 31 Oct 2016 14:08:48 +0100, wrote: > On Mon, 31 Oct 2016 15:03:33 +0100 > Samuel Thibault <samuel.thiba...@gnu.org> wrote: > > > Cornelia Huck, on Mon 31 Oct 2016 13:48:01 +0100, wrote: > > > On Mon, 31 Oct 2016 13:39:30 +0100 > > > S

Re: [Qemu-devel] [PULL 6/6] curses: Use cursesw instead of curses

2016-10-31 Thread Samuel Thibault
Cornelia Huck, on Mon 31 Oct 2016 13:48:01 +0100, wrote: > On Mon, 31 Oct 2016 13:39:30 +0100 > Samuel Thibault <samuel.thiba...@gnu.org> wrote: > > > Cornelia Huck, on Mon 31 Oct 2016 13:08:06 +0100, wrote: > > > You mean in configure, right? Including cursesw.h

Re: [Qemu-devel] [PULL 6/6] curses: Use cursesw instead of curses

2016-10-31 Thread Samuel Thibault
Cornelia Huck, on Mon 31 Oct 2016 13:08:06 +0100, wrote: > You mean in configure, right? Including cursesw.h in the test program > gets configure going again. Could you try the attached patch which fixes both configure and ui/curses.c? Thanks, Samuel diff --git a/configure b/configure index

Re: [Qemu-devel] [PULL 6/6] curses: Use cursesw instead of curses

2016-10-31 Thread Samuel Thibault
Cornelia Huck, on Mon 31 Oct 2016 13:08:06 +0100, wrote: > On Mon, 31 Oct 2016 13:01:59 +0100 > Samuel Thibault <samuel.thiba...@gnu.org> wrote: > > > Cornelia Huck, on Mon 31 Oct 2016 12:45:30 +0100, wrote: > > > config-temp/qemu-conf.c:9:3: warning: im

Re: [Qemu-devel] [PULL 6/6] curses: Use cursesw instead of curses

2016-10-31 Thread Samuel Thibault
Samuel Thibault, on Mon 31 Oct 2016 13:01:59 +0100, wrote: > Cornelia Huck, on Mon 31 Oct 2016 12:45:30 +0100, wrote: > > > From: Samuel Thibault <samuel.thiba...@ens-lyon.org> > > > > > > Use ncursesw package instead of curses on non-mingw, and check a few >

Re: [Qemu-devel] [PULL 6/6] curses: Use cursesw instead of curses

2016-10-31 Thread Samuel Thibault
Cornelia Huck, on Mon 31 Oct 2016 12:45:30 +0100, wrote: > > From: Samuel Thibault <samuel.thiba...@ens-lyon.org> > > > > Use ncursesw package instead of curses on non-mingw, and check a few > > functions. > > Also take cflags from pkg-config, since cursesw h

Re: [Qemu-devel] [PATCH 3/3] Move getting XWindow ID from baum driver to graphical backend

2016-10-30 Thread Samuel Thibault
Gerd Hoffmann, on Wed 26 Oct 2016 12:17:44 +0200, wrote: > > +/* All consoles share the same window */ > > No. That is the default setup, but try "View / Detach tab". Window ID > changing at runtime ... So we would need to make baum register for notification of Window ID change. It

[Qemu-devel] [PATCHv2 0/3] Move getting XWindow ID from baum driver to graphical backend

2016-10-30 Thread Samuel Thibault
Hello, This is a respin of moving getting XWindow ID from baum to actual graphical backends. This only contains the new API, the move of existing code to the new API, and the addition of support for SDL2. Gtk will need more discussion and work. Samuel Samuel Thibault (3): console: add API

[Qemu-devel] [PATCH 2/3] console: move window ID code from baum to sdl

2016-10-30 Thread Samuel Thibault
This moves the SDL bits for window ID from the baum driver to SDL, as well as fixing the build for non-X11. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- backends/baum.c | 25 +++-- ui/sdl.c| 25 + 2 files chang

[Qemu-devel] [PATCH 1/3] console: add API to get underlying gui window ID

2016-10-30 Thread Samuel Thibault
This adds two console functions, qemu_console_set_window_id and qemu_graphic_console_get_window_id, to let graphical backend record the window id in the QemuConsole structure, and let the baum driver read it. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- include/ui/con

[Qemu-devel] [PATCH 3/3] sdl2: set window ID

2016-10-30 Thread Samuel Thibault
This uses the console API to record the window ID of the SDL2 windows. Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org> --- ui/sdl2.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 30d2a3c..b464f16 100644 --- a/ui/sdl2.c +++ b/ui/

<    5   6   7   8   9   10   11   12   13   14   >