[Qemu-devel] [PATCH] net: provide a friendly message when a user passes a bad -net tap, fd=X (v2)

2010-10-08 Thread Anthony Liguori
A lot of people copy libvirt's command line from ps -ef and then wonder why the VM isn't working correctly. Let's be kind and tell them what they should do instead. Without this patch, if you run with an invalid -net tap,fd=X, the guest still runs and we poll 100% on a bad file descriptor. With

Re: [Qemu-devel] [PATCH] net: provide a friendly message when a user passes a bad -net tap, fd=X

2010-10-08 Thread Anthony Liguori
On 10/08/2010 06:28 PM, Alexander Graf wrote: On 09.10.2010, at 00:04, Anthony Liguori wrote: A lot of people copy libvirt's command line from ps -ef and then wonder why the VM isn't working correctly. Let's be kind and tell them what they should do instead. Without this patch, if you run

Re: [Qemu-devel] [PATCH] net: provide a friendly message when a user passes a bad -net tap, fd=X

2010-10-08 Thread Alexander Graf
On 09.10.2010, at 00:04, Anthony Liguori wrote: > A lot of people copy libvirt's command line from ps -ef and then wonder why > the > VM isn't working correctly. Let's be kind and tell them what they should do > instead. > > Without this patch, if you run with an invalid -net tap,fd=X, the gue

[Qemu-devel] [PATCH] net: provide a friendly message when a user passes a bad -net tap, fd=X

2010-10-08 Thread Anthony Liguori
A lot of people copy libvirt's command line from ps -ef and then wonder why the VM isn't working correctly. Let's be kind and tell them what they should do instead. Without this patch, if you run with an invalid -net tap,fd=X, the guest still runs and we poll 100% on a bad file descriptor. With

[Qemu-devel] Re: [PATCH] tcg: Fix compiler error (comparison of unsigned expression)

2010-10-08 Thread Stefan Weil
Am 08.10.2010 18:57, schrieb Hollis Blanchard: On Fri, Oct 8, 2010 at 1:32 AM, Stefan Weil wrote: When qemu is configured with --enable-debug-tcg, gcc throws this warning (or error with -Werror): tcg/tcg.c:1030: error: comparison of unsigned expression >= 0 is always true Fix it by removing

[Qemu-devel] [PATCH 12/12] mips: avoid write only variables

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced a lot of warnings like: /src/qemu/target-mips/translate.c: In function 'gen_ld': /src/qemu/target-mips/translate.c:1039:17: error: variable 'opn' set but not used [-Werror=unused-but-set-variable] Fix by adding a dummy cast so that the variable is not unu

[Qemu-devel] [PATCH 10/12] i386: avoid a write only variable

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced warnings: /src/qemu/target-i386/op_helper.c: In function 'switch_tss': /src/qemu/target-i386/op_helper.c:283:53: error: variable 'new_trap' set but not used [-Werror=unused-but-set-variable] Fix by adding a dummy cast so that the variable is not unused. A

[Qemu-devel] [PATCH 09/12] vnc: avoid write only variables

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced warnings: /src/qemu/ui/vnc.c: In function 'vnc_client_cache_auth': /src/qemu/ui/vnc.c:217:12: error: variable 'qdict' set but not used [-Werror=unused-but-set-variable] /src/qemu/ui/vnc.c: In function 'vnc_display_open': /src/qemu/ui/vnc.c:2526:9: error: v

[Qemu-devel] [PATCH 07/12] mips_fulong2e: Delete write only variables

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced warnings like: /src/qemu/hw/mips_fulong2e.c: In function 'mips_fulong2e_init': /src/qemu/hw/mips_fulong2e.c:274:16: error: variable 'rtc_state' set but not used [-Werror=unused-but-set-variable] /src/qemu/hw/mips_fulong2e.c:268:16: error: variable 'isa_dev

[Qemu-devel] [PATCH 08/12] cris: avoid a write only variable

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced a warning: In file included from /src/qemu/target-cris/translate.c:3154:0: /src/qemu/target-cris/translate_v10.c: In function 'dec10_prep_move_m': /src/qemu/target-cris/translate_v10.c:111:22: error: variable 'rd' set but not used [-Werror=unused-but-set-v

[Qemu-devel] [PATCH 06/12] Delete write only variables

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced warnings like: /src/qemu/net/tap-win32.c: In function 'tap_win32_open': /src/qemu/net/tap-win32.c:582:12: error: variable 'hThread' set but not used [-Werror=unused-but-set-variable] Fix by removing the unused variables. Signed-off-by: Blue Swirl --- h

[Qemu-devel] Re: [PATCH 11/12] ppc: avoid write only variables

2010-10-08 Thread Alexander Graf
On 08.10.2010, at 23:25, Blue Swirl wrote: > Compiling with GCC 4.6.0 20100925 produced warnings: > /src/qemu/target-ppc/op_helper.c: In function 'helper_icbi': > /src/qemu/target-ppc/op_helper.c:351:14: error: variable 'tmp' set but > not used [-Werror=unused-but-set-variable] > /src/qemu/target

[Qemu-devel] [PATCH 05/12] ppc: remove video.x

2010-10-08 Thread Blue Swirl
Only Mac-on-Linux stuff used video.x, OpenBIOS does not need it. Remove video.x MoL hacks. Signed-off-by: Alexander Graf Signed-off-by: Blue Swirl --- Makefile|3 +- configure |2 +- hw/ppc_mac.h|1 - hw/ppc_newworld.c | 41 +- hw/p

[Qemu-devel] [PATCH 04/12] lsi53c895a: avoid a write only variable

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced a warning: /src/qemu/hw/lsi53c895a.c: In function 'lsi_do_msgout': /src/qemu/hw/lsi53c895a.c:848:9: error: variable 'len' set but not used [-Werror=unused-but-set-variable] Fix by adding a dummy cast so that the variable is not unused for non-debug case.

[Qemu-devel] [PATCH 03/12] eepro100: initialize a variable in all cases

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced warnings: /src/qemu/hw/eepro100.c: In function 'eepro100_read4': /src/qemu/hw/eepro100.c:1351:14: error: 'val' may be used uninitialized in this function [-Werror=uninitialized] /src/qemu/hw/eepro100.c: In function 'eepro100_read2': /src/qemu/hw/eepro100.c

[Qemu-devel] [PATCH 11/12] ppc: avoid write only variables

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced warnings: /src/qemu/target-ppc/op_helper.c: In function 'helper_icbi': /src/qemu/target-ppc/op_helper.c:351:14: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable] /src/qemu/target-ppc/op_helper.c: In function 'do_6xx_tlb': /src/qemu/t

[Qemu-devel] [PATCH 02/12] cirrus: avoid write only variables

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced a lot of warnings like: In file included from /src/qemu/hw/cirrus_vga_rop.h:174:0, from /src/qemu/hw/cirrus_vga.c:284: /src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_patternfill_0_8': /src/qemu/hw/cirrus_vga_rop2.h:48:18: error: varia

[Qemu-devel] [PATCH 01/12] block: avoid a write only variable

2010-10-08 Thread Blue Swirl
Compiling with GCC 4.6.0 20100925 produced a warning: /src/qemu/block/qcow2-refcount.c: In function 'update_refcount': /src/qemu/block/qcow2-refcount.c:552:13: error: variable 'dummy' set but not used [-Werror=unused-but-set-variable] Fix by adding a dummy cast so that the result is not unused. S

[Qemu-devel] [PATCH v2 00/12] GCC 4.6.0 fixes

2010-10-08 Thread Blue Swirl
*** BLURB HERE *** Blue Swirl (12): block: avoid a write only variable cirrus: avoid write only variables eepro100: initialize a variable in all cases lsi53c895a: avoid a write only variable ppc: remove video.x Delete write only variables mips_fulong2e: Delete write only variables

[Qemu-devel] [Bug 657006] Re: arm - svc instruction

2010-10-08 Thread jb
I made a mistake, there are 2 irq : 11 and 15 and best_irq = 11 after svc call So it should launch vPortSVCHandler but it does not. -- arm - svc instruction https://bugs.launchpad.net/bugs/657006 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to

Re: [Qemu-devel] 9p crash bugs

2010-10-08 Thread Venkateswararao Jujjuri (JV)
Markus, thanks for looking into it. Will look into the errors and fix them asap..at least it should fail gracefully if the arguments are not correct/insufficient. BTW, we added a setup help page under QEMU documentation..and it can get you started.. http://wiki.qemu.org/Documentation/9psetup Th

[Qemu-devel] [PATCH v2 5/7] qed: Table, L2 cache, and cluster functions

2010-10-08 Thread Stefan Hajnoczi
This patch adds code to look up data cluster offsets in the image via the L1/L2 tables. The L2 tables are writethrough cached in memory for performance (each read/write requires a lookup so it is essential to cache the tables). With cluster lookup code in place it is possible to implement bdrv_is

[Qemu-devel] [PATCH v2 7/7] qed: Consistency check support

2010-10-08 Thread Stefan Hajnoczi
This patch adds support for the qemu-img check command. It also introduces a dirty bit in the qed header to mark modified images as needing a check. This bit is cleared when the image file is closed cleanly. If an image file is opened and it has the dirty bit set, a consistency check will run an

[Qemu-devel] [PATCH v2 1/7] qcow2: Make get_bits_from_size() common

2010-10-08 Thread Stefan Hajnoczi
The get_bits_from_size() calculates the log base-2 of a number. This is useful in bit manipulation code working with power-of-2s. Currently used by qcow2 and needed by qed in a follow-on patch. Signed-off-by: Stefan Hajnoczi --- block/qcow2.c | 22 -- cutils.c | 18

[Qemu-devel] [PATCH v2 0/7] qed: Add QEMU Enhanced Disk format

2010-10-08 Thread Stefan Hajnoczi
QEMU Enhanced Disk format is a disk image format that forgoes features found in qcow2 in favor of better levels of performance and data integrity. Due to its simpler on-disk layout, it is possible to safely perform metadata updates more efficiently. Installations, suspend-to-disk, and other alloc

[Qemu-devel] [PATCH -v5] ceph/rbd block driver for qemu-kvm

2010-10-08 Thread Yehuda Sadeh
From: Christian Brunner Hi Anthony, Here's an updated rbd driver, that fixes the issues you pointed at. Main issue that has been delt with is moving the main aio handling from the librados callback to the reader handler that runs in the qemu context. All the librados callback does now is sendi

[Qemu-devel] [PATCH v2 2/7] cutils: Add bytes_to_str() to format byte values

2010-10-08 Thread Stefan Hajnoczi
From: Anthony Liguori This common function converts byte counts to human-readable strings with proper units. Signed-off-by: Anthony Liguori Signed-off-by: Stefan Hajnoczi --- cutils.c | 15 +++ qemu-common.h |1 + 2 files changed, 16 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH v2 6/7] qed: Read/write support

2010-10-08 Thread Stefan Hajnoczi
This patch implements the read/write state machine. Operations are fully asynchronous and multiple operations may be active at any time. Allocating writes lock tables to ensure metadata updates do not interfere with each other. If two allocating writes need to update the same L2 table they will

Re: [Qemu-devel] [PATCH] monitor: add usb_detach

2010-10-08 Thread Anthony Liguori
How is this different than usb_del? Is it that it detaches it but does not delete the device? Regards, Anthony Liguori On 10/05/2010 09:40 AM, Alon Levy wrote: Signed-off-by: Alon Levy --- qemu-monitor.hx | 17 + sysemu.h|1 + vl.c| 41 +++

[Qemu-devel] [Bug 657006] [NEW] arm - svc instruction

2010-10-08 Thread jb
Public bug reported: The svc instruction doesn't work as expected. -> qemu 0.13.0 rc1 (git) Test : demo with freeRTOS (for example FreeRTOS-6.0.5/Demo/CORTEX_LM3S811_GCC) with the card lm3s811evb. If we start the scheduler, it will call that function (__attribute__ (( naked ))) : void vPortSta

Re: [Qemu-devel] [PATCH] monitor: add usb_detach

2010-10-08 Thread Luiz Capitulino
On Tue, 5 Oct 2010 16:40:29 +0200 Alon Levy wrote: > Signed-off-by: Alon Levy This needs to be rebased as it now conflicts with my last series merged on master. I have some minor comments (below), but in general seems ok to me. However, I'd like to get an ACK from someone familiar with QEMU's

[Qemu-devel] Re: [PATCH 05/11] Delete write only variables

2010-10-08 Thread Alexander Graf
On 08.10.2010, at 20:06, Blue Swirl wrote: > On Fri, Oct 8, 2010 at 5:30 PM, Alexander Graf wrote: >> >> On 08.10.2010, at 19:28, Paolo Bonzini wrote: >> >>> On 10/07/2010 07:24 PM, Blue Swirl wrote: >> On 10/06/2010 11:32 PM, Blue Swirl wrote: @@ -91,8 +90,6 @@ static

[Qemu-devel] Re: [PATCH 05/11] Delete write only variables

2010-10-08 Thread Blue Swirl
On Fri, Oct 8, 2010 at 5:30 PM, Alexander Graf wrote: > > On 08.10.2010, at 19:28, Paolo Bonzini wrote: > >> On 10/07/2010 07:24 PM, Blue Swirl wrote: >  On 10/06/2010 11:32 PM, Blue Swirl wrote: > >> > >>  @@ -91,8 +90,6 @@ static int vga_osi_call (CPUState *env) > >>            

[Qemu-devel] Re: [PATCH v2 1/7] qcow2: Make get_bits_from_size() common

2010-10-08 Thread Anthony Liguori
On 10/08/2010 10:48 AM, Stefan Hajnoczi wrote: The get_bits_from_size() calculates the log base-2 of a number. This is useful in bit manipulation code working with power-of-2s. Currently used by qcow2 and needed by qed in a follow-on patch. Signed-off-by: Stefan Hajnoczi Acked-by: Anthon

[Qemu-devel] Re: [PATCH 05/11] Delete write only variables

2010-10-08 Thread Paolo Bonzini
On 10/07/2010 07:24 PM, Blue Swirl wrote: > On 10/06/2010 11:32 PM, Blue Swirl wrote: >> >> @@ -91,8 +90,6 @@ static int vga_osi_call (CPUState *env) >>env->gpr[3] = 0; >>break; >>case 39: /* video_ctrl */ >> -if (env->gpr[6] == 0 || env->gpr[6] == 1) >

[Qemu-devel] Re: [PATCH 2/2] check for close() errors on qcow2_create()

2010-10-08 Thread Eduardo Habkost
On Fri, Oct 08, 2010 at 12:14:07PM +0200, Kevin Wolf wrote: > Am 07.10.2010 22:25, schrieb Eduardo Habkost: > > Errors when closing the file we just created should not be ignored. I/O > > errors > > may happen and "qemu-img create" should fail in those cases. > > > > If we are already exiting due

[Qemu-devel] Re: [PATCH 05/11] Delete write only variables

2010-10-08 Thread Alexander Graf
On 08.10.2010, at 19:28, Paolo Bonzini wrote: > On 10/07/2010 07:24 PM, Blue Swirl wrote: >>> > On 10/06/2010 11:32 PM, Blue Swirl wrote: >> >> @@ -91,8 +90,6 @@ static int vga_osi_call (CPUState *env) >>env->gpr[3] = 0; >>break; >>case 3

Re: [Qemu-devel] [PATCH] monitor: properly handle invalid fd/vhostfd from command line

2010-10-08 Thread Luiz Capitulino
On Tue, 28 Sep 2010 16:57:44 +0200 "Michael S. Tsirkin" wrote: > On Tue, Sep 28, 2010 at 11:53:43AM -0300, Luiz Capitulino wrote: > > On Mon, 27 Sep 2010 15:52:44 +0800 > > Jason Wang wrote: > > > > > monitor_get_fd() may also be used to parse fd or vhostfd from command > > > line, so > > > we

Re: [Qemu-devel] [STATUS] static instrumentation

2010-10-08 Thread Blue Swirl
On Thu, Oct 7, 2010 at 8:34 PM, Lluís wrote: > Blue Swirl writes: > >> The patches there seem to be fixes or small changes to your other >> patches. This makes any review very difficult. > > Sorry, I'm really new to git, so I don't really know how to maintain and > "grow" an organized set of patch

[Qemu-devel] [PATCH v2 4/7] qed: Add QEMU Enhanced Disk image format

2010-10-08 Thread Stefan Hajnoczi
This patch introduces the qed on-disk layout and implements image creation. Later patches add read/write and other functionality. Signed-off-by: Stefan Hajnoczi --- Makefile.objs |1 + block/qed.c | 530 + block/qed.h | 148 +

[Qemu-devel] Re: [PATCH] tcg: Fix compiler error (comparison of unsigned expression)

2010-10-08 Thread Hollis Blanchard
On Fri, Oct 8, 2010 at 1:32 AM, Stefan Weil wrote: > When qemu is configured with --enable-debug-tcg, > gcc throws this warning (or error with -Werror): > > tcg/tcg.c:1030: error: comparison of unsigned expression >= 0 is always true > > Fix it by removing the >= 0 part. > The type cast to 'unsign

Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v4)

2010-10-08 Thread Anthony Liguori
On 10/08/2010 10:50 AM, Yehuda Sadeh Weinraub wrote: Oh, that makes it more clean. Considering that we did it for kvm, and looking at the kvm qemu_bh_schedule() implementation, it does look thread safe (there might be an issue though with canceling the bh though, haven't looked at it, not really

Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v4)

2010-10-08 Thread Yehuda Sadeh Weinraub
On Fri, Oct 8, 2010 at 7:06 AM, Anthony Liguori wrote: > On 10/07/2010 05:45 PM, Sage Weil wrote: >> >> I'm sorry, I'm having a hard time understanding what it is you're >> objecting to, or what you would prefer, as there are two different things >> we're talking about here (callbacks and fd glue/

Re: [Qemu-devel] Re: [PATCH 04/11] lsi53c895a: avoid a write only variable

2010-10-08 Thread Paolo Bonzini
On 10/07/2010 08:53 PM, Blue Swirl wrote: On Thu, Oct 7, 2010 at 9:20 AM, Markus Armbruster wrote: Paolo Bonzini writes: On 10/06/2010 11:32 PM, Blue Swirl wrote: Compiling with GCC 4.6.0 20100925 produced a warning: /src/qemu/hw/lsi53c895a.c: In function 'lsi_do_msgout': /src/qemu/hw/lsi53

[Qemu-devel] ivshmem crash bug

2010-10-08 Thread Markus Armbruster
"-device ivshmem" makes pci_ivshmem_init() pass null pointer to shm_open(). Suspect the "Must specify 'chardev' or 'shm' to ivshmem" error should be fatal. By the way, that error message can be misleading: the chardev must be "unix:" to be recognized. For instance, "-chardev null,id=chr0 -device

[Qemu-devel] Re: [PATCH 6/7] Clarify default values in migration speed argument in monitor

2010-10-08 Thread Paolo Bonzini
On 10/08/2010 11:15 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen Signed-off-by: Jes Sorensen --- hmp-commands.hx |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 95bdb91..f138a76 100644 --- a/hmp-commands.hx +++ b/hmp-

[Qemu-devel] [PATCH v2 3/7] docs: Add QED image format specification

2010-10-08 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- docs/specs/qed_spec.txt | 94 +++ 1 files changed, 94 insertions(+), 0 deletions(-) create mode 100644 docs/specs/qed_spec.txt diff --git a/docs/specs/qed_spec.txt b/docs/specs/qed_spec.txt new file mode 100644 ind

[Qemu-devel] request help enabling both serial0 and parallel0 to emulate 2 distinct ports on beagle

2010-10-08 Thread Gabi Voiculescu
Hi. I am trying to emulate the Beagle platform using the version of qemu (meego qemu) from here (I'm currently in sync with commit caacc3f): git://gitorious.org/qemu-maemo/qemu.git. I'm faced with the following problem. I'm running a microkernel underneath Linux and when I try to use invasive

[Qemu-devel] Re: [PATCH 10/11] ppc: avoid write only variables

2010-10-08 Thread Blue Swirl
On Thu, Oct 7, 2010 at 8:08 PM, Alexander Graf wrote: > > Am 07.10.2010 um 20:59 schrieb Blue Swirl : > >> On Wed, Oct 6, 2010 at 9:39 PM, Alexander Graf wrote: >>> >>> On 06.10.2010, at 23:34, Blue Swirl wrote: >>> Compiling with GCC 4.6.0 20100925 produced warnings: /src/qemu/target-p

Re: [Qemu-devel] [PATCH 2/2] check for close() errors on qcow2_create()

2010-10-08 Thread Eduardo Habkost
On Fri, Oct 08, 2010 at 10:28:37AM +0100, Stefan Hajnoczi wrote: > >  exit_close: > > -    close(fd); > > +    cret = close(fd); > > +    if (ret == 0 && cret < 0) > > if (close(fd) < 0 && ret == 0) { > > Does the same without variable cret. Yes. I used the variable just for readability. I perso

[Qemu-devel] 9p crash bugs

2010-10-08 Thread Markus Armbruster
No idea how this stuff works, just playing with the options. Crashes left & right: * -device virtio-9p-pci Virtio-9p device couldn't find fsdev with the id (null) Passes null pointer for %s, crash on some systems. By the way, shouldn't fsdev work more like netdev, drive, chr? I.e. make

Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v4)

2010-10-08 Thread Anthony Liguori
On 10/07/2010 05:45 PM, Sage Weil wrote: On Thu, 7 Oct 2010, Anthony Liguori wrote: On 10/07/2010 04:49 PM, Yehuda Sadeh Weinraub wrote: On Thu, Oct 7, 2010 at 2:04 PM, Anthony Liguori wrote: On 10/07/2010 03:47 PM, Yehuda Sadeh Weinraub wrote: How is that possi

Re: [Qemu-devel] [PATCH] ide: set WCACHE supported in IDENTIFY data

2010-10-08 Thread Kevin Wolf
Am 04.10.2010 15:29, schrieb Christoph Hellwig: > ATA does not only have the WCACHE enabled bit in identify word 85, but also > a WCACHE supported bit in word 82. While the Linux kernel is fine with the > latter at least hdparm also needs the former before correctly displaying > the cache settings

[Qemu-devel] Re: [patch uq/master 7/8] MCE: Relay UCR MCE to guest

2010-10-08 Thread Dean Nelson
On 10/07/2010 10:15 PM, Huang Ying wrote: Hi, Seto, On Thu, 2010-10-07 at 11:41 +0800, Hidetoshi Seto wrote: (2010/10/07 3:10), Dean Nelson wrote: When I applied a patch to the guest's kernel which forces mce_ser to be set, as if MCG_SER_P was set (see __mcheck_cpu_cap_init()), I found that

[Qemu-devel] [PATCH v2 2/5] spice: make compression configurable.

2010-10-08 Thread Gerd Hoffmann
From: Yonit Halperin This patch adds options to the -spice command line switch to configure image compression. [ v2: speling fix in the documentation ] Signed-off-by: Gerd Hoffmann --- qemu-config.c |9 ++ qemu-options.hx |9 ++ ui/spice-core.c | 77 +++

[Qemu-devel] [PATCH v2 5/5] spice: add misc config options

2010-10-08 Thread Gerd Hoffmann
This patch adds a few more options to tweak spice server behavior. The documentation update chunk has the details ;) Signed-off-by: Gerd Hoffmann --- qemu-config.c |9 + qemu-options.hx |9 + ui/spice-core.c | 29 - 3 files changed, 46 inse

[Qemu-devel] [PATCH v2 3/5] spice: add config options for channel security.

2010-10-08 Thread Gerd Hoffmann
This allows to enforce tls or plaintext usage for certain spice channels. [ v2: code style fixup ] Signed-off-by: Gerd Hoffmann --- qemu-config.c |6 ++ qemu-options.hx |8 ui/spice-core.c | 28 3 files changed, 42 insertions(+), 0 deletions

[Qemu-devel] [PATCH v2 4/5] spice: add config options for the listening address

2010-10-08 Thread Gerd Hoffmann
Make listening address configurable. Also add options to force using IPv4 or IPv6. Signed-off-by: Gerd Hoffmann --- qemu-config.c |9 + qemu-options.hx |7 +++ ui/spice-core.c | 13 +++-- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/qemu-config

[Qemu-devel] [PATCH v2 1/5] spice: tls support

2010-10-08 Thread Gerd Hoffmann
Add options to the -spice command line switch to setup tls. Signed-off-by: Gerd Hoffmann --- qemu-config.c | 24 +++ qemu-options.hx | 18 ++- ui/spice-core.c | 67 +++--- 3 files changed, 104 insertions(+), 5 de

[Qemu-devel] [PATCH v2 0/5] spice config options

2010-10-08 Thread Gerd Hoffmann
Hi, This patch series adds a bunch of config options to spice, most notably it enables to configure TLS and thus using spice encrypted. The commit messages are not that verbose, but every patch comes with a patch chunk updating the spice section in the documentation. Please look there when rev

[Qemu-devel] [PATCH 2/2] wacom tablet: activate event handlers.

2010-10-08 Thread Gerd Hoffmann
Add qemu_activate_mouse_event_handler() calls to the usb wavom tablet so it actually receives events. Also make sure we only remove the handler if we registered it before. Signed-off-by: Gerd Hoffmann --- hw/usb-wacom.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) di

[Qemu-devel] [PATCH 1/2] vmmouse: adapt to mouse handler changes.

2010-10-08 Thread Gerd Hoffmann
This patch updates the vmmouse handler registration and activation. Old behavior: vmmouse_read_id, vmmouse_request_relative and vmmouse_request_absolute unregister the handler and re-register it. New behavior: vmmouse_request_relative and vmmouse_request_absolute will unregister the handl

[Qemu-devel] [PATCH 0/2] mouse fixups

2010-10-08 Thread Gerd Hoffmann
Hi, In the 0.13 devel cycle the mouse handler activation code has been updated, but (at least) two drivers have not been updated accordingly: vmmouse and usb-wacom. This patch series updates them so they are functional again. IMHO the patches should also be cherry-picked into stable. The patc

[Qemu-devel] Re: [PATCH 0/2] qcow2_create() error handling fixes

2010-10-08 Thread Kevin Wolf
Am 07.10.2010 22:25, schrieb Eduardo Habkost: > From: Eduardo Habkost > > Hi, > > Here are two small fixes on qcow2_create() error handling. > > Eduardo Habkost (2): > fix fd leak on a qcow2_create2() error path > check for close() errors on qcow2_create() A while ago I sent a patch to com

[Qemu-devel] Re: [PATCH 2/2] check for close() errors on qcow2_create()

2010-10-08 Thread Kevin Wolf
Am 07.10.2010 22:25, schrieb Eduardo Habkost: > Errors when closing the file we just created should not be ignored. I/O errors > may happen and "qemu-img create" should fail in those cases. > > If we are already exiting due to an error, we will still return the original > error number, though. >

Re: [Qemu-devel] [PATCH 2/3] vnc: support password expire

2010-10-08 Thread Daniel P. Berrange
On Thu, Oct 07, 2010 at 02:53:05PM -0500, Anthony Liguori wrote: > On 10/07/2010 06:15 AM, Gerd Hoffmann wrote: > >This patch adds support for expiring passwords to vnc. It adds a new > >lifetime parameter to the vnc_display_password() function, which > >specifies the number of seconds the new pas

Re: [Qemu-devel] [PATCH 3/7] Add more error handling to strtosz()

2010-10-08 Thread Stefan Weil
Am 08.10.2010 11:15, schrieb jes.soren...@redhat.com: From: Jes Sorensen Signed-off-by: Jes Sorensen --- cutils.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cutils.c b/cutils.c index 0782032..e5a135e 100644 --- a/cutils.c +++ b/cutils.c @@ -292,6 +292,7

Re: [Qemu-devel] [PATCH 2/7] Support human unit formats in strtosz, eg. 1.0G

2010-10-08 Thread Stefan Weil
Am 08.10.2010 11:15, schrieb jes.soren...@redhat.com: From: Jes Sorensen Signed-off-by: Jes Sorensen --- cutils.c | 34 ++ 1 files changed, 26 insertions(+), 8 deletions(-) diff --git a/cutils.c b/cutils.c index ee591c5..0782032 100644 --- a/cutils.c +++ b/c

Re: [Qemu-devel] [PATCH 2/2] check for close() errors on qcow2_create()

2010-10-08 Thread Stefan Hajnoczi
On Thu, Oct 7, 2010 at 9:25 PM, Eduardo Habkost wrote: > Errors when closing the file we just created should not be ignored. I/O errors > may happen and "qemu-img create" should fail in those cases. > > If we are already exiting due to an error, we will still return the original > error number, th

Re: [Qemu-devel] [PATCH 1/2] fix fd leak on one qcow2_create2() error path

2010-10-08 Thread Stefan Hajnoczi
On Thu, Oct 7, 2010 at 9:25 PM, Eduardo Habkost wrote: > When getting an invalid cluster size, the open fd must be closed before > qcow2_create() returns an error. > > Signed-off-by: Eduardo Habkost > --- >  block/qcow2.c |    5 - >  1 files changed, 4 insertions(+), 1 deletions(-) Looks goo

[Qemu-devel] [PATCH 7/7] Remove obsolete 'f' double parameter type

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen 'f' double is no longer used, and we should be using floating point variables to store byte sizes. Remove it. Signed-off-by: Jes Sorensen --- monitor.c | 18 +- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/monitor.c b/monitor.c index 6dd1

[Qemu-devel] [PATCH 6/7] Clarify default values in migration speed argument in monitor

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- hmp-commands.hx |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 95bdb91..f138a76 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -756,7 +756,8 @@ ETEXI .name

[Qemu-devel] [PATCH 5/7] Switch migrate_set_speed() to take an 'o' argument rather than a float.

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- hmp-commands.hx |2 +- migration.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 81999aa..95bdb91 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -754,7 +754,7

[Qemu-devel] [PATCH 3/7] Add more error handling to strtosz()

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- cutils.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cutils.c b/cutils.c index 0782032..e5a135e 100644 --- a/cutils.c +++ b/cutils.c @@ -292,6 +292,7 @@ int fcntl_setfl(int fd, int flag) ssize_t strtosz(co

[Qemu-devel] [PATCH 2/7] Support human unit formats in strtosz, eg. 1.0G

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- cutils.c | 34 ++ 1 files changed, 26 insertions(+), 8 deletions(-) diff --git a/cutils.c b/cutils.c index ee591c5..0782032 100644 --- a/cutils.c +++ b/cutils.c @@ -291,34 +291,52 @@ int fcntl_setfl(int fd, in

[Qemu-devel] [PATCH 4/7] Add support for 'o' octet (bytes) format as monitor parameter.

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen Octet format relies on strtosz which supports K/k, M/m, G/g, T/t suffixes and unit support for humans, like 1.3G Signed-off-by: Jes Sorensen --- monitor.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor

[Qemu-devel] [PATCH 1/7] Introduce strtosz() library function to convert a string to a byte count.

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen strtosz() returns -1 on error. v2 renamed from strtobytes() to strtosz() as suggested by Markus. Signed-off-by: Jes Sorensen --- cutils.c | 39 +++ qemu-common.h |1 + vl.c | 31 ++- 3 fil

[Qemu-devel] [PATCH v4 0/7] Introduce strtosz and make use of it

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen This patch introduces cutils.c: strtosz() and gets rid of the multiple custom hacks for parsing byte sizes. In addition it adds supports for specifying human style sizes such as 1.5G. Last it eliminates the horrible abuse of a float to store the byte size for migrate_set_speed

[Qemu-devel] Re: [PATCH 5/6] Switch migrate_set_speed() to take an 'o' argument rather than a float.

2010-10-08 Thread Jes Sorensen
On 10/07/10 18:03, Paolo Bonzini wrote: > On 10/07/2010 05:01 PM, jes.soren...@redhat.com wrote: >> diff --git a/hmp-commands.hx b/hmp-commands.hx >> index 81999aa..95bdb91 100644 >> --- a/hmp-commands.hx >> +++ b/hmp-commands.hx >> @@ -754,7 +754,7 @@ ETEXI >> >> { >> .name =

[Qemu-devel] [PATCH] tcg: Fix compiler error (comparison of unsigned expression)

2010-10-08 Thread Stefan Weil
When qemu is configured with --enable-debug-tcg, gcc throws this warning (or error with -Werror): tcg/tcg.c:1030: error: comparison of unsigned expression >= 0 is always true Fix it by removing the >= 0 part. The type cast to 'unsigned' catches negative values of op (which should never happen).