[Qemu-devel] [PATCH 5/6] 9pfs-proxy: remove one half of redundrand code

2015-03-06 Thread Michael Tokarev
The 9pfs-proxy code is actually terrible: it does the same things again and again, ignoring function arguments and re-inventing the same values again, and a lot of code must be consistent with each other. In particular, lots of filesystem methods use common v9fs_request() function and pass all met

[Qemu-devel] [PATCH 6/6] 9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv

2015-03-06 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- hw/9pfs/virtio-9p-proxy.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hw/9pfs/virtio-9p-proxy.c b/hw/9pfs/virtio-9p-proxy.c index aa9659a..1b62e2a 100644 --- a/hw/9pfs/virtio-9p-proxy.c +++ b/hw/9pfs/virtio-9p-proxy.c @@ -436,7 +4

[Qemu-devel] [PATCH 42/51] fix GCC 5.0.0 logical-not-parentheses warnings

2015-03-06 Thread Michael Tokarev
From: Radim Krčmář man gcc: Warn about logical not used on the left hand side operand of a comparison. This option does not warn if the RHS operand is of a boolean type. By preferring bool over int where sensible, but without modifying any depending code, make GCC happy in cases like this

[Qemu-devel] [PATCH 01/51] xen-pt: fix Negative array index read

2015-03-06 Thread Michael Tokarev
From: Gonglei Coverity spot: Function xen_pt_bar_offset_to_index() may return a negative value (-1) which is used as an index to d->io_regions[] down the line. Let's pass index directly as an argument to xen_pt_bar_reg_parse(). Signed-off-by: Gonglei Acked-by: Stefano Stabellini Signed-off-by

[Qemu-devel] [PATCH 51/51] 9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv

2015-03-06 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- hw/9pfs/virtio-9p-proxy.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hw/9pfs/virtio-9p-proxy.c b/hw/9pfs/virtio-9p-proxy.c index aa9659a..1b62e2a 100644 --- a/hw/9pfs/virtio-9p-proxy.c +++ b/hw/9pfs/virtio-9p-proxy.c @@ -436,7 +4

[Qemu-devel] [PATCH 02/51] xen-pt: fix Out-of-bounds read

2015-03-06 Thread Michael Tokarev
From: Gonglei The array length of s->real_device.io_regions[] is "PCI_NUM_REGIONS - 1". Signed-off-by: Gonglei Acked-by: Stefano Stabellini Signed-off-by: Michael Tokarev --- hw/xen/xen_pt_config_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xen/xen_pt_config_

[Qemu-devel] [PATCH 08/51] Add copyright and author after file split

2015-03-06 Thread Michael Tokarev
From: Stefan Berger Signed-off-by: Stefan Berger Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Michael Tokarev --- migration/qemu-file-buf.c | 4 1 file changed, 4 insertions(+) diff --git a/migration/qemu-file-buf.c b/migration/qemu-file-buf.c index e97e0bd..e56a8ad 100644 --- a/

[Qemu-devel] [PATCH 41/51] migration: Fix coding style (whitespace issues)

2015-03-06 Thread Michael Tokarev
From: Stefan Weil * Remove trailing whitespace (fixes 9 errors from checkpatch.pl). One comment line was longer than 80 characters, so wrap it and fix a typo, too. * Replace tabs by blanks (fixes 1 error). Signed-off-by: Stefan Weil Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Michae

[Qemu-devel] [PATCH 17/51] vfio: Remove superfluous '\n' around error_report()

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/vfio/common.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 9db7d8d..84dca91 100644 --- a/hw/vfio/common.c +++ b

[Qemu-devel] [PATCH 4/6] fsdev: introduce v9fs_vmarshal() and v9fs_vunmarshal()

2015-03-06 Thread Michael Tokarev
This splits existing functions which expects any argument into pairs, second being one which accepts va_list, to be used later. Signed-off-by: Michael Tokarev --- fsdev/virtio-9p-marshal.c | 38 -- fsdev/virtio-9p-marshal.h | 6 ++ 2 files changed, 34 ins

[Qemu-devel] [PATCH 39/51] disas/microblaze: Fix warnings caused by missing 'static' attribute

2015-03-06 Thread Michael Tokarev
From: Stefan Weil Warnings from the Sparse static analysis tool: disas/microblaze.c:289:3: warning: symbol 'opcodes' was not declared. Should it be static? disas/microblaze.c:570:6: warning: symbol 'register_prefix' was not declared. Should it be static? disas/microblaze.c:571:6: warning: sym

[Qemu-devel] [Bug 1429313] [NEW] qemu-user doesn't block target signals on entry to signal hanlder.

2015-03-06 Thread Timothy Baldwin
Public bug reported: Upon entry to a target signal handler the function process_pending_signals in linux-user/signal.c block the appropriate host signals, but signals already received and queued by Qemu are not blocked. If multiple signals arrive in quick succession this results incorrect recursio

[Qemu-devel] [PATCH 50/51] 9pfs-proxy: remove one half of redundrand code

2015-03-06 Thread Michael Tokarev
The 9pfs-proxy code is actually terrible: it does the same things again and again, ignoring function arguments and re-inventing the same values again, and a lot of code must be consistent with each other. In particular, lots of filesystem methods use common v9fs_request() function and pass all met

[Qemu-devel] [PATCH 22/51] ui: Removed unused functions

2015-03-06 Thread Michael Tokarev
From: Thomas Huth Remove qemu_console_displaystate(), qemu_remove_kbd_event_handler(), qemu_different_endianness_pixelformat() and cpkey(), since they are completely unused. Signed-off-by: Thomas Huth Reviewed-by: Gerd Hoffmann Signed-off-by: Michael Tokarev --- include/ui/console.h | 3 ---

[Qemu-devel] [PATCH 48/51] 9pfs-proxy: rename a few local variables for consistency

2015-03-06 Thread Michael Tokarev
All functions which deal with v9fs_request() use `retval' variable to hold result of the request (except some which use this value for other purposes too), but 3 use different name (ret or err). Rename these 3 for consistency. There's no actual code changes. Signed-off-by: Michael Tokarev --- h

[Qemu-devel] [PATCH 45/51] 9pfs: remove useless return

2015-03-06 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- hw/9pfs/virtio-9p-local.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c index a183eee..d05c917 100644 --- a/hw/9pfs/virtio-9p-local.c +++ b/hw/9pfs/virtio-9p-local.c @@ -332,7 +332,6 @@ static ssize_t lo

[Qemu-devel] [PATCH 18/51] xtensa: Remove superfluous '\n' around error_report()

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/xtensa/sim.c| 2 +- hw/xtensa/xtfpga.c | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/xtensa/sim.c b/hw/xtensa/sim.c index 37ea9ae..328d209 100644

[Qemu-devel] [PATCH 23/51] ui/vnc: Remove vnc_stop_worker_thread()

2015-03-06 Thread Michael Tokarev
From: Thomas Huth This function is not used anymore, let's remove it. Signed-off-by: Thomas Huth Reviewed-by: Gerd Hoffmann Signed-off-by: Michael Tokarev --- ui/vnc-jobs.c | 13 - ui/vnc-jobs.h | 1 - 2 files changed, 14 deletions(-) diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c

[Qemu-devel] [PATCH] rocker: fix clang compiler errors

2015-03-06 Thread David Ahern
Consolidate all forward typedef declarations to rocker.h. Signed-off-by: David Ahern Acked-by: Scott Feldman --- hw/net/rocker/rocker.c| 4 ++-- hw/net/rocker/rocker.h| 7 +++ hw/net/rocker/rocker_desc.c | 10 -- hw/net/rocker/rocker_desc.h | 4 hw/net/ro

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-06 Thread Andrey Korolyov
On Fri, Mar 6, 2015 at 7:57 PM, Bandan Das wrote: > Andrey Korolyov writes: > >> On Fri, Mar 6, 2015 at 1:14 AM, Andrey Korolyov wrote: >>> Hello, >>> >>> recently I`ve got a couple of shiny new Intel 2620v2s for future >>> replacement of the E5-2620v1, but I experienced relatively many events >

[Qemu-devel] [PATCH 49/51] fsdev: introduce v9fs_vmarshal() and v9fs_vunmarshal()

2015-03-06 Thread Michael Tokarev
This splits existing functions which expects any argument into pairs, second being one which accepts va_list, to be used later. Signed-off-by: Michael Tokarev --- fsdev/virtio-9p-marshal.c | 38 -- fsdev/virtio-9p-marshal.h | 6 ++ 2 files changed, 34 ins

[Qemu-devel] [PATCH 06/51] qemu-options: fix/document -incoming options

2015-03-06 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- qemu-options.hx | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index ee4b223..303d13c 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -3195,12 +3195,30 @@ Set TB size. ETEXI

[Qemu-devel] [PATCH 27/51] qemu-char: add cyrillic key 'numerosign' to Russian keymap

2015-03-06 Thread Michael Tokarev
From: Wang Xin numero sign is the number sign key of Russian keyboard layout, we get this key with 'shift + 3'. It's missing in current Russian keymap file, this patch fixes it. As number sign does not exsit in Russian keyboard layout[1][2], this patch also removes the 'numbersign' from Russian k

[Qemu-devel] [PATCH 46/51] 9pfs-proxy: simplify v9fs_request() a bit

2015-03-06 Thread Michael Tokarev
This simplifies code in v9fs_request() a bit by replacing several ifs with a common variable check and rearranging error/cleanup code a bit. Signet-off-by: Michael Tokarev --- hw/9pfs/virtio-9p-proxy.c | 48 --- 1 file changed, 20 insertions(+), 28 del

[Qemu-devel] [PATCH 04/51] memsave: Improve and disambiguate error message

2015-03-06 Thread Michael Tokarev
From: Borislav Petkov When requesting a size which cannot be read, the error message shows a different address which is misleading to the user and it looks like something's wrong with the address parsing. This is because the input @addr variable is incremented in the memory dumping loop: (qemu)

[Qemu-devel] [PATCH 32/51] sysbus: fix memory leak

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- hw/core/sysbus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c index 84af593..b53c351 100644 --- a/hw/core/sysbus.c +++ b/hw/core/sysbus.c @@ -91,6 +91,8 @@ bool sysbus_has_irq(S

Re: [Qemu-devel] clang warnings too noisy

2015-03-06 Thread Peter Maydell
On 7 March 2015 at 04:06, Stefan Hajnoczi wrote: > Hi Peter, > You are rejecting pull requests that produce warnings under clang. > > clang 3.5.0 on Fedora 21 produces so much noise that it's extremely > tedious and error-prone to try finding relevant new warnings. > > Are you using a different cl

[Qemu-devel] [PATCH 05/51] smbios: document cmdline options for smbios type 2-4, 17 structures

2015-03-06 Thread Michael Tokarev
From: "Gabriel L. Somlo" Signed-off-by: Gabriel Somlo Signed-off-by: Michael Tokarev --- qemu-options.hx | 32 +--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 85ca3ad..ee4b223 100644 --- a/qemu-options.hx +

[Qemu-devel] [PATCH 19/51] tpm: Remove superfluous '\n' around error_report()

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/tpm/tpm_passthrough.c | 12 ++-- tpm.c| 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/tpm/tpm_passthrough.c b/hw/tpm/tpm_passthrough

[Qemu-devel] [PATCH 14/51] numa: remove superfluous '\n' around error_setg

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- numa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/numa.c b/numa.c index 5634bf0..ffbec68 100644 --- a/numa.c +++ b/numa.c @@ -66,7 +66,7 @@ static void numa_no

[Qemu-devel] [PATCH 21/51] vhost: Remove superfluous '\n' around error_report()

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/virtio/vhost-backend.c | 2 +- net/vhost-user.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c ind

[Qemu-devel] [PATCH 25/51] qapi-schema: Fix SpiceChannel docs

2015-03-06 Thread Michael Tokarev
From: Cole Robinson The value is called channel-type, not connection-type Signed-off-by: Cole Robinson Reviewed-by: Eric Blake Signed-off-by: Michael Tokarev --- qapi-schema.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json ind

[Qemu-devel] [PATCH 09/51] qerror.h: Swap definitions that were not in alphabetical order

2015-03-06 Thread Michael Tokarev
From: Alberto Garcia Signed-off-by: Alberto Garcia Reviewed-by: John Snow Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- include/qapi/qmp/qerror.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.

Re: [Qemu-devel] [PATCH 3/3] 9pfs-proxy: remove one half of redundrand code

2015-03-06 Thread Michael Tokarev
07.03.2015 00:43, Michael Tokarev пишет: > +retval = v9fs_marshal(&proxy->out_iovec, 1, PROXY_HDR_SZ, 0, fmt, ap); This should be the new v9fs_vmarshal() ofcourse. /mjt

[Qemu-devel] [PATCH 2/3] fsdev: introduce v9fs_vmarshal() and v9fs_vunmarshal()

2015-03-06 Thread Michael Tokarev
This splits existing functions which expects any argument into pairs, second being one which accepts va_list, to be used later. Signed-off-by: Michael Tokarev --- fsdev/virtio-9p-marshal.c | 38 -- fsdev/virtio-9p-marshal.h | 6 ++ 2 files changed, 34 ins

[Qemu-devel] [PATCH 1/3] 9pfs-proxy: simplify error handling

2015-03-06 Thread Michael Tokarev
All filesystem methods that call common v9fs_request() function also convert return value to errno. Move this conversion to the common function and remove redundand error handling in methods. I didn't remove local `retval' variable in simple functions to keep the code consistent. Also, proxy_tru

[Qemu-devel] [PATCH 3/3] 9pfs-proxy: remove one half of redundrand code

2015-03-06 Thread Michael Tokarev
The 9pfs-proxy code is actually terrible: it does the same things again and again, ignoring function arguments and re-inventing the same values again, and a lot of code must be consistent with each other. In particular, lots of filesystem methods use common v9fs_request() function and pass all met

[Qemu-devel] [PATCH v3 0/3] RFC: 9pfs-proxy: simplify/cleanup

2015-03-06 Thread Michael Tokarev
Try to make the code a bit less ugly. First by moving errno = -retval to a common place, and second by simplifying common place a lot. What's left is v9fs_receive_response(). V3: merge several small patches into larger ones, drop trivial stuff Michael Tokarev (3): 9pfs-proxy: simplify err

[Qemu-devel] [PATCH 26/51] qemu-char: add cyrillic characters 'numerosign' to VNC keysyms

2015-03-06 Thread Michael Tokarev
From: Wang Xin This patch adds missing cyrillic character 'numerosign' to the VNC keysym table, it's needed by Russian keyboard. And I get the keysym from '', the current keysym table in Qemu was generated from it. Signed-off-by: Wang xin Signed-off-by: Gonglei Signed-off-by: Michael Tokarev

[Qemu-devel] [PATCH 40/51] oslib-posix: Fix compiler warning (-Wclobbered) and simplify the code

2015-03-06 Thread Michael Tokarev
From: Stefan Weil gcc reports this warning with -Wclobbered: util/oslib-posix.c: In function ‘os_mem_prealloc’: util/oslib-posix.c:374:49: error: argument ‘memory’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered] Fix this and simplify the code by using an existing macro. Signed-

[Qemu-devel] [PATCH 03/51] xilinx_ethlite: Clean up after commit 2f991ad

2015-03-06 Thread Michael Tokarev
From: Markus Armbruster The "fall through" added by the commit is clearly intentional. Mark it so. Hushes up Coverity. Signed-off-by: Markus Armbruster Reviewed-by: Peter Crosthwaite Signed-off-by: Michael Tokarev --- hw/net/xilinx_ethlite.c | 1 + 1 file changed, 1 insertion(+) diff --gi

[Qemu-devel] [PATCH 11/51] block: remove superfluous '\n' around error_report/error_setg

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- block/archipelago.c | 6 +++--- hw/block/nand.c | 2 +- qemu-img.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/block/archipelago.c b/block/archipelago

[Qemu-devel] [PATCH 29/51] sparc/leon3.c: fix memory leak

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- hw/sparc/leon3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index 751392e..e41ec0b 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -186,6 +186,7 @@ static void leon3_gen

[Qemu-devel] [PATCH 35/51] e500: fix memory leak

2015-03-06 Thread Michael Tokarev
Signed-off-by: Michael Tokarev Reviewed-by: Paolo Bonzini Reviewed-by: Stefan Weil --- hw/ppc/e500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 7e17d18..a8237a3 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -308,6 +308,7 @@ static int ppce500_loa

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add jcody as blockjobs, block devices maintainer

2015-03-06 Thread Richard W.M. Jones
On Fri, Mar 06, 2015 at 03:08:29PM -0600, Stefan Hajnoczi wrote: > You don't need to do anything different. Jeff will make sure your acked > patches get merged instead of Kevin or me once this MAINTAINERS commit > is in qemu.git/master. Sounds sensible, thanks Jeff. Rich. -- Richard Jones, Vir

Re: [Qemu-devel] [PATCH 0/6 v5] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-03-06 Thread Chen Gang
Hello All: I have to leave Sunrus, the mail address (gang.c...@sunrus.com.cn) will be closed soon (Sunrus will be closed soon because of money, I guess). I change my new email address (xili_gchen_5...@hotmail.com) to continue communicating. gang.chen.5...@gmail.com is still have effect, but it is

Re: [Qemu-devel] [PATCH 0/6 v5] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-03-06 Thread Chen Gang
Hello All: I have to leave Sunrus, the mail address (gang.c...@sunrus.com.cn) will be closed soon (Sunrus will be closed soon because of money, I guess). I change my new email address (xili_gchen_5...@hotmail.com) to continue communicating. gang.chen.5...@gmail.com is still have effect, but it is

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add jcody as blockjobs, block devices maintainer

2015-03-06 Thread Jeff Cody
On Fri, Mar 06, 2015 at 03:08:29PM -0600, Stefan Hajnoczi wrote: > On Fri, Mar 06, 2015 at 12:16:06PM -0500, Jeff Cody wrote: > > The block layer maintainership is being split up into smaller, more > > manageable pieces. > > > > I propose that I take over / assist with the following areas: > > >

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add jcody as blockjobs, block devices maintainer

2015-03-06 Thread Stefan Hajnoczi
On Fri, Mar 06, 2015 at 12:16:06PM -0500, Jeff Cody wrote: > The block layer maintainership is being split up into smaller, more > manageable pieces. > > I propose that I take over / assist with the following areas: > > * blockjobs > * archipelago > * curl > * gluster > * nfs

[Qemu-devel] [PATCH 44/51] gdbstub: avoid possible NULL pointer dereference

2015-03-06 Thread Michael Tokarev
From: Paolo Bonzini Coverity reports that s->chr is checked after put_packet dereferences it. Move the check earlier, consistent with the code used for user-mode emulation. Signed-off-by: Paolo Bonzini Signed-off-by: Michael Tokarev --- gdbstub.c | 8 +--- 1 file changed, 5 insertions(+),

[Qemu-devel] [PATCH 43/51] milkymist-pfpu: fix GCC 5.0.0 aggressive-loop-optimizations warning

2015-03-06 Thread Michael Tokarev
From: Radim Krčmář man gcc: Warn if in a loop with constant number of iterations the compiler detects undefined behavior in some statement during one or more of the iterations. Milkymist pfpu has no jump instructions, so checking for MICROCODE_WORDS instructions should have kept us in boun

[Qemu-devel] [PATCH 34/51] gitignore: Ignore new tests

2015-03-06 Thread Michael Tokarev
From: Cole Robinson Signed-off-by: Cole Robinson Signed-off-by: Michael Tokarev --- tests/.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/.gitignore b/tests/.gitignore index e2e4957..0dcb618 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -5,6 +5,7 @@ check-qjso

[Qemu-devel] [PATCH 12/51] a9gtimer: remove superfluous '\n' around error_setg

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/timer/a9gtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/timer/a9gtimer.c b/hw/timer/a9gtimer.c index 435142a..b087bbd 100644 --- a/hw/timer/a9gtimer.c +++

[Qemu-devel] [PATCH 36/51] vhost_net: Add missing 'static' attribute

2015-03-06 Thread Michael Tokarev
From: Stefan Weil This fixes a warning from smatch. Signed-off-by: Stefan Weil Signed-off-by: Michael Tokarev --- hw/net/vhost_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index 4e3a061..ebfb6db 100644 --- a/hw/net/vhost_net

[Qemu-devel] [PATCH 13/51] pl330.c: remove superfluous '\n' around error_setg

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/dma/pl330.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 16cf77e..5be3df5 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c

Re: [Qemu-devel] [PULL v2 00/11] Net patches

2015-03-06 Thread Stefan Hajnoczi
On Tue, Mar 03, 2015 at 11:50:33PM +0900, Peter Maydell wrote: > On 28 February 2015 at 02:07, Stefan Hajnoczi wrote: > > v2: > > * Squash in Jiri's fix for rocker format string specifiers [Peter] > > * Squash in Windows build fix [Peter] > > * Both build fixes are described in "rocker: add new

[Qemu-devel] [PATCH 31/51] milkymist.c: fix memory leak

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- hw/lm32/milkymist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/lm32/milkymist.c b/hw/lm32/milkymist.c index 256c102..7f62261 100644 --- a/hw/lm32/milkymist.c +++ b/hw/lm32/milkymist.c @@ -155,6 +155,7 @@ milkym

[Qemu-devel] [PATCH 07/51] cutils: refine strtol error handling in parse_debug_env

2015-03-06 Thread Michael Tokarev
From: Paolo Bonzini Avoid truncation of a 64-bit long to a 32-bit int, and check for errno (especially ERANGE). Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Michael Tokarev --- util/cutils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/

[Qemu-devel] [PATCH 2/6] 9pfs-proxy: simplify error handling

2015-03-06 Thread Michael Tokarev
All filesystem methods that call common v9fs_request() function also convert return value to errno. Move this conversion to the common function and remove redundand error handling in methods. I didn't remove local `retval' variable in simple functions to keep the code consistent. Also, proxy_tru

[Qemu-devel] [PATCH 10/51] qmp-commands.hx: Fix several typos

2015-03-06 Thread Michael Tokarev
From: Alberto Garcia Signed-off-by: Alberto Garcia Reviewed-by: Eric Blake Signed-off-by: Michael Tokarev --- qmp-commands.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index a85d847..c12334a 100644 --- a/qmp-commands.hx +++ b/q

[Qemu-devel] [PATCH 47/51] 9pfs-proxy: simplify error handling

2015-03-06 Thread Michael Tokarev
All filesystem methods that call common v9fs_request() function also convert return value to errno. Move this conversion to the common function and remove redundand error handling in methods. I didn't remove local `retval' variable in simple functions to keep the code consistent. Also, proxy_tru

[Qemu-devel] [PATCH 20/51] arm/digic_boards: Remove superfluous '\n' around error_report()

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/arm/digic_boards.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 2a4b872..7114c36 100644 --- a/hw/arm/digic

Re: [Qemu-devel] [PATCH v2 0/6] rfc: 9pfs-proxy simplification/cleanup

2015-03-06 Thread Michael Tokarev
I forgot to clean up the temp dir so the result is a hmessy mix of 2 patchsets, one from trivial patches and another this 9pfs code (actually it was me executing git-format-patch twice in a row, once with a wrong starting point and next with corrected starting point). I'm sorry for this. Somehow

Re: [Qemu-devel] [PATCH v4 2/5] target-i386: Remove unused APIC ID default code

2015-03-06 Thread Eduardo Habkost
On Thu, Mar 05, 2015 at 03:46:13PM -0300, Eduardo Habkost wrote: > On Thu, Mar 05, 2015 at 07:35:17PM +0100, Andreas Färber wrote: > > Am 05.03.2015 um 14:43 schrieb Eduardo Habkost: > > > On Tue, Mar 03, 2015 at 11:13:41PM -0300, Eduardo Habkost wrote: > > >> The existing apic_id = cpu_index code

[Qemu-devel] [PATCH 16/51] vhost-scsi: Remove superfluous '\n' around error_report()

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- hw/scsi/vhost-scsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c index 618b0af..335f442 100644 --- a/hw/scsi/vhost-s

[Qemu-devel] [PATCH 30/51] macio: fix possible memory leak

2015-03-06 Thread Michael Tokarev
From: Gonglei If ret = macio_initfn_ide() is less than 0, the timer_memory will leak the memory it points to. Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- hw/misc/macio/macio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/misc/macio/macio.c b/hw/misc/m

[Qemu-devel] [PATCH 3/6] 9pfs-proxy: rename a few local variables for consistency

2015-03-06 Thread Michael Tokarev
All functions which deal with v9fs_request() use `retval' variable to hold result of the request (except some which use this value for other purposes too), but 3 use different name (ret or err). Rename these 3 for consistency. There's no actual code changes. Signed-off-by: Michael Tokarev --- h

[Qemu-devel] [PATCH 33/51] gitignore: Track common.env in iotests gitignore

2015-03-06 Thread Michael Tokarev
From: Cole Robinson Rather than track it in the toplevel gitignore Signed-off-by: Cole Robinson Signed-off-by: Michael Tokarev --- .gitignore| 1 - tests/qemu-iotests/.gitignore | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore ind

[Qemu-devel] [PATCH 37/51] disas/arm: Fix warnings caused by missing 'static' attribute

2015-03-06 Thread Michael Tokarev
From: Stefan Weil Warnings from the Sparse static analysis tool: disas/arm.c:1552:15: warning: symbol 'last_type' was not declared. Should it be static? disas/arm.c:1553:5: warning: symbol 'last_mapping_sym' was not declared. Should it be static? disas/arm.c:1554:9: warning: symbol 'last_mapp

[Qemu-devel] [PATCH 28/51] nbd: fix resource leak

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- block/nbd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/nbd.c b/block/nbd.c index 697c021..6634a69 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -274,6 +274,7 @@ static int nbd_open(BlockDriverState *bs, QDic

[Qemu-devel] [PATCH 15/51] Remove superfluous '\n' around error_report()

2015-03-06 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- exec.c | 2 +- hw/ide/pci.c | 2 +- hw/microblaze/boot.c | 2 +- migration/rdma.c | 2 +- target-s390x/kvm.c | 2 +- trace/control.c | 2 +- 6 files changed,

[Qemu-devel] [PATCH 1/6] 9pfs-proxy: simplify v9fs_request() a bit

2015-03-06 Thread Michael Tokarev
This simplifies code in v9fs_request() a bit by replacing several ifs with a common variable check and rearranging error/cleanup code a bit. Signet-off-by: Michael Tokarev --- hw/9pfs/virtio-9p-proxy.c | 48 --- 1 file changed, 20 insertions(+), 28 del

[Qemu-devel] [PATCH 38/51] disas/cris: Fix warning caused by missing 'static' attribute

2015-03-06 Thread Michael Tokarev
From: Stefan Weil Warning from the Sparse static analysis tool: disas/cris.c:1218:26: warning: symbol 'cris_cond15s' was not declared. Should it be static? Signed-off-by: Stefan Weil Signed-off-by: Michael Tokarev --- disas/cris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v2 0/6] rfc: 9pfs-proxy simplification/cleanup

2015-03-06 Thread Michael Tokarev
9pfs-proxy code is terrible. Not only it does lots of memory allocations for every filesystem operation, the code is also badly written. For example, all filesystem operation methods call a common function, v9fs_request(), and passes all info about method arguments, including argument types, to i

[Qemu-devel] [PATCH 24/51] xen: Remove xen_cmos_set_s3_resume()

2015-03-06 Thread Michael Tokarev
From: Thomas Huth The function is not used anymore, and thus can be deleted. Signed-off-by: Thomas Huth Acked-by: Stefano Stabellini Signed-off-by: Michael Tokarev --- include/hw/xen/xen.h | 1 - xen-hvm-stub.c | 4 2 files changed, 5 deletions(-) diff --git a/include/hw/xen/xen.

Re: [Qemu-devel] mfocrf missing on e500v2

2015-03-06 Thread Richard Henderson
On 03/06/2015 08:04 AM, Alexander Graf wrote: > Hi Richard, > > I've finally managed to check out why my e500v2 automated tests fail to > run. Apparently they break because autotest wants to execute target code > and runs into an illegal instruction while doing that: > > Program received signal S

[Qemu-devel] clang warnings too noisy

2015-03-06 Thread Stefan Hajnoczi
Hi Peter, You are rejecting pull requests that produce warnings under clang. clang 3.5.0 on Fedora 21 produces so much noise that it's extremely tedious and error-prone to try finding relevant new warnings. Are you using a different clang version which produces fewer warnings? Is anyone working

[Qemu-devel] [RFC PATCH 5/6] vga: flag vram as incoherent

2015-03-06 Thread Andrew Jones
Signed-off-by: Andrew Jones --- hw/display/vga.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/vga.c b/hw/display/vga.c index c8c49abc6e8ba..2b74eb8e96462 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -2135,6 +2135,7 @@ void vga_common_init(VGACommonState *s, Object *ob

[Qemu-devel] [RFC PATCH 4/6] kvm-all: set KVM_MEM_INCOHERENT

2015-03-06 Thread Andrew Jones
Signed-off-by: Andrew Jones --- kvm-all.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kvm-all.c b/kvm-all.c index 507fa7204e062..924b4a0bec21c 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -305,6 +305,9 @@ static int kvm_mem_flags(MemoryRegion *mr) if (readonly && kvm_readonly_mem_all

[Qemu-devel] [RFC PATCH 1/6] memory: add incoherent cache flag

2015-03-06 Thread Andrew Jones
Add an incoherent cache flag, which indicates the region needs explicit cache maintenance. Signed-off-by: Andrew Jones --- include/exec/memory.h | 23 +++ memory.c | 15 +++ 2 files changed, 38 insertions(+) diff --git a/include/exec/memory.h b/inclu

[Qemu-devel] [RFC/WIP PATCH 6/6] memory: add clear_cache_to_poc

2015-03-06 Thread Andrew Jones
Add a function that flushes the cache to PoC. We need a new function because __builtin___clear_cache only flushes to PoU. Call this function each time an address in a memory region that has been flagged as having an incoherent cache is written. For starters we only implement it for ARM. Most other

Re: [Qemu-devel] Reopen file descriptors on 'cont' command

2015-03-06 Thread Christopher Pereira
On 06-03-2015 14:19, Stefan Hajnoczi wrote: On Wed, Feb 25, 2015 at 09:32:18PM -0300, Christopher Pereira wrote: Does qemu reopen files on a 'cont' command? When working with images on a gluster volume, file descriptors may get into a bad state because of network timeouts, remounting a share, e

[Qemu-devel] [RFC PATCH 0/6] support KVM_MEM_INCOHERENT

2015-03-06 Thread Andrew Jones
Add support for the new KVM_MEM_INCOHERENT flag, and flag appropriate memory. (Only flags vram for now.) Patch 6/6 doesn't appear to be complete. While the VGA output is 99% corruption free, it's not perfect, so it's missing flushes somewhere... Andrew Jones (6): memory: add incoherent cache f

[Qemu-devel] [PATCH 3/6] kvm-all: put kvm_mem_flags to more work

2015-03-06 Thread Andrew Jones
Currently kvm_mem_flags just translates bools to bits, let's make it also determine the bools first. This avoids its parameter list growing each time we add a flag. Signed-off-by: Andrew Jones --- Posted this, as it makes sense without this series. http://lists.gnu.org/archive/html/qemu-devel/201

[Qemu-devel] [RFC PATCH 5/6] KVM: ARM: implement kvm_*_incoherent_memory_regions

2015-03-06 Thread Andrew Jones
Add the kvm_*_incoherent_memory_regions calls to arm's kvm_arch_vcpu_ioctl_run and implement the corresponding arch flush/invalidate functions. Signed-off-by: Andrew Jones --- arch/arm/include/uapi/asm/kvm.h | 1 + arch/arm/kvm/arm.c| 4 +++ arch/arm/kvm/mmu.c

[Qemu-devel] [RFC PATCH 6/6] KVM: ARM: no need for kvm_arch_flush_incoherent

2015-03-06 Thread Andrew Jones
kvm_arch_flush_incoherent makes things too slow, and we don't need it. Userspace can flush for us, as the necessary cache maintenance instruction is not (necessarily) privileged. Signed-off-by: Andrew Jones --- arch/arm/kvm/mmu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm

[Qemu-devel] [RFC PATCH 2/6] KVM: Introduce incoherent cache maintenance API

2015-03-06 Thread Andrew Jones
Add two new memslot functions to the API kvm_flush_incoherent_memory_regions flush all KVM_MEM_INCOHERENT memslot addresses kvm_invalidate_incoherent_memory_regions invalidate all KVM_MEM_INCOHERENT memslot addresses Signed-off-by: Andrew Jones --- include/linux/kvm_host.h | 14 +++

[Qemu-devel] [RFC PATCH 2/6] HACK: linux header update

2015-03-06 Thread Andrew Jones
Should do a proper update-linux-headers.sh update. Signed-off-by: Andrew Jones --- linux-headers/linux/kvm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 12045a11c036b..d04e2d781c43b 100644 --- a/linux-headers/linux/kvm.h +++ b/l

[Qemu-devel] [RFC PATCH 0/6] flush/invalidate on entry/exit

2015-03-06 Thread Andrew Jones
Userspace flags memory regions as incoherent and kvm flushes/ invalidates those regions on entry/exit from userspace. Result before patch 6/6: restores coherency, way t sloow Result with patch 6/6: fast again - well, we removed the code... Andrew Jones (6): kvm: promote KVM_MEMSLO

[Qemu-devel] [RFC PATCH 4/6] KVM: ARM: extend __coherent_cache_guest_page

2015-03-06 Thread Andrew Jones
Also support only invalidating, rather than always invalidate+clear. Signed-off-by: Andrew Jones --- arch/arm/include/asm/kvm_mmu.h | 7 +-- arch/arm/kvm/mmu.c | 2 +- arch/arm64/include/asm/kvm_mmu.h | 7 +-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [RFC PATCH 3/6] KVM: ARM: change __coherent_cache_guest_page interface

2015-03-06 Thread Andrew Jones
Remove the vcpu parameter. We can do this by doing the same query in the caller of __coherent_cache_guest_page, and then folding the result into its ipa_uncached parameter, which we rename to need_flush. A later patch will add a new caller for __coherent_cache_guest_page that does not have a vcpu

[Qemu-devel] [RFC PATCH 1/6] kvm: promote KVM_MEMSLOT_INCOHERENT to uapi

2015-03-06 Thread Andrew Jones
Signed-off-by: Andrew Jones --- arch/arm/kvm/mmu.c | 9 +++-- include/linux/kvm_host.h | 1 - include/uapi/linux/kvm.h | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index bcc1b3ad2adce..a806e8cecc01b 100644 --- a/arch/arm/k

[Qemu-devel] the arm cache coherency cluster

2015-03-06 Thread Andrew Jones
In reply to this message I'll send two series' one for KVM and one for QEMU. The two series' are their respective component complements, and attempt to implement cache coherency for arm guests using emulated devices, where the emulator (qemu) uses cached memory for the device memory, but the guest

Re: [Qemu-devel] [RFC 0/1] Rolling stats on colo

2015-03-06 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > On 2015/3/5 21:31, Dr. David Alan Gilbert (git) wrote: > >From: "Dr. David Alan Gilbert" > > Hi Dave, > > > > >Hi, > > I'm getting COLO running on a couple of our machines here > >and wanted to see what was actually going on, so I merge

Re: [Qemu-devel] [PATCH v3 for-2.3 04/24] acpi: add aml_index() term

2015-03-06 Thread Marcel Apfelbaum
On 03/06/2015 12:40 PM, Igor Mammedov wrote: On Thu, 5 Mar 2015 16:55:02 +0200 Marcel Apfelbaum wrote: Add encoding for ACPI DefIndex Opcode. Signed-off-by: Marcel Apfelbaum --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertio

Re: [Qemu-devel] mfocrf missing on e500v2

2015-03-06 Thread Maciej W. Rozycki
On Fri, 6 Mar 2015, Alexander Graf wrote: > >> And lo and behold, I really couldn't find any reference to mfocrf in the > >> e500v2 spec. > > > > Do real e500 processors trap on this operation as well? > > The illegal instruction I posted about above was when running qemu > *on* e500v2, becau

Re: [Qemu-devel] mfocrf missing on e500v2

2015-03-06 Thread Alexander Graf
> Am 06.03.2015 um 18:20 schrieb Maciej W. Rozycki : > >> On Fri, 6 Mar 2015, Alexander Graf wrote: >> >> I've finally managed to check out why my e500v2 automated tests fail to >> run. Apparently they break because autotest wants to execute target code >> and runs into an illegal instruction

Re: [Qemu-devel] qemu crash in coroutine bdrv_co_do_rw

2015-03-06 Thread Stefan Hajnoczi
On Thu, Feb 26, 2015 at 10:29:57AM +0100, Christian Borntraeger wrote: > is this some know issue? Under heavy load with lots of dataplane devices I > sometimes get a segfault in the bdrc_co_do_rw routine: > > #0 bdrv_co_do_rw (opaque=0x0) at /home/cborntra/REPOS/qemu/block.c:4791 > 4791 if

Re: [Qemu-devel] mfocrf missing on e500v2

2015-03-06 Thread Maciej W. Rozycki
On Fri, 6 Mar 2015, Alexander Graf wrote: > I've finally managed to check out why my e500v2 automated tests fail to > run. Apparently they break because autotest wants to execute target code > and runs into an illegal instruction while doing that: > > Program received signal SIGILL, Illegal instr

Re: [Qemu-devel] Reopen file descriptors on 'cont' command

2015-03-06 Thread Stefan Hajnoczi
On Wed, Feb 25, 2015 at 09:32:18PM -0300, Christopher Pereira wrote: > Does qemu reopen files on a 'cont' command? > > When working with images on a gluster volume, file descriptors may get into > a bad state because of network timeouts, remounting a share, etc...and > reinitializing file descript

  1   2   >