Re: [Qemu-devel] [PATCH v2 02/15] qga: Consistently name Error ** objects errp, and not err

2014-04-29 Thread Markus Armbruster
Michael Roth writes: > Quoting Markus Armbruster (2014-04-28 15:27:41) >> Signed-off-by: Markus Armbruster >> Reviewed-by: Eric Blake >> --- >> qga/commands-posix.c | 209 >> ++- >> qga/commands-win32.c | 115 ++-- >> qga

Re: [Qemu-devel] [PATCH v2 03/15] qga: Consistently name Error ** objects errp, and not err

2014-04-29 Thread Markus Armbruster
Michael Roth writes: > Quoting Markus Armbruster (2014-04-28 15:27:42) >> Signed-off-by: Markus Armbruster >> Reviewed-by: Eric Blake >> --- >> qga/commands-posix.c | 10 +- >> qga/commands-win32.c | 10 +- >> 2 files changed, 10 insertions(+), 10 deletions(-) >> >> diff --git

Re: [Qemu-devel] [PATCH v9 3/4] qapi: Use an explicit input file

2014-04-29 Thread Markus Armbruster
Eric Blake writes: > On 04/29/2014 02:20 PM, Lluís Vilanova wrote: >> Markus Armbruster writes: >> >>> Lluís Vilanova writes: Use an explicit input file on the command-line instead of reading from standard input >> >>> Please limit commit message line length to 70 characters. >> >>>

Re: [Qemu-devel] [PATCH] Makefile: Fix per-object variables for Makefile.target

2014-04-29 Thread Michael Tokarev
29.04.2014 10:29, Paolo Bonzini wrote: [] > What about this instead, does it do the same? > > diff --git a/rules.mak b/rules.mak > index 5c454d8..7038576 100644 > --- a/rules.mak > +++ b/rules.mak > @@ -228,6 +228,7 @@ endef > define unnest-vars > $(eval obj := $1) > $(eval nested-vars := $2) >

Re: [Qemu-devel] [PATCH v6 14/14] iotests: Omit length/offset test in 040 and 041

2014-04-29 Thread Eric Blake
On 04/29/2014 09:17 AM, Max Reitz wrote: > As the length of a mirror block job no longer directly depends on the > size of the block device, drop those checks from this test. Instead, > just check whether the final offset equals the block job length. > > As 041 uses the wait_until_completed functi

Re: [Qemu-devel] [PATCH v6 12/14] iotests: Add test for backing-chain commits

2014-04-29 Thread Eric Blake
On 04/29/2014 09:17 AM, Max Reitz wrote: > Add a test for qemu-img commit on backing chains with more than two > images. This test also checks whether the images above the base image > are emptied and does therefore not work for qed and vmdk which requires > it to be separate from 020. > > Signed-

Re: [Qemu-devel] [PATCH v4 3/3] block: qemu-iotests - test for live migration

2014-04-29 Thread Fam Zheng
On Tue, 04/29 18:39, Jeff Cody wrote: > This is an initial, simple live migration test from one > running VM to another, using monitor commands. > > This is also an example of using the new common.qemu functions > for controlling multiple running qemu instances, for tests that > need a live qemu v

Re: [Qemu-devel] [PATCH v4 2/3] block: qemu-iotests - update 085 to use common.qemu

2014-04-29 Thread Fam Zheng
On Tue, 04/29 18:39, Jeff Cody wrote: > The new functionality of common.qemu implements the QEMU control > and communication functionality that was originally in test 085. > > This removes that now-duplicate functionality, and uses the > common.qemu functions. > > The QEMU commandline changes sli

Re: [Qemu-devel] [PATCH v3 1/5] block: qemu-iotests - add common.qemu, for bash-controlled qemu tests

2014-04-29 Thread Eric Blake
On 04/29/2014 08:06 PM, Fam Zheng wrote: + +if [ "${BASH_VERSINFO[0]}" -ge "4" ] && [ "${BASH_VERSINFO[1]}" -ge "1" ] >>> >>> This condition will be false for 5.0. >>> >> >> Oops, yup. > > Question of ignorance, is there a Bash 5.0 already? Nope; bash 4.3 is barely more than

Re: [Qemu-devel] [PATCH v6 07/14] qemu-img: Implement commit like QMP

2014-04-29 Thread Eric Blake
On 04/29/2014 09:07 AM, Max Reitz wrote: > qemu-img should use QMP commands whenever possible in order to ensure > feature completeness of both online and offline image operations. As > qemu-img itself has no access to QMP (since this would basically require > just everything being linked into qemu

Re: [Qemu-devel] [PATCH v4 1/3] block: qemu-iotests - add common.qemu, for bash-controlled qemu tests

2014-04-29 Thread Fam Zheng
On Tue, 04/29 18:39, Jeff Cody wrote: > This creates some common functions for bash language qemu-iotests > to control, and communicate with, a running QEMU process. > > 4 functions are introduced: > > 1. _launch_qemu() > This launches the QEMU process(es), and sets up the file >

Re: [Qemu-devel] [PATCH v3 1/5] block: qemu-iotests - add common.qemu, for bash-controlled qemu tests

2014-04-29 Thread Fam Zheng
On Tue, 04/29 10:11, Jeff Cody wrote: > On Tue, Apr 29, 2014 at 03:26:55PM +0200, Kevin Wolf wrote: > > Am 10.04.2014 um 22:47 hat Jeff Cody geschrieben: > > > This creates some common functions for bash language qemu-iotests > > > to control, and communicate with, a running QEMU process. > > > >

Re: [Qemu-devel] [PATCH v6 06/14] block/mirror: Improve progress report

2014-04-29 Thread Eric Blake
On 04/29/2014 09:07 AM, Max Reitz wrote: > Instead of taking the total length of the block device as the block > job's length, use the number of dirty sectors. The progress is now the > number of sectors mirrored to the target block device. Note that this > may result in the job's length increasing

Re: [Qemu-devel] [PATCH V26 12/32] change block layer to support both QemuOpts and QEMUOptionParamter

2014-04-29 Thread Eric Blake
On 04/29/2014 03:10 AM, Chunyan Liu wrote: > Change block layer to support both QemuOpts and QEMUOptionParameter. > After this patch, it will change backend drivers one by one. At the end, > QEMUOptionParameter will be removed and only QemuOpts is kept. > > Signed-off-by: Dong Xu Wang > Signed-of

Re: [Qemu-devel] [PATCH] build: simplify Makefile.target around unnest-vars invocations

2014-04-29 Thread Fam Zheng
On Tue, 04/29 18:46, Paolo Bonzini wrote: > No need to save/restore obj-y, we can just build all-obj-y incrementally. > > Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng > --- > Makefile.target | 11 ++- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/Makefile.

Re: [Qemu-devel] [PATCH microblaze v1 0/3] Microblaze Patches

2014-04-29 Thread Edgar E. Iglesias
On Mon, Apr 28, 2014 at 05:11:47PM -0700, Peter Crosthwaite wrote: > > Hi Edgar, > > Small mixed bag of Microblaze patches that are in my tree. Hi, I've taken patch nr 2. I already had #1 and #3 in my tree. For #3 I have a different version though, the version you posted breaks raw cpio loadin

Re: [Qemu-devel] [PATCH] target-i386: kvm: Don't enable MONITOR by default on any CPU model

2014-04-29 Thread Marcelo Tosatti
On Tue, Apr 29, 2014 at 06:17:17PM -0300, Eduardo Habkost wrote: > KVM never supported the MONITOR flag so it doesn't make sense to have it > enabled by default when KVM is enabled. > > The rationale here is similar to the cases where it makes sense to have > a feature enabled by default on all CP

Re: [Qemu-devel] [PATCH] migration: Increase default max_downtime from 30ms to 300ms

2014-04-29 Thread Alexey Kardashevskiy
On 04/13/2014 12:38 AM, Alexey Kardashevskiy wrote: > On 03/27/2014 08:01 PM, Markus Armbruster wrote: >> Adding Juan. > > > Ping? Ping? > >> >> Alexey Kardashevskiy writes: >> >>> The existing timeout is 30ms which on 100MB/s (1Gbit) gives us >>> 3MB/s rate maximum. If we put some load on

[Qemu-devel] [PATCH] savevm: check vmsd for migratability status (v2)

2014-04-29 Thread Marcelo Tosatti
Check vmsd for unmigratable field, allowing migratibility status to be modified after vmstate_register. Signed-off-by: Marcelo Tosatti diff --git a/savevm.c b/savevm.c index da8aa24..c578e42 100644 --- a/savevm.c +++ b/savevm.c @@ -232,7 +232,6 @@ typedef struct SaveStateEntry { const VMSta

Re: [Qemu-devel] [PATCH 16/16] pci-assign: assigned_initfn(): set monitor error in common error handler

2014-04-29 Thread Laszlo Ersek
On 04/30/14 01:25, Eric Blake wrote: > On 04/10/2014 02:24 AM, Laszlo Ersek wrote: >> Signed-off-by: Laszlo Ersek >> --- >> hw/i386/kvm/pci-assign.c | 26 ++ >> 1 file changed, 10 insertions(+), 16 deletions(-) >> > > Reviewed-by: Eric Blake > Your (surprisingly lenien

Re: [Qemu-devel] [PATCH 15/16] pci-assign: propagate errors from assign_intx()

2014-04-29 Thread Laszlo Ersek
On 04/30/14 00:41, Eric Blake wrote: > On 04/10/2014 02:24 AM, Laszlo Ersek wrote: >> Among the callers, only assigned_initfn() should set the monitor's stored > > unintentional double space Yep, my mistake in paragraph refilling. > >> error. Other callers may run in contexts where the monitor

Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times

2014-04-29 Thread Hani Benhabiles
On Mon, Apr 28, 2014 at 02:55:03AM +, Gonglei (Arei) wrote: > Hi, > > > Il 26/04/2014 10:56, Gonglei (Arei) ha scritto: > > > Public bug reported: > > > > > > I want to repeated hot-plug/unplug the virtio-net in the latest qemu > > upstream > > > (commit 839a5547574e57cce62f49bfc50fe1f04b00589

[Qemu-devel] [PATCH v4 0/3] Add common QEMU control functionality to qemu-iotests

2014-04-29 Thread Jeff Cody
Changes from v3: Patch 1: - Make bash version check work with >= 5 as well (Thanks Kevin) - Suppress error message if killing non-existent PID - Close QEMU fifo in/out file descriptors on cleanup (Thanks Kevin) - Remove extra newline at the end of the file (Thank

Re: [Qemu-devel] [PATCH 16/16] pci-assign: assigned_initfn(): set monitor error in common error handler

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > Signed-off-by: Laszlo Ersek > --- > hw/i386/kvm/pci-assign.c | 26 ++ > 1 file changed, 10 insertions(+), 16 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualizatio

[Qemu-devel] [PATCH v4 2/3] block: qemu-iotests - update 085 to use common.qemu

2014-04-29 Thread Jeff Cody
The new functionality of common.qemu implements the QEMU control and communication functionality that was originally in test 085. This removes that now-duplicate functionality, and uses the common.qemu functions. The QEMU commandline changes slightly due to this; in addition to monitor and qmp i/

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add myself as Memory API maintainer

2014-04-29 Thread Edgar E. Iglesias
On Tue, Apr 29, 2014 at 06:51:12PM +0200, Paolo Bonzini wrote: > I'm not including Avi since he has already removed himself from the > KVM entry. I'm not going to commit my patches without review. > > Signed-off-by: Paolo Bonzini Acked-by: Edgar E. Iglesias > --- > MAINTAINERS | 10

Re: [Qemu-devel] [PATCH v9 3/4] qapi: Use an explicit input file

2014-04-29 Thread Eric Blake
On 04/29/2014 02:20 PM, Lluís Vilanova wrote: > Markus Armbruster writes: > >> Lluís Vilanova writes: >>> Use an explicit input file on the command-line instead of reading from >>> standard input > >> Please limit commit message line length to 70 characters. > >> Worth mentioning that this com

Re: [Qemu-devel] [PATCH v6 03/14] qcow2: Optimize bdrv_make_empty()

2014-04-29 Thread Eric Blake
On 04/29/2014 04:24 PM, Eric Blake wrote: > On 04/29/2014 09:07 AM, Max Reitz wrote: >> bdrv_make_empty() is currently only called if the current image >> represents an external snapshot that has been committed to its base >> image; it is therefore unlikely to have internal snapshots. In this >> ca

Re: [Qemu-devel] [PATCH 15/16] pci-assign: propagate errors from assign_intx()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > Among the callers, only assigned_initfn() should set the monitor's stored unintentional double space > error. Other callers may run in contexts where the monitor's stored error > makes no sense. For example: > > assigned_dev_pci_write_config() > a

[Qemu-devel] [PATCH v4 3/3] block: qemu-iotests - test for live migration

2014-04-29 Thread Jeff Cody
This is an initial, simple live migration test from one running VM to another, using monitor commands. This is also an example of using the new common.qemu functions for controlling multiple running qemu instances, for tests that need a live qemu vm. Signed-off-by: Jeff Cody --- tests/qemu-iote

[Qemu-devel] [PATCH v4 1/3] block: qemu-iotests - add common.qemu, for bash-controlled qemu tests

2014-04-29 Thread Jeff Cody
This creates some common functions for bash language qemu-iotests to control, and communicate with, a running QEMU process. 4 functions are introduced: 1. _launch_qemu() This launches the QEMU process(es), and sets up the file descriptors and fifos for communication. You can

Re: [Qemu-devel] [PATCH v6 03/14] qcow2: Optimize bdrv_make_empty()

2014-04-29 Thread Eric Blake
On 04/29/2014 09:07 AM, Max Reitz wrote: > bdrv_make_empty() is currently only called if the current image > represents an external snapshot that has been committed to its base > image; it is therefore unlikely to have internal snapshots. In this > case, bdrv_make_empty() can be greatly sped up by

Re: [Qemu-devel] [PATCH v2 12/15] qga: Drop superfluous error_is_set()

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:51) > acquire_privilege(), execute_async() and check_suspend_mode() do > nothing when called with an error set. Callers shouldn't do that, and > no caller does. Drop the superfluous tests. > > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake

Re: [Qemu-devel] [PATCH v2 11/15] qga: Clean up fragile use of error_is_set()

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:50) > Using error_is_set(ERRP) to find out whether a function failed is > either wrong, fragile, or unnecessarily opaque. It's wrong when ERRP > may be null, because errors go undetected when it is. It's fragile > when proving ERRP non-null involves a n

Re: [Qemu-devel] [PATCH v2 10/15] qapi: Clean up fragile use of error_is_set()

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:49) > Using error_is_set(ERRP) to find out whether a function failed is > either wrong, fragile, or unnecessarily opaque. It's wrong when ERRP > may be null, because errors go undetected when it is. It's fragile > when proving ERRP non-null involves a n

Re: [Qemu-devel] [PATCH v2 09/15] tests/qapi-schema: Drop superfluous error_is_set()

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:48) > visit_type_TestStruct() does nothing when called with an error set. > Callers shouldn't do that, and no caller does. Drop the superfluous > test. > > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake Reviewed-by: Michael Roth > --- >

Re: [Qemu-devel] [PATCH v2 08/15] qapi: Drop redundant, unclean error_is_set()

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:47) > do_qmp_dispatch()'s test for qmp_dispatch_check_obj() failure examines > both the return value and the error object. The latter part is > unclean; it works only when do_qmp_dispatch()'s caller passes a > non-null errp argument. That's the case, bu

Re: [Qemu-devel] [PATCH v2 06/15] qga: Use return values instead of error_is_set(errp)

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:45) > Using error_is_set(errp) to check whether a function call failed is > fragile: it breaks when errp is null. ga_get_fd_handle() and > guest_file_handle_add() don't return a useful value when they fail, > but that's just stupid. Fix that, and check

Re: [Qemu-devel] [PATCH v2 03/15] qga: Consistently name Error ** objects errp, and not err

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:42) > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > --- > qga/commands-posix.c | 10 +- > qga/commands-win32.c | 10 +- > 2 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/qga/commands-posix.c b/qga/com

[Qemu-devel] [PATCH] target-i386: kvm: Don't enable MONITOR by default on any CPU model

2014-04-29 Thread Eduardo Habkost
KVM never supported the MONITOR flag so it doesn't make sense to have it enabled by default when KVM is enabled. The rationale here is similar to the cases where it makes sense to have a feature enabled by default on all CPU models when on KVM mode (e.g. x2apic). In this case we are having a featu

Re: [Qemu-devel] [PATCH v2 02/15] qga: Consistently name Error ** objects errp, and not err

2014-04-29 Thread Michael Roth
Quoting Markus Armbruster (2014-04-28 15:27:41) > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > --- > qga/commands-posix.c | 209 > ++- > qga/commands-win32.c | 115 ++-- > qga/commands.c | 4 +- > qg

[Qemu-devel] [PATCH 4/4] The x86 CPL is stored in CS.selector - auto update hflags accordingly.

2014-04-29 Thread Kevin O'Connor
Instead of manually calling cpu_x86_set_cpl() when the CPL changes, check for CPL changes on calls to cpu_x86_load_seg_cache(R_CS). Every location that called cpu_x86_set_cpl() also called cpu_x86_load_seg_cache(R_CS), so cpu_x86_set_cpl() is no longer required. This fixes the SMM handler code as

[Qemu-devel] [PATCH 2/4] Set eflags and cr0 prior to calling cpu_x86_load_seg_cache() in smm_helper.c.

2014-04-29 Thread Kevin O'Connor
The cpu_x86_load_seg_cache() function inspects cr0 and eflags, so make sure all changes to eflags and cr0 are done prior to loading the segment caches. Signed-off-by: Kevin O'Connor --- target-i386/smm_helper.c | 34 +- 1 file changed, 17 insertions(+), 17 deletio

[Qemu-devel] [PATCH 3/4] Set eflags prior to calling cpu_x86_load_seg_cache() in seg_helper.c.

2014-04-29 Thread Kevin O'Connor
The cpu_x86_load_seg_cache() function inspects eflags, so make sure all changes to eflags are done prior to loading the segment caches. Signed-off-by: Kevin O'Connor --- target-i386/seg_helper.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff

[Qemu-devel] [PATCH 1/4] Set eflags prior to calling svm_load_seg_cache() in svm_helper.c.

2014-04-29 Thread Kevin O'Connor
The svm_load_seg_cache() function calls cpu_x86_load_seg_cache() which inspects env->eflags. So, make sure all changes to eflags are done prior to loading the segment cache. Signed-off-by: Kevin O'Connor --- target-i386/svm_helper.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCHv2 0/4] Set eflags prior to segments; fix cpl in SMM

2014-04-29 Thread Kevin O'Connor
This patch series is an update to the patch I sent at: https://lists.gnu.org/archive/html/qemu-devel/2014-04/msg04028.html The goal of the patch series is to fix the SMM handler so that it runs with the proper cpl. I've broken the series up based on the feedback from Paolo. As with the previous

Re: [Qemu-devel] [PATCH v9 0/4] qapi: Allow modularization of QAPI schema files

2014-04-29 Thread Lluís Vilanova
Luiz Capitulino writes: > On Tue, 29 Apr 2014 21:50:10 +0200 > Markus Armbruster wrote: >> Luiz Capitulino writes: >> >> > On Fri, 25 Apr 2014 17:09:49 +0200 >> > Markus Armbruster wrote: >> > >> >> Luiz Capitulino writes: >> >> >> >> > On Sun, 13 Apr 2014 21:07:53 +0200 >> >> > Lluís Vilan

Re: [Qemu-devel] [PATCH v9 3/4] qapi: Use an explicit input file

2014-04-29 Thread Lluís Vilanova
Markus Armbruster writes: > Lluís Vilanova writes: >> Use an explicit input file on the command-line instead of reading from >> standard input > Please limit commit message line length to 70 characters. > Worth mentioning that this commit improves error messages! > :123: Borked > becomes

Re: [Qemu-devel] [PATCH v9 4/4] qapi: Add a primitive to include other files from a QAPI schema file

2014-04-29 Thread Lluís Vilanova
Markus Armbruster writes: > Lluís Vilanova writes: >> The primitive uses JSON syntax, and include paths are relative to the file >> using the directive: >> >> { 'include': 'path/to/file.json' } >> >> Signed-off-by: Lluís Vilanova >> --- >> docs/qapi-code-gen.txt | 11 +++

Re: [Qemu-devel] [PATCH v9 0/4] qapi: Allow modularization of QAPI schema files

2014-04-29 Thread Luiz Capitulino
On Tue, 29 Apr 2014 21:50:10 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > On Fri, 25 Apr 2014 17:09:49 +0200 > > Markus Armbruster wrote: > > > >> Luiz Capitulino writes: > >> > >> > On Sun, 13 Apr 2014 21:07:53 +0200 > >> > Lluís Vilanova wrote: > >> > > >> >> Adds an inc

Re: [Qemu-devel] [PATCH 5/5] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-04-29 Thread Natanael Copa
On Tue, 29 Apr 2014 09:02:13 -0600 Eric Blake wrote: > On 04/29/2014 08:53 AM, Natanael Copa wrote: > > On Tue, 29 Apr 2014 08:28:29 -0600 > > Eric Blake wrote: > > > >> On 04/29/2014 08:17 AM, Natanael Copa wrote: > >>> The __SIGRTMIN and __SIGRTMAX are glibc internals and are not available >

Re: [Qemu-devel] [PATCH v9 0/4] qapi: Allow modularization of QAPI schema files

2014-04-29 Thread Markus Armbruster
Luiz Capitulino writes: > On Fri, 25 Apr 2014 17:09:49 +0200 > Markus Armbruster wrote: > >> Luiz Capitulino writes: >> >> > On Sun, 13 Apr 2014 21:07:53 +0200 >> > Lluís Vilanova wrote: >> > >> >> Adds an include primitive to the syntax of QAPI schema files, >> >> allowing these to >> >> be

Re: [Qemu-devel] [PATCH 13/16] pci-assign: propagate errors from assigned_dev_register_regions()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > Signed-off-by: Laszlo Ersek > --- > hw/i386/kvm/pci-assign.c | 23 +-- > 1 file changed, 13 insertions(+), 10 deletions(-) > > @@ -423,13 +424,13 @@ static int assigned_dev_register_regions(PCIRegion > *io_regions, >

Re: [Qemu-devel] [PATCH 14/16] pci-assign: propagate errors from assign_device()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > Also, change the return type to "void"; the function is static (with a > sole caller) and the negative errno values are not distinguished from each > other. > > Signed-off-by: Laszlo Ersek > --- > hw/i386/kvm/pci-assign.c | 29 +++

[Qemu-devel] [PATCH] gtk: Add a scrollbar for text consoles

2014-04-29 Thread Cole Robinson
Only show the scrollbar if the content doesn't fit on the visible space. Signed-off-by: Cole Robinson --- This applies on top of Gerd's series 'gtk: cleanups continued' ui/gtk.c | 42 -- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/ui/gt

Re: [Qemu-devel] [PATCH 12/16] pci-assign: propagate errors from assigned_dev_register_msix_mmio()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > The return type is also changed from "int" to "void", because it was used > in a success vs. failure sense only (the caller didn't distinguish error > codes from each other, and even assigned_dev_register_msix_mmio() masked > mmap()'s errno values with

Re: [Qemu-devel] [PATCH 11/16] pci-assign: propagate errors from assigned_device_pci_cap_init()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > Signed-off-by: Laszlo Ersek > --- > hw/i386/kvm/pci-assign.c | 45 +++-- > 1 file changed, 19 insertions(+), 26 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Li

Re: [Qemu-devel] [PATCH v6 02/14] qcow2: Implement bdrv_make_empty()

2014-04-29 Thread Eric Blake
On 04/29/2014 09:07 AM, Max Reitz wrote: > Implement this function by making all clusters in the image file fall > through to the backing file (by using the recently extended discard). > > Signed-off-by: Max Reitz > --- > block/qcow2.c | 27 +++ > 1 file changed, 27 inser

Re: [Qemu-devel] [PATCH 10/16] pci-assign: propagate errors from get_real_device()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > Signed-off-by: Laszlo Ersek > --- > hw/i386/kvm/pci-assign.c | 40 > 1 file changed, 20 insertions(+), 20 deletions(-) > > again: > r = read(dev->config_fd, pci_dev->dev.config, > pci_conf

Re: [Qemu-devel] [PATCH 07/16] pci: add Error-propagating pci_add_capability2()

2014-04-29 Thread Eric Blake
On 04/29/2014 11:51 AM, Laszlo Ersek wrote: > On 04/29/14 19:41, Eric Blake wrote: >> On 04/10/2014 02:24 AM, Laszlo Ersek wrote: >>> ... and rebase pci_add_capability() to it. >>> >>> Signed-off-by: Laszlo Ersek >>> --- >>> +int pci_add_capability2(PCIDevice *pdev, uint8_t cap_id, >>> +

Re: [Qemu-devel] [PATCH 09/16] pci-assign: assignment should fail if we can't read config space

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > assigned_initfn() > get_real_device() > read() > > Signed-off-by: Laszlo Ersek > --- > hw/i386/kvm/pci-assign.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Eric Blake > > diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assi

Re: [Qemu-devel] [PATCH 3/3] gtk: cleanup CONFIG_VTE ifdef a bit.

2014-04-29 Thread Cole Robinson
On 04/29/2014 11:21 AM, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > ui/gtk.c | 45 ++--- > 1 file changed, 26 insertions(+), 19 deletions(-) > Reviewed-by: Cole Robinson Tested-by: Cole Robinson - Cole

Re: [Qemu-devel] [PATCH 2/3] gtk: zap vte size requests

2014-04-29 Thread Cole Robinson
On 04/29/2014 11:21 AM, Gerd Hoffmann wrote: > The vte tabs simply get the size of the vga tab then, with whatever > cols and lines are fitting in. I find this bahavior more useful than > resizing the qemu window all day long. > > YMMV. Comments are welcome. > > Signed-off-by: Gerd Hoffmann M

Re: [Qemu-devel] [PATCH 1/3] gtk: zap scrolled_window

2014-04-29 Thread Cole Robinson
On 04/29/2014 11:21 AM, Gerd Hoffmann wrote: > The vte widget implements the scrollable interface, placing it into > a scrolled window is pointless and creates a bunch of strange effects. > Zap it. > > Signed-off-by: Gerd Hoffmann > --- > ui/gtk.c | 19 ++- > 1 file changed, 2 in

Re: [Qemu-devel] [PATCH 0/8] curl: Fix hang reading from slow connections

2014-04-29 Thread Richard W.M. Jones
On Tue, Apr 29, 2014 at 04:03:24PM +0100, Matthew Booth wrote: > [PATCH 1/8] curl: Fix long line > [PATCH 2/8] curl: Remove unnecessary use of goto > [PATCH 3/8] curl: Fix return from curl_read_cb with invalid state > [PATCH 4/8] curl: Remove erroneous sleep waiting for curl completion > [PATCH 5/8

Re: [Qemu-devel] [PATCH 08/16] pci-assign: accept Error from pci_add_capability2()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > Propagate any errors while adding PCI capabilities to > assigned_device_pci_cap_init(). We'll continue the propagation upwards > when assigned_device_pci_cap_init() becomes a leaf itself (when none of > its callees will report errors internally any long

Re: [Qemu-devel] [PATCH] tci: Optimize saving of TCG code address

2014-04-29 Thread Richard Henderson
On 04/29/2014 10:33 AM, Stefan Weil wrote: > I'm still investigating whether it's necessary to set tci_tb_ptr to 0 > (as you suggested). Up to now, the TCI code did never invalidate > tci_tb_ptr, but there was no obvious indication of problems caused by > this behaviour. Oh, I mis-read this bit be

Re: [Qemu-devel] [PATCH] tci: Optimize saving of TCG code address

2014-04-29 Thread Richard Henderson
On 04/29/2014 10:33 AM, Stefan Weil wrote: > I'm still investigating whether it's necessary to set tci_tb_ptr to 0 > (as you suggested). Up to now, the TCI code did never invalidate > tci_tb_ptr, but there was no obvious indication of problems caused by > this behaviour. It should be exactly 6 lin

Re: [Qemu-devel] [PATCH 6/6] block/vdi: Error out immediately in vdi_create()

2014-04-29 Thread Stefan Weil
Am 29.04.2014 19:03, schrieb Max Reitz: > Currently, if an error occurs during the part of vdi_create() which > actually writes the image, the function stores -errno, but continues > anyway. > > Instead of trying to write data which (if it can be written at all) does > not make any sense without t

Re: [Qemu-devel] [PATCH 07/16] pci: add Error-propagating pci_add_capability2()

2014-04-29 Thread Laszlo Ersek
On 04/29/14 19:41, Eric Blake wrote: > On 04/10/2014 02:24 AM, Laszlo Ersek wrote: >> ... and rebase pci_add_capability() to it. >> >> Signed-off-by: Laszlo Ersek >> --- >> include/hw/pci/pci.h | 4 >> hw/pci/pci.c | 32 ++-- >> 2 files changed, 30 insert

Re: [Qemu-devel] [PATCH v9 4/4] qapi: Add a primitive to include other files from a QAPI schema file

2014-04-29 Thread Markus Armbruster
Lluís Vilanova writes: > The primitive uses JSON syntax, and include paths are relative to the file > using the directive: > > { 'include': 'path/to/file.json' } > > Signed-off-by: Lluís Vilanova > --- > docs/qapi-code-gen.txt | 11 + > scripts/qapi.py

Re: [Qemu-devel] [PATCH 2/6] block: Use correct width in format strings

2014-04-29 Thread Stefan Weil
Am 29.04.2014 19:03, schrieb Max Reitz: > Instead of blindly relying on a normal integer having a width of 32 bits > (which is a pretty good assumption, but we should not rely on it if > there is no need), use the correct format string macros. > The old code would only fail on platforms with size

Re: [Qemu-devel] [PATCH 07/16] pci: add Error-propagating pci_add_capability2()

2014-04-29 Thread Eric Blake
On 04/10/2014 02:24 AM, Laszlo Ersek wrote: > ... and rebase pci_add_capability() to it. > > Signed-off-by: Laszlo Ersek > --- > include/hw/pci/pci.h | 4 > hw/pci/pci.c | 32 ++-- > 2 files changed, 30 insertions(+), 6 deletions(-) > > @@ -306,10 +307

Re: [Qemu-devel] [PATCH] tci: Optimize saving of TCG code address

2014-04-29 Thread Stefan Weil
Am 29.04.2014 17:20, schrieb Richard Henderson: > On 04/28/2014 10:57 PM, Stefan Weil wrote: >> -static tcg_target_ulong tci_reg[TCG_TARGET_NB_REGS]; >> +static inline void save_tb_ptr(void *tb_ptr) >> +{ >> +#ifdef CONFIG_SOFTMMU >> +tci_tb_ptr = (uintptr_t)tb_ptr; >> +#endif >> +} >> > > W

Re: [Qemu-devel] Regression (?) due to c4177479 ('spapr: make sure RMA is in first mode of first memory node')

2014-04-29 Thread Nishanth Aravamudan
On 26.04.2014 [00:16:38 +1000], Alexey Kardashevskiy wrote: > On 04/23/2014 05:04 AM, Nishanth Aravamudan wrote: > > On 22.04.2014 [19:27:51 +1000], Benjamin Herrenschmidt wrote: > >> On Tue, 2014-04-22 at 19:12 +1000, Alexey Kardashevskiy wrote: > >>> I already have in plan to fix non-power-of-two

[Qemu-devel] [PATCH 00/10] tcg: call and move cleanups

2014-04-29 Thread Richard Henderson
There are several goals at play here: (1) We never actually use calls with a truly dynamic target. Which, honestly, is a good thing, because on select hosts means we can always use a direct branch. Rather than spend effort splitting and then recombining call targets, wh

[Qemu-devel] [PATCH 03/10] tcg-ppc: Split out tcg_out_call

2014-04-29 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c index 32f600c..9062898 100644 --- a/tcg/ppc/tcg-target.c +++ b/tcg/ppc/tcg-target.c @@ -501,7 +501,7 @@ static void

[Qemu-devel] [Bug 1314293] [NEW] screendump with qxl + spice shows stale data

2014-04-29 Thread Cole Robinson
Public bug reported: The monitor 'screendump' command returns stale data for VMs using qxl + spice. If you perform multiple screendumps, screendump #N will show roughly the display from the time screendump #N-1 was taken. This affects 'virsh screenshot' and libvirt screenshot APIs by association.

Re: [Qemu-devel] [PATCH v9 3/4] qapi: Use an explicit input file

2014-04-29 Thread Markus Armbruster
Lluís Vilanova writes: > Use an explicit input file on the command-line instead of reading from > standard input Please limit commit message line length to 70 characters. Worth mentioning that this commit improves error messages! :123: Borked becomes qapi-schema.json:123: Borked wh

Re: [Qemu-devel] [PATCH v3 05/16] tcg: Define tcg_insn_unit for codepointerss

2014-04-29 Thread Richard Henderson
On 04/29/2014 03:38 AM, Alex Bennée wrote: >> next: >> > -if (search_pc >= 0 && search_pc < s->code_ptr - gen_code_buf) { >> > +if (search_pc >= 0 >> > +&& search_pc < (intptr_t)s->code_ptr - >> > (intptr_t)gen_code_buf) { >> > return op_index; >> >

[Qemu-devel] [PATCH 5/6] block/bochs: Fix error handling for seek_to_sector()

2014-04-29 Thread Max Reitz
Currently, seek_to_sector() returns -1 both for errors and unallocated sectors, resulting in silent errors. As 0 is an invalid offset of data clusters (bitmap_offset is greater than 0 because s->data_offset is greater than 0), just return 0 for unallocated sectors and -errno in case of error. This

[Qemu-devel] [PATCH 3/6] qcow2: Catch bdrv_getlength() error

2014-04-29 Thread Max Reitz
The call to bdrv_getlength() from qcow2_check_refcounts() may result in an error. Check this and abort if necessary. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 5 + 1 file changed, 5 insertions(+) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index e6fc30e..76da3ab

[Qemu-devel] [PATCH 2/6] block: Use correct width in format strings

2014-04-29 Thread Max Reitz
Instead of blindly relying on a normal integer having a width of 32 bits (which is a pretty good assumption, but we should not rely on it if there is no need), use the correct format string macros. This does not touch DEBUG output. Signed-off-by: Max Reitz --- block/cow.c | 2 +- block/dm

[Qemu-devel] [PATCH 6/6] block/vdi: Error out immediately in vdi_create()

2014-04-29 Thread Max Reitz
Currently, if an error occurs during the part of vdi_create() which actually writes the image, the function stores -errno, but continues anyway. Instead of trying to write data which (if it can be written at all) does not make any sense without the operations before succeeding (e.g., writing the i

[Qemu-devel] [PATCH 1/6] qcow2: Avoid overflow in alloc_clusters_noref()

2014-04-29 Thread Max Reitz
alloc_clusters_noref() stores the cluster index in a uint64_t. However, offsets are often represented as int64_t (as for example the return value of alloc_clusters_noref() itself demonstrates). Therefore, we should make sure all offsets in the allocated range of clusters are representable using int

[Qemu-devel] [PATCH 4/6] qcow2: Check min_size in qcow2_grow_l1_table()

2014-04-29 Thread Max Reitz
First, new_l1_size is an int64_t, whereas min_size is a uint64_t. Therefore, during the loop which adjusts new_l1_size until it equals or exceeds min_size, new_l1_size might overflow and become negative. The comparison in the loop condition however will take it as an unsigned value (because min_siz

[Qemu-devel] [PATCH 0/6] block: Several fixes

2014-04-29 Thread Max Reitz
Max Reitz (6): qcow2: Avoid overflow in alloc_clusters_noref() block: Use correct width in format strings qcow2: Catch bdrv_getlength() error qcow2: Check min_size in qcow2_grow_l1_table() block/bochs: Fix error handling for seek_to_sector() block/vdi: Error out immediately in vdi_creat

[Qemu-devel] [PATCH 10/10] tcg: Remove unreachable code in tcg_out_op and op_defs

2014-04-29 Thread Richard Henderson
The INDEX_op_call case has just been obsoleted; the mov and movi cases have not been reachable for years. Attempt to document this both in each tcg_out_op switch, and via TCG_OPF_NOT_PRESENT. Because of the TCG_OPF_NOT_PRESENT change, this must be done for all targets in a single commit. Signed-

Re: [Qemu-devel] [PATCH v6 01/14] qcow2: Allow "full" discard

2014-04-29 Thread Eric Blake
On 04/29/2014 09:07 AM, Max Reitz wrote: > Normally, discarded sectors should read back as zero. However, there are > cases in which a sector (or rather cluster) should be discarded as if > they were never written in the first place, that is, reading them should > fall through to the backing file a

[Qemu-devel] [PATCH 08/10] tcg: Make call address a constant parameter

2014-04-29 Thread Richard Henderson
Avoid allocating a tcg temporary to hold the constant address, and instead place it directly into the op_call arguments. At the same time, convert to the newly introduced tcg_out_call backend function, rather than invoking tcg_out_op for the call. Signed-off-by: Richard Henderson --- tcg/optimi

[Qemu-devel] [PATCH 06/10] tcg-mips: Split out tcg_out_call

2014-04-29 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index eaf1745..65acc86 100644 --- a/tcg/mips/tcg-target.c +++ b/tcg/mips/tcg-target.c @@ -153,11 +153,6

[Qemu-devel] [PATCH 05/10] tcg-sparc: Create tcg_out_call

2014-04-29 Thread Richard Henderson
Rename the existing tcg_out_calli to tcg_out_call_nodelay. Signed-off-by: Richard Henderson --- tcg/sparc/tcg-target.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index 22a98fb..4f8de1e 100644 --- a/t

[Qemu-devel] [PATCH 09/10] tcg: Use tcg_target_available_regs in tcg_reg_alloc_mov

2014-04-29 Thread Richard Henderson
The move opcodes are special in that their constraints must cover all available registers. So instead of checking the constraints, just use the available registers. Signed-off-by: Richard Henderson --- tcg/tcg.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --

Re: [Qemu-devel] [PATCH v3 07/16] tcg-ppc64: DefineTCG_TARGET_INSN_UNIT_SIZEE

2014-04-29 Thread Richard Henderson
On 04/29/2014 08:41 AM, Alex Bennée wrote: > > Richard Henderson writes: > >> On 04/29/2014 04:25 AM, Alex Bennée wrote: +static void reloc_pc24(tcg_insn_unit *pc, tcg_insn_unit *target) { -*(uint32_t *)pc = (*(uint32_t *)pc & ~0x3fc) -| reloc_pc24_val(pc, ta

[Qemu-devel] [PATCH 02/10] tcg-s390: Rename tgen_calli to tcg_out_call

2014-04-29 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index ae1be1c..0ae40e1 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -1269,7 +1269,7 @@ static v

[Qemu-devel] [PATCH 04/10] tcg-ppc64: Rename tcg_out_calli to tcg_out_call

2014-04-29 Thread Richard Henderson
Merge the existing tcg_out_call into tcg_out_op. Signed-off-by: Richard Henderson --- tcg/ppc64/tcg-target.c | 37 - 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 4a0b7db..d80f2d9 100644 -

[Qemu-devel] [PATCH 07/10] tci: Create tcg_out_call

2014-04-29 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tcg/tci/tcg-target.c b/tcg/tci/tcg-target.c index 6123f9f..7425e73 100644 --- a/tcg/tci/tcg-target.c +++ b/tcg/tci/tcg-target.c @@ -549,6 +549,11 @@ static void tcg_out_movi(TCGConte

[Qemu-devel] [PATCH 01/10] tcg-i386: Rename tcg_out_calli to tcg_out_call

2014-04-29 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index eb8d2a1..48a95f8 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -1113,7 +1113,7 @@ static voi

[Qemu-devel] [PATCH] MAINTAINERS: Add myself as Memory API maintainer

2014-04-29 Thread Paolo Bonzini
I'm not including Avi since he has already removed himself from the KVM entry. I'm not going to commit my patches without review. Signed-off-by: Paolo Bonzini --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 96299dd..8913e1a 100644

Re: [Qemu-devel] [PATCH v2 0/3] kvm/s390x/ppc: kvm_enable_cap helpers

2014-04-29 Thread Alexander Graf
On 29.04.14 17:11, Cornelia Huck wrote: Here's the next version of the kvm capability helpers, again on https://github.com/cohuck/qemu.git kvm-cap-helpers Changes v1->v2: - add cap.flags parameter - function word ordering Reviewed-by: Alexander Graf Alex

  1   2   3   4   >