[Qemu-devel] Re: KVM call agenda for August 31

2010-08-30 Thread Avi Kivity
On 08/31/2010 12:54 AM, Juan Quintela wrote: Please send in any agenda items you are interested in covering. zero (dot|point) thirteen schedule -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.

[Qemu-devel] RE: [PATCH] hw/ivshmem.c don't check for negative values on unsigned data types

2010-08-30 Thread Hao, Xudong
jes.soren...@redhat.com wrote: > From: Jes Sorensen > > There is no need to check for dest < 0 or vector >= 0 as both are > uint16_t. > > This should fix problems with broken build with aggressive compiler > flags. Reported by Xudong Hao > > Signed-off-by: Jes Sorensen > --- > hw/ivshmem.c |

Re: [Qemu-devel] Re: [PATCH 0/5] RFC: distinguish warm reset from cold reset.

2010-08-30 Thread Gleb Natapov
On Mon, Aug 30, 2010 at 07:07:11PM +, Blue Swirl wrote: > On Mon, Aug 30, 2010 at 11:19 AM, Gleb Natapov wrote: > > On Mon, Aug 30, 2010 at 05:35:20PM +0900, Isaku Yamahata wrote: > >> On Mon, Aug 30, 2010 at 10:59:19AM +0300, Avi Kivity wrote: > >> >  On 08/30/2010 10:49 AM, Isaku Yamahata wr

[Qemu-devel] Re: [PATCH] Disable virtio-balloon memory stats interface

2010-08-30 Thread Amit Shah
On (Mon) Aug 30 2010 [14:17:51], Adam Litke wrote: > The addition of memory stats reporting to the virtio balloon causes > the 'info balloon' command to become asynchronous. This is a regression > because management tools that consume this command were not designed to > handle lost or delayed resp

[Qemu-devel] Qemu as Instruction Set Simulator without any OS

2010-08-30 Thread Anitha Boyapati
Hi All, Having gone through the documentation (developers) and source code, I couple of questions: 1. For a microcontroller which doesn't have any OS support, can QEMU be ported without any OS ? 2. Can QEMU be used as a simple instruction set simulator with probably gdb support for remote debuggi

Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset.

2010-08-30 Thread Isaku Yamahata
On Mon, Aug 30, 2010 at 07:59:22AM -0500, Anthony Liguori wrote: > On 08/30/2010 02:49 AM, Isaku Yamahata wrote: >> Distinguish warm reset from cold reset by introducing >> cold/warm reset helper function instead of single reset routines. >> >> Signed-off-by: Isaku Yamahata >> --- >> hw/hw.h |

[Qemu-devel] Re: KVM call agenda for August 31

2010-08-30 Thread Anthony Liguori
On 08/30/2010 04:54 PM, Juan Quintela wrote: Please send in any agenda items you are interested in covering. - QMP/QPI Regards, Anthony Liguori thanks, Juan. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majo

[Qemu-devel] KVM call agenda for August 31

2010-08-30 Thread Juan Quintela
Please send in any agenda items you are interested in covering. thanks, Juan.

[Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 8:42 PM, Blue Swirl wrote: > On Mon, Aug 30, 2010 at 8:10 PM, malc wrote: >> On Mon, 30 Aug 2010, Blue Swirl wrote: >> >>> On Mon, Aug 30, 2010 at 1:27 PM, Stefan Hajnoczi >>> wrote: >>> > This patch introduces the trace-events file where trace events can be >>> > declare

[Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 8:10 PM, malc wrote: > On Mon, 30 Aug 2010, Blue Swirl wrote: > >> On Mon, Aug 30, 2010 at 1:27 PM, Stefan Hajnoczi >> wrote: >> > This patch introduces the trace-events file where trace events can be >> > declared like so: >> > >> > qemu_malloc(size_t size) "size %zu" >>

[Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-30 Thread malc
On Mon, 30 Aug 2010, Blue Swirl wrote: > On Mon, Aug 30, 2010 at 1:27 PM, Stefan Hajnoczi > wrote: > > This patch introduces the trace-events file where trace events can be > > declared like so: > > > > qemu_malloc(size_t size) "size %zu" > > qemu_free(void *ptr) "ptr %p" > > > > These trace even

Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset.

2010-08-30 Thread Anthony Liguori
On 08/30/2010 02:36 PM, Blue Swirl wrote: On Mon, Aug 30, 2010 at 7:25 PM, Anthony Liguori wrote: On 08/30/2010 02:16 PM, Blue Swirl wrote: On Mon, Aug 30, 2010 at 1:03 PM, Anthony Liguori wrote: On 08/30/2010 03:50 AM, Paolo Bonzini wrote: On 08/30/2010 09:49

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Richard Henderson
On 08/30/2010 08:48 AM, Anthony Liguori wrote: > MyDeviceInfo device_infos[] = { {"foo", 0, 2}, {"bar", 0, 1}, {} /* > or { 0 } */ }; > > This is such a pervasive idiom that there's simply no way that GCC > can possibly try to warn against this. GCC only warns for this if you explicitly ask for i

Re: [Qemu-devel] [PATCH v4 00/10] initial spice support.

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 7:32 PM, Gerd Hoffmann wrote: > On 08/30/10 21:02, Anthony Liguori wrote: >> >> On 08/30/2010 01:58 PM, Blue Swirl wrote: >>> >>> Wilful misconduct? May I ask if there are other things that you don't >>> agree with and you are covertly working against? > > I'm just not used

[Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 1:27 PM, Stefan Hajnoczi wrote: > This patch introduces the trace-events file where trace events can be > declared like so: > > qemu_malloc(size_t size) "size %zu" > qemu_free(void *ptr) "ptr %p" > > These trace event declarations are processed by a new tool called > tracet

Re: [Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature()

2010-08-30 Thread Richard Henderson
On 08/30/2010 11:27 AM, Anthony Liguori wrote: > On 08/30/2010 01:19 PM, Jes Sorensen wrote: >> >> I totally agree on this. The problem with having such arguments >> passed in is that you never know if they were used in the past and >> it was forgotten when the code using them was removed, or if i

Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset.

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 7:25 PM, Anthony Liguori wrote: > On 08/30/2010 02:16 PM, Blue Swirl wrote: >> >> On Mon, Aug 30, 2010 at 1:03 PM, Anthony Liguori >>  wrote: >> >>> >>> On 08/30/2010 03:50 AM, Paolo Bonzini wrote: >>> On 08/30/2010 09:49 AM, Isaku Yamahata wrote: > >

Re: [Qemu-devel] [PATCH v4 00/10] initial spice support.

2010-08-30 Thread Gerd Hoffmann
On 08/30/10 21:02, Anthony Liguori wrote: On 08/30/2010 01:58 PM, Blue Swirl wrote: Wilful misconduct? May I ask if there are other things that you don't agree with and you are covertly working against? I'm just not used to it. Changing habits takes time. I think I became better meanwhile o

Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset.

2010-08-30 Thread Anthony Liguori
On 08/30/2010 02:16 PM, Blue Swirl wrote: On Mon, Aug 30, 2010 at 1:03 PM, Anthony Liguori wrote: On 08/30/2010 03:50 AM, Paolo Bonzini wrote: On 08/30/2010 09:49 AM, Isaku Yamahata wrote: +/* those two functions are obsoleted by cold/warm reset API. */ [qemu_register_reset/

Re: [Qemu-devel] [PATCH 00/14] gcc extra warning fixes

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 3:35 PM, wrote: > From: Jes Sorensen > > Hi, > > I started building QEMU with some more aggressive error flags to see > what dropped out. I started fixing up some of the cases, removing > unused arguments to functions, comparisons of unsigned types against > negative valu

[Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-08-30 Thread Adam Litke
Just got back from vacation and saw this thread. I agree with Anthony that the best thing to do is disable the memory stats interface for 0.13. We need to fix the underlying problems in qemu with respect to asynchronous commands first, then we can look at re-enabling the feature. The virtio feat

Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset.

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 1:03 PM, Anthony Liguori wrote: > On 08/30/2010 03:50 AM, Paolo Bonzini wrote: >> >> On 08/30/2010 09:49 AM, Isaku Yamahata wrote: >>> >>> +/* those two functions are obsoleted by cold/warm reset API. */ >>> [qemu_register_reset/qemu_unregister_reset] >> >> Are they? > > Ye

Re: [Qemu-devel] Re: [PATCH 0/5] RFC: distinguish warm reset from cold reset.

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 11:19 AM, Gleb Natapov wrote: > On Mon, Aug 30, 2010 at 05:35:20PM +0900, Isaku Yamahata wrote: >> On Mon, Aug 30, 2010 at 10:59:19AM +0300, Avi Kivity wrote: >> >  On 08/30/2010 10:49 AM, Isaku Yamahata wrote: >> >> This patch set distinguish warm reset from cold reset by

Re: [Qemu-devel] [PATCH v4 00/10] initial spice support.

2010-08-30 Thread Anthony Liguori
On 08/30/2010 01:58 PM, Blue Swirl wrote: Wilful misconduct? May I ask if there are other things that you don't agree with and you are covertly working against? :-) Braces should be used. The discussion was about enforcing coding style at commit time and reformatting code. But for the

Re: [Qemu-devel] [PATCH v4 00/10] initial spice support.

2010-08-30 Thread Blue Swirl
On Mon, Aug 30, 2010 at 8:48 AM, Gerd Hoffmann wrote: > On 08/28/10 08:42, Blue Swirl wrote: >> >> On Fri, Aug 27, 2010 at 9:59 AM, Gerd Hoffmann  wrote: >>> >>>  Hi, >>> >>> Here comes v4 of the iniial spice support patch series, hopefully the >>> final version.  It brings just the very basic bit

[Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature()

2010-08-30 Thread Anthony Liguori
On 08/30/2010 01:19 PM, Jes Sorensen wrote: I totally agree on this. The problem with having such arguments passed in is that you never know if they were used in the past and it was forgotten when the code using them was removed, or if it's new code, in which case they do deserve the extra scrut

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Jes Sorensen
On 08/30/10 18:55, Nathan Froyd wrote: > On Mon, Aug 30, 2010 at 10:48:55AM -0500, Anthony Liguori wrote: >> No, this is GCC being stupid. >> >> How else do you terminate a list? IOW: >> >> MyDeviceInfo device_infos[] = { >> {"foo", 0, 2}, >> {"bar", 0, 1}, >> {} /* or { 0 } */ >> }; >> >> T

[Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature()

2010-08-30 Thread Jes Sorensen
On 08/30/10 18:40, Paolo Bonzini wrote: > On 08/30/2010 06:16 PM, Anthony Liguori wrote: >> This is why this type of warning sucks. Passing BlockDriverState is a >> matter of readability because these are roughly methods. Just because >> 'this' isn't used right now, doesn't mean that it should no

[Qemu-devel] [PATCH 14/14] load_multiboot(): get_image_size() returns int

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Do not store return of get_image_size() in a uint32_t as it makes it impossible to detect error returns from get_image_size. Signed-off-by: Jes Sorensen --- hw/multiboot.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/multiboot.c b/hw/multiboot

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Paolo Bonzini
On 08/30/2010 06:29 PM, Anthony Liguori wrote: Arguably, an empty initializer should be special cased, but it isn't. So the warning is for old style initializer lists? I disagree that it's a valid warning. First, {} is ambiguous as it can be an empty list of c99 initializers and an empty list

[Qemu-devel] [STABLE 0.13][PATCH 2/6] virtio-blk: Fix migration of queued requests

2010-08-30 Thread Kevin Wolf
in_sg[].iovec and out_sg[].ioved are pointer to (source) host memory and therefore invalid after migration. When loading the device state we must create a new mapping on the destination host. Signed-off-by: Kevin Wolf (cherry picked from commit b6a4805b55b409134dc712677fdc4f6a8795e965) --- hw/vi

[Qemu-devel] [PATCH 03/14] Fix repeated typo: was "end if list" instead of "end of list"

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-config.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qemu-config.c b/qemu-config.c index 3abe655..1efdbec 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -80,7 +80,7 @@ static QemuOptsList qemu_dri

[Qemu-devel] [PATCH 02/14] Respect return value from nbd_client()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-nbd.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/qemu-nbd.c b/qemu-nbd.c index 9cc8f47..67ce50b 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -417,7 +417,10 @@ int main(int argc, char **argv)

[Qemu-devel] [PATCH 00/14] gcc extra warning fixes v2

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Hi, I started building QEMU with some more aggressive error flags to see what dropped out. I started fixing up some of the cases, removing unused arguments to functions, comparisons of unsigned types against negative values etc. and a few other minor changes to avoid compiler

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Jes Sorensen
On 08/30/10 18:29, Anthony Liguori wrote: > On 08/30/2010 11:18 AM, Paolo Bonzini wrote: >> It falls under the "missing fields in initializer" warning. Arguably, >> an empty initializer should be special cased, but it isn't. > > So the warning is for old style initializer lists? I disagree that

Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread Jes Sorensen
On 08/30/10 18:56, malc wrote: > On Mon, 30 Aug 2010, Anthony Liguori wrote: > >> On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: >>> From: Jes Sorensen >>> diff --git a/linux-aio.c b/linux-aio.c >>> index 68f4b3d..3240996 100644 >>> --- a/linux-aio.c >>> +++ b/linux-aio.c >>> @@ -118,7 +11

[Qemu-devel] [PATCH 08/14] Remove unused argument for qcow2_encrypt_sectors()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/qcow2-cluster.c | 17 - block/qcow2.c | 10 +- block/qcow2.h |7 +++ 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index

[Qemu-devel] [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- linux-aio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-aio.c b/linux-aio.c index 68f4b3d..3240996 100644 --- a/linux-aio.c +++ b/linux-aio.c @@ -118,7 +118,7 @@ static void qemu_laio_completion_cb(void *opaq

[Qemu-devel] [PATCH 06/14] Remove unused argument for encrypt_sectors()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/qcow.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 816103d..c4d8cb3 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -214,9 +214,8 @@ static int qcow_set_key(BlockD

[Qemu-devel] [PATCH] Use signed 16-bit values for ivshmem register writes

2010-08-30 Thread Cam Macdonell
fixes gcc 4.1 warning Signed-off-by: Cam Macdonell --- hw/ivshmem.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index bbb5cba..fa9c684 100644 --- a/hw/ivshmem.c +++ b/hw/ivshmem.c @@ -181,8 +181,8 @@ static void ivshmem_io_writel(void *

[Qemu-devel] [PATCH 07/14] Remove unused argument for get_whole_cluster()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/vmdk.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 2d4ba42..54ad66f 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -437,7 +437,7 @@ static uint64_t get_cluster_offset(Bloc

[Qemu-devel] [STABLE 0.13][PATCH 5/6] vvfat: fat_chksum(): fix access above array bounds

2010-08-30 Thread Kevin Wolf
From: Loïc Minier Signed-off-by: Loïc Minier Signed-off-by: Kevin Wolf (cherry picked from commit 2aa326be0d2039f51192707bdb2fc935d0e87c21) --- block/vvfat.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 6d61c2e..365332a 100644 --

Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread malc
On Mon, 30 Aug 2010, Jes Sorensen wrote: > On 08/30/10 18:56, malc wrote: > > On Mon, 30 Aug 2010, Anthony Liguori wrote: > > > >> On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: > >>> From: Jes Sorensen > >>> diff --git a/linux-aio.c b/linux-aio.c > >>> index 68f4b3d..3240996 100644 > >>>

[Qemu-devel] [PATCH 12/14] size_t is unsigned, change to ssize_t to handle errors from tight_compress_data()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- ui/vnc-enc-tight.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index c4c9c3b..c942bb7 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -905,7 +905,7 @@ stati

Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread Anthony Liguori
On 08/30/2010 12:38 PM, Jes Sorensen wrote: On 08/30/10 18:56, malc wrote: On Mon, 30 Aug 2010, Anthony Liguori wrote: On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen diff --git a/linux-aio.c b/linux-aio.c index 68f4b3d..3240996 100644 --- a/linux-a

[Qemu-devel] [STABLE 0.13][PATCH 3/6] block: Fix image re-open in bdrv_commit

2010-08-30 Thread Kevin Wolf
Arguably we should re-open the backing file with the backing file format and not with the format of the snapshot image. Signed-off-by: Kevin Wolf (cherry picked from commit ee1811965fd15e0b41f8d508b951a8ab826ae3a7) Conflicts: block.c Signed-off-by: Kevin Wolf --- block.c | 13 +

[Qemu-devel] [PATCH 01/14] Remove unused argument for nbd_client()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- nbd.c |4 ++-- nbd.h |2 +- qemu-nbd.c |2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nbd.c b/nbd.c index a9f295f..7049998 100644 --- a/nbd.c +++ b/nbd.c @@ -393,7 +393,7 @@ int nbd_disconnect(int fd

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Anthony Liguori
On 08/30/2010 11:18 AM, Paolo Bonzini wrote: On 08/30/2010 06:15 PM, Anthony Liguori wrote: On 08/30/2010 10:42 AM, Paolo Bonzini wrote: On 08/30/2010 05:35 PM, jes.soren...@redhat.com wrote: - JSONParsingState state = {}; + JSONParsingState state; + memset(&state, 0, sizeof(state)); state.ap

[Qemu-devel] [PATCH 06/10] vvfat: fat_chksum(): fix access above array bounds

2010-08-30 Thread Kevin Wolf
From: Loïc Minier Signed-off-by: Loïc Minier Signed-off-by: Kevin Wolf --- block/vvfat.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 6d61c2e..365332a 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -512,7 +512,7 @@ static inli

[Qemu-devel] [PATCH 09/14] Remove unused arguments for add_aio_request() and free_aio_req()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/sheepdog.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 81aa564..2ef8655 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -394,7 +394,7 @@ s

[Qemu-devel] [PATCH 04/10] sheepdog: remove unnecessary includes

2010-08-30 Thread Kevin Wolf
From: Izumi Tsutsui "qemu_socket.h" includes all necessary files and including without could cause errors on some systems. Signed-off-by: Izumi Tsutsui Signed-off-by: Kevin Wolf --- block/sheepdog.c | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/block/she

[Qemu-devel] Win32 usermode networking ICMP ping.

2010-08-30 Thread Mike Mestnik
Hello, Nagios uses pings as part of it's core functionality and we would like to deploy a demo using qemu for win32 users. The icmp to udp translation causes our software to misbehave. Here is a solution I came up with. You should share racecourses with other projects, coLinux being one.

[Qemu-devel] [PATCH 01/10] virtio: Factor virtqueue_map_sg out

2010-08-30 Thread Kevin Wolf
Separate the mapping of requests to host memory from the descriptor iteration. The next patch will make use of it in a different context. Signed-off-by: Kevin Wolf --- hw/virtio.c | 38 -- hw/virtio.h |3 +++ 2 files changed, 27 insertions(+), 14 deletio

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Avi Kivity
On 08/30/2010 06:53 PM, Jes Sorensen wrote: On 08/30/10 17:48, Anthony Liguori wrote: On 08/30/2010 10:43 AM, Jes Sorensen wrote: Yes it's technically legal. However it's painful when you try to apply more aggressive warning flags looking for real bugs. No, this is GCC being stupid. I would

[Qemu-devel] [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen This keeps the compiler happy when building with -Wextra while effectively generating the same code. Signed-off-by: Jes Sorensen --- qjson.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qjson.c b/qjson.c index e4ee433..f259547 100644 --- a/qjson

[Qemu-devel] [PATCH 08/10] posix-aio-compat: Fix async_conmtext for ioctl

2010-08-30 Thread Kevin Wolf
From: Andrew de Quincey Set the async_context_id field when queuing an async ioctl call Signed-off-by: Andrew de Quincey Signed-off-by: Kevin Wolf --- posix-aio-compat.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index a67f

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread malc
On Mon, 30 Aug 2010, Anthony Liguori wrote: > On 08/30/2010 10:43 AM, Jes Sorensen wrote: > > On 08/30/10 17:39, Anthony Liguori wrote: > > > > > On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: > > > > > > > From: Jes Sorensen > > > > > > > > This keeps the compiler happy when bu

Re: [Qemu-devel] Re: [PATCH 11/14] Remove unused function arguments

2010-08-30 Thread Anthony Liguori
On 08/30/2010 11:24 AM, Paolo Bonzini wrote: On 08/30/2010 05:35 PM, jes.soren...@redhat.com wrote: From: Jes Sorensen I think it's better to leave ctxt in for future extensibility. You can mark it as __attribute__((unused)) to suppress the warning. That seriously ugifies the code IMHO. Re

[Qemu-devel] [PULL 00/10] Block patches

2010-08-30 Thread Kevin Wolf
The following changes since commit 02a89b219039621c940863aa5a9da4fec81a1546: isapc: fix segfault. (2010-08-28 08:50:40 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Andrew de Quincey (1): posix-aio-compat: Fix async_conmtext for ioctl Izumi

[Qemu-devel] Re: [PATCH 11/14] Remove unused function arguments

2010-08-30 Thread Paolo Bonzini
On 08/30/2010 05:35 PM, jes.soren...@redhat.com wrote: From: Jes Sorensen I think it's better to leave ctxt in for future extensibility. You can mark it as __attribute__((unused)) to suppress the warning. Paolo

[Qemu-devel] [STABLE 0.13][PULL 0/6] Block patches for stable-0.13

2010-08-30 Thread Kevin Wolf
The following changes since commit 96638e706cd431528690cf611adcb04e1bc3255d: ide: Avoid canceling IDE DMA (2010-08-03 16:39:54 +0200) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-stable-0.13 Andrew de Quincey (1): posix-aio-compat: Fix async_conmtext for

Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread malc
On Mon, 30 Aug 2010, Anthony Liguori wrote: > On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: > > From: Jes Sorensen > > > > Signed-off-by: Jes Sorensen > > --- > > linux-aio.c |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/linux-aio.c b/linux-aio.

Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread malc
On Mon, 30 Aug 2010, Jes Sorensen wrote: > On 08/30/10 17:43, Anthony Liguori wrote: > > On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: > >> From: Jes Sorensen > >> > >> Signed-off-by: Jes Sorensen > >> --- > >> linux-aio.c |2 +- > >> 1 files changed, 1 insertions(+), 1 deletions(-

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Nathan Froyd
On Mon, Aug 30, 2010 at 10:48:55AM -0500, Anthony Liguori wrote: > No, this is GCC being stupid. > > How else do you terminate a list? IOW: > > MyDeviceInfo device_infos[] = { > {"foo", 0, 2}, > {"bar", 0, 1}, > {} /* or { 0 } */ > }; > > This is such a pervasive idiom that there's simply no

[Qemu-devel] [STABLE 0.13][PATCH 6/6] posix-aio-compat: Fix async_conmtext for ioctl

2010-08-30 Thread Kevin Wolf
From: Andrew de Quincey Set the async_context_id field when queuing an async ioctl call Signed-off-by: Andrew de Quincey Signed-off-by: Kevin Wolf (cherry picked from commit 34cf0081294513bc734896c9051c20ca6c19c3db) --- posix-aio-compat.c |1 + 1 files changed, 1 insertions(+), 0 deletion

[Qemu-devel] Re: Should QMP be RPC to internal C interfaces?

2010-08-30 Thread Luiz Capitulino
On Mon, 30 Aug 2010 10:38:45 -0500 Anthony Liguori wrote: > On 08/30/2010 10:28 AM, Anthony Liguori wrote: > > Having two interfaces guarantees failure. What's the separation > > between internal and external? Is qdev internal or external? > > Let me put it another way, compatibility cannot b

[Qemu-devel] [STABLE 0.13][PATCH 1/6] virtio: Factor virtqueue_map_sg out

2010-08-30 Thread Kevin Wolf
Separate the mapping of requests to host memory from the descriptor iteration. The next patch will make use of it in a different context. Signed-off-by: Kevin Wolf (cherry picked from commit 42fb2e0720511fa1da2f8e751be393f851b71d80) --- hw/virtio.c | 38 --

[Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature()

2010-08-30 Thread Paolo Bonzini
On 08/30/2010 06:16 PM, Anthony Liguori wrote: This is why this type of warning sucks. Passing BlockDriverState is a matter of readability because these are roughly methods. Just because 'this' isn't used right now, doesn't mean that it should not be a method. On the contrary, to me this is a

[Qemu-devel] [STABLE 0.13][PATCH 4/6] qemu-img rebase: Open new backing file read-only

2010-08-30 Thread Kevin Wolf
We never write to a backing file, so opening rw is useless. It just means that you can't rebase on top of a file for which you don't have write permissions. Signed-off-by: Kevin Wolf (cherry picked from commit cdbae85169c384d1641aa1ae86cdeefe16285745) --- qemu-img.c |2 +- 1 files changed, 1

[Qemu-devel] [PATCH 13/14] Change DPRINTF() to do{}while(0) to avoid compiler warning

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- slirp/bootp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/slirp/bootp.c b/slirp/bootp.c index 3e4e881..41460ff 100644 --- a/slirp/bootp.c +++ b/slirp/bootp.c @@ -33,7 +33,7 @@ static const uint8_t rfc1533_cookie[]

[Qemu-devel] [PATCH 11/14] Remove unused function arguments

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- json-parser.c | 39 +++ 1 files changed, 19 insertions(+), 20 deletions(-) diff --git a/json-parser.c b/json-parser.c index 70b9b6f..68ff9c1 100644 --- a/json-parser.c +++ b/json-parser.c @@ -91,7 +91,7 @@

[Qemu-devel] [PATCH 05/10] qemu-img rebase: Open new backing file read-only

2010-08-30 Thread Kevin Wolf
We never write to a backing file, so opening rw is useless. It just means that you can't rebase on top of a file for which you don't have write permissions. Signed-off-by: Kevin Wolf --- qemu-img.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c

[Qemu-devel] [PATCH 09/10] monitor: make 'info snapshots' show only fully available snapshots

2010-08-30 Thread Kevin Wolf
From: Miguel Di Ciurcio Filho The output generated by 'info snapshots' shows only snapshots that exist on the block device that saves the VM state. This output can cause an user to erroneously try to load an snapshot that is not available on all block devices. $ qemu-img snapshot -l xxtest.qcow2

[Qemu-devel] [PATCH 10/10] savevm: Generate a name when run without one

2010-08-30 Thread Kevin Wolf
From: Miguel Di Ciurcio Filho When savevm is run without a name, the name stays blank and the snapshot is saved anyway. The new behavior is when savevm is run without parameters a name will be created automaticaly, so the snapshot is accessible to the user without needing the id when loadvm is r

[Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread Jes Sorensen
On 08/30/10 17:43, Anthony Liguori wrote: > On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: >> From: Jes Sorensen >> >> Signed-off-by: Jes Sorensen >> --- >> linux-aio.c |2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/linux-aio.c b/linux-aio.c >> index 68

[Qemu-devel] [PATCH 02/10] virtio-blk: Fix migration of queued requests

2010-08-30 Thread Kevin Wolf
in_sg[].iovec and out_sg[].ioved are pointer to (source) host memory and therefore invalid after migration. When loading the device state we must create a new mapping on the destination host. Signed-off-by: Kevin Wolf --- hw/virtio-blk.c |5 + 1 files changed, 5 insertions(+), 0 deletion

[Qemu-devel] [PATCH 07/10] nbd: Introduce NBD named exports.

2010-08-30 Thread Kevin Wolf
From: Laurent Vivier This patch allows to connect Qemu using NBD protocol to an nbd-server using named exports. For instance, if on the host "isoserver", in /etc/nbd-server/config, you have: [generic] [debian-500-ppc-netinst] exportname = /ISO/debian-500-powerpc-netinst.iso [Fedora-10-p

[Qemu-devel] [PATCH 05/14] Remove unused argument for check_for_block_signature()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/raw.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/raw.c b/block/raw.c index 61e6748..fc057d0 100644 --- a/block/raw.c +++ b/block/raw.c @@ -12,7 +12,7 @@ static int raw_open(BlockDriverState *bs, int

[Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Anthony Liguori
On 08/30/2010 10:43 AM, Jes Sorensen wrote: On 08/30/10 17:39, Anthony Liguori wrote: On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen This keeps the compiler happy when building with -Wextra while effectively generating the same code. Signed-off-by: Jes Sor

[Qemu-devel] [PATCH 03/10] block: Fix image re-open in bdrv_commit

2010-08-30 Thread Kevin Wolf
Arguably we should re-open the backing file with the backing file format and not with the format of the snapshot image. Signed-off-by: Kevin Wolf --- block.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c index da70f29..a5514e3 100644 --- a

[Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread Anthony Liguori
On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen Signed-off-by: Jes Sorensen --- linux-aio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-aio.c b/linux-aio.c index 68f4b3d..3240996 100644 --- a/linux-aio.c +++ b/linux-aio.c @@ -118,7

[Qemu-devel] Re: Should QMP be RPC to internal C interfaces?

2010-08-30 Thread Anthony Liguori
On 08/30/2010 11:16 AM, Luiz Capitulino wrote: On Mon, 30 Aug 2010 10:38:45 -0500 Anthony Liguori wrote: On 08/30/2010 10:28 AM, Anthony Liguori wrote: Having two interfaces guarantees failure. What's the separation between internal and external? Is qdev internal or external?

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Paolo Bonzini
On 08/30/2010 06:15 PM, Anthony Liguori wrote: On 08/30/2010 10:42 AM, Paolo Bonzini wrote: On 08/30/2010 05:35 PM, jes.soren...@redhat.com wrote: - JSONParsingState state = {}; + JSONParsingState state; + memset(&state, 0, sizeof(state)); state.ap = ap; JSONParsingState state = { .ap = ap

[Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature()

2010-08-30 Thread Anthony Liguori
On 08/30/2010 10:59 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/raw.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/raw.c b/block/raw.c index 61e6748..fc057d0 100644 --- a/block/raw.c +++ b/block/raw.c @@ -12,

[Qemu-devel] Re: Should QMP be RPC to internal C interfaces?

2010-08-30 Thread Anthony Liguori
On 08/30/2010 10:28 AM, Anthony Liguori wrote: Having two interfaces guarantees failure. What's the separation between internal and external? Is qdev internal or external? Let me put it another way, compatibility cannot be an after thought. We need to think deeply about compatibility when we

Re: [Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Anthony Liguori
On 08/30/2010 10:42 AM, Paolo Bonzini wrote: On 08/30/2010 05:35 PM, jes.soren...@redhat.com wrote: -JSONParsingState state = {}; +JSONParsingState state; +memset(&state, 0, sizeof(state)); state.ap = ap; JSONParsingState state = { .ap = ap }; achieves the same. But t

[Qemu-devel] [PATCH 12/14] size_t is unsigned, so (foo >= 0) is always true

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- ui/vnc-enc-tight.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index c4c9c3b..df975af 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -926,7 +926,7 @@ stati

[Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Paolo Bonzini
On 08/30/2010 05:35 PM, jes.soren...@redhat.com wrote: -JSONParsingState state = {}; +JSONParsingState state; +memset(&state, 0, sizeof(state)); state.ap = ap; JSONParsingState state = { .ap = ap }; achieves the same. Paolo

[Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Jes Sorensen
On 08/30/10 17:48, Anthony Liguori wrote: > On 08/30/2010 10:43 AM, Jes Sorensen wrote: >> Yes it's technically legal. However it's painful when you try to apply >> more aggressive warning flags looking for real bugs. > > No, this is GCC being stupid. > >> I would suggest we modify the coding st

[Qemu-devel] Re: [PATCH 12/14] size_t is unsigned, so (foo >= 0) is always true

2010-08-30 Thread Anthony Liguori
On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen Signed-off-by: Jes Sorensen This is the wrong fix, bytes should be a ssize_t or an int because tight_compress_data can return error. Regards, Anthony Liguori --- ui/vnc-enc-tight.c |8 1 files c

[Qemu-devel] [PATCH 03/14] Fix repeated typo: was "end if list" instead of "end of list"

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-config.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qemu-config.c b/qemu-config.c index 3abe655..1efdbec 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -80,7 +80,7 @@ static QemuOptsList qemu_dri

[Qemu-devel] [PATCH 14/14] load_multiboot(): get_image_size() returns int

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Do not store return of get_image_size() in a uint32_t as it makes it impossible to detect error returns from get_image_size. Signed-off-by: Jes Sorensen --- hw/multiboot.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/multiboot.c b/hw/multiboot

[Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Jes Sorensen
On 08/30/10 17:39, Anthony Liguori wrote: > On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: >> From: Jes Sorensen >> >> This keeps the compiler happy when building with -Wextra while >> effectively generating the same code. >> >> Signed-off-by: Jes Sorensen >> > > What's GCC's compliant

[Qemu-devel] Re: [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy.

2010-08-30 Thread Anthony Liguori
On 08/30/2010 10:35 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen This keeps the compiler happy when building with -Wextra while effectively generating the same code. Signed-off-by: Jes Sorensen What's GCC's compliant? Regards, Anthony Liguori --- qjson.c |3 ++- 1 file

[Qemu-devel] [PATCH 13/14] Change DPRINTF() to do{}while(0) to avoid compiler warning

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- slirp/bootp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/slirp/bootp.c b/slirp/bootp.c index 3e4e881..41460ff 100644 --- a/slirp/bootp.c +++ b/slirp/bootp.c @@ -33,7 +33,7 @@ static const uint8_t rfc1533_cookie[]

[Qemu-devel] [PATCH 04/14] Zero initialize timespec struct explicitly

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- linux-aio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-aio.c b/linux-aio.c index 68f4b3d..3240996 100644 --- a/linux-aio.c +++ b/linux-aio.c @@ -118,7 +118,7 @@ static void qemu_laio_completion_cb(void *opaq

[Qemu-devel] [PATCH 09/14] Remove unused arguments for add_aio_request() and free_aio_req()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/sheepdog.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 81aa564..2ef8655 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -394,7 +394,7 @@ s

[Qemu-devel] [PATCH 07/14] Remove unused argument for get_whole_cluster()

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- block/vmdk.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 2d4ba42..54ad66f 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -437,7 +437,7 @@ static uint64_t get_cluster_offset(Bloc

[Qemu-devel] [PATCH 00/14] gcc extra warning fixes

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Hi, I started building QEMU with some more aggressive error flags to see what dropped out. I started fixing up some of the cases, removing unused arguments to functions, comparisons of unsigned types against negative values etc. and a few other minor changes to avoid compiler

[Qemu-devel] [PATCH 11/14] Remove unused function arguments

2010-08-30 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- json-parser.c | 39 +++ 1 files changed, 19 insertions(+), 20 deletions(-) diff --git a/json-parser.c b/json-parser.c index 70b9b6f..68ff9c1 100644 --- a/json-parser.c +++ b/json-parser.c @@ -91,7 +91,7 @@

  1   2   >