[Qemu-devel] [PATCH 2/3] slirp: Handle more than 65535 blocks in TFTP transfers

2011-04-11 Thread Herve Poussineau
From: Herv� Poussineau RFC 1350 does not mention block count-roll over. However, a lot of TFTP servers implement it to be able to transmit big files, so do it also Signed-off-by: Herv� Poussineau --- slirp/tftp.c |9 + slirp/tftp.h |1 + 2 files changed, 6 insertions(+), 4 dele

[Qemu-devel] [PATCH 0/3] slirp: misc fixes

2011-04-11 Thread Herve Poussineau
These patches contain some fixes for the internal TFTP server. With these patches, MS Windows PE can be booted via PXE. slirp/tftp.c | 69 + slirp/tftp.h |2 + 2 files changed, 51 insertions(+), 20 deletions(-)

[Qemu-devel] [PATCH 3/3] slirp: improve TFTP performance

2011-04-11 Thread Herve Poussineau
From: Herv� Poussineau When transfering a file, keep it open during the whole transfer, instead of opening/closing it for each block. Signed-off-by: Herv� Poussineau --- slirp/tftp.c | 20 slirp/tftp.h |1 + 2 files changed, 13 insertions(+), 8 deletions(-) diff --g

[Qemu-devel] [PATCH 1/3] slirp: Implement TFTP Blocksize option

2011-04-11 Thread Herve Poussineau
From: Herv� Poussineau This option is described in RFC 1783. As this is only an optional field, we may ignore it in some situations and handle it in some others. Here, if client requests a block size bigger than the block size we emit (512 bytes), accept the option with a value of 512 Signed-off

[Qemu-devel] [PATCH] WIN32: Add missing include for 'struct timeval', used in vnc.h

2011-03-06 Thread Herve Poussineau
From: Herv� Poussineau Signed-off-by: Herv� Poussineau --- qemu-common.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-common.h b/qemu-common.h index 40dad52..18e648f 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -33,6 +33,7 @@ typedef struct DeviceState Dev

[Qemu-devel] [PATCH] win32: pair qemu_memalign() with qemu_vfree()

2010-01-24 Thread Herve Poussineau
Win32 suffers from a very big memory leak when dealing with SCSI devices. Each read/write request allocates memory with qemu_memalign (ie VirtualAlloc) but frees it with qemu_free (ie free). Pair all qemu_memalign() calls with qemu_vfree() to prevent such leaks. Signed-off-by: Herve Poussineau

[Qemu-devel] [PATCH] win32: use PRId64 instead of %lld

2010-01-24 Thread Herve Poussineau
Replace %lld occurrences by PRId64. Incidentally, this fixes use of curl on Windows, and prevents an assert when closing Qemu. Signed-off-by: Herve Poussineau --- block/curl.c | 10 +- block/qcow2.c |2 +- hw/vga.c |2 +- json-lexer.c

[Qemu-devel] [PATCH] win32/sdl: Fix toggle full screen

2010-01-24 Thread Herve Poussineau
Toggle full screen on Win32/SDL 1.2.13 was broken by commit c18a2c360e3100bbd71162cf922dcd8c429a8b71. Re-add the call to do_sdl_resize() which was removed in this revision Signed-off-by: Herve Poussineau --- sdl.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sdl.c b