[Qemu-devel] [PATCH RFC 1/5] serial-pci: Avoid qerror_report_err() outside QMP command handlers

2015-02-28 Thread zhanghailiang
qerror_report_err() is a transitional interface to help with converting existing monitor commands to QMP. It should not be used elsewhere. Replace by error_report_err() in serial_pci_init() and multi_serial_pci_init(). Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com ---

[Qemu-devel] [PATCH RFC 3/5] pci-hotplug-old: Avoid qerror_report_err() outside QMP command handlers

2015-02-28 Thread zhanghailiang
qerror_report_err() is a transitional interface to help with converting existing monitor commands to QMP. It should not be used elsewhere. Replace by error_report_err() in qemu_pci_hot_add_nic(). Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com --- hw/pci/pci-hotplug-old.c | 3 +-- 1

Re: [Qemu-devel] [PATCH v2 00/11] trivial: Remove superfluous '\n' around error_report/error_setg

2015-02-28 Thread Michael Tokarev
25.02.2015 07:22, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com v2 - v1: - remove superfluous in patch 3. (Michael Tokarev) - move qemu-img.c hunk from patch 5 to patch 1. (Markus) - add 'R-by' tag for this patch series. Yestoday, I found that some files have

Re: [Qemu-devel] [PATCH v2 0/2] Fix key 'numerosign' missing in Russian keyboard

2015-02-28 Thread Michael Tokarev
28.02.2015 11:33, arei.gong...@huawei.com wrote: From: Wang Xin wangxinxin.w...@huawei.com Add the keysym and keycode of 'numerosign' in Russian keyboard layout to VNC keysyms table and keymap. v2-v1: Remove the key 'numbersign' from Russian keymap as it is not exsit in Russian

Re: [Qemu-devel] [PATCH] migration/rdma: clean up qemu_rdma_dest_init a bit

2015-02-28 Thread Michael Tokarev
19.02.2015 13:25, Dr. David Alan Gilbert wrote: * Michael Tokarev (m...@tls.msk.ru) wrote: Do not check for rdma-host being empty twice. This removes a large if block, so code indentation is changed. While at it, remove an ugly goto from the loop, replacing it with a cleaner if logic. And

[Qemu-devel] [PATCH RFC 5/5] savevm: Replace error_report() error_free() with error_report_err()

2015-02-28 Thread zhanghailiang
Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com --- savevm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index ce2b6a2..c4f8c39 100644 --- a/savevm.c +++ b/savevm.c @@ -932,8 +932,7 @@ int qemu_loadvm_state(QEMUFile *f) int ret;

[Qemu-devel] [PATCH RFC 2/5] qdev: Avoid qerror_report_err() outside QMP command handlers

2015-02-28 Thread zhanghailiang
qerror_report_err() is a transitional interface to help with converting existing monitor commands to QMP. It should not be used elsewhere. Replace by error_report_err() in qdev_init() and device_post_init(). Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com --- hw/core/qdev.c | 6

[Qemu-devel] [PATCH RFC 0/5] Another patchset try to clean up around qerror_report_err()

2015-02-28 Thread zhanghailiang
Hi, I have noticed Markus's previous patchset Clean up around error_get_pretty(), qerror_report_err(). This is another patch series trying to do the same thing. I'm not sure if he has missed this places or these modifies are false. So, please review... Thanks. zhanghailiang (5):

Re: [Qemu-devel] [PATCH] Add copyright and author after file split

2015-02-28 Thread Michael Tokarev
Applied to -trivial, thank you! /mjt

Re: [Qemu-devel] [PATCH 5/9] e500: fix memory leak

2015-02-28 Thread Michael Tokarev
27.02.2015 10:50, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/ppc/e500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 7e17d18..38203a6 100644 --- a/hw/ppc/e500.c

Re: [Qemu-devel] [PATCH 6/9] 9pfs: fix memory leak

2015-02-28 Thread Michael Tokarev
27.02.2015 10:50, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/9pfs/virtio-9p-local.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hw/9pfs/virtio-9p-local.c

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

2015-02-28 Thread Michael Tokarev
Applied to -trivial, thank you! Markus, should I add your Reviewed-By (or Acked-By)? /mjt

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

2015-02-28 Thread arei.gonglei
From: Wang Xin wangxinxin.w...@huawei.com numero sign is the number sign key of Russian keyboard layout, we get this key with press 'shift + 3'. It's missing in current Russian keymap file, this patch fix it. As number sign is not exsit in Russian keyboard layout[1][2], this patch also remove the

[Qemu-devel] [PATCH v2 0/2] Fix key 'numerosign' missing in Russian keyboard

2015-02-28 Thread arei.gonglei
From: Wang Xin wangxinxin.w...@huawei.com Add the keysym and keycode of 'numerosign' in Russian keyboard layout to VNC keysyms table and keymap. v2-v1: Remove the key 'numbersign' from Russian keymap as it is not exsit in Russian keyboard layout. Wang Xin (2): qemu-char: add cyrillic

[Qemu-devel] [PATCH v2 1/2] qemu-char: add cyrillic characters 'numerosign' to VNC keysyms

2015-02-28 Thread arei.gonglei
From: Wang Xin wangxinxin.w...@huawei.com This patch adds missing cyrillic characters 'numerosign' to the VNC keysym table, it's need by Russian keyboard. And I get the keysym from 'X11/keysymdef.h', the current keysym table in Qemu was generated from it. Signed-off-by: Wang xin

[Qemu-devel] [PATCH] vhost user:support vhost user nic for non msi guests

2015-02-28 Thread gaohaifeng
From: Haifeng Gao gaohaifeng@huawei.com Currently, vhost user nic doesn't support non msi guests(like pxe stage) by default. Vhost user nic can't fall back to qemu like normal vhost net nic does. So we should enable it for non msi guests. Signed-off-by: Haifeng Gao

Re: [Qemu-devel] [PATCH v2 1/1] qmp-commands.hx: Fix several typos

2015-02-28 Thread Michael Tokarev
Applied to -trivial, thank you! /mjt

[Qemu-devel] [PATCH RFC 4/5] pci-assign: Avoid qerror_report_err() outside QMP command handlers

2015-02-28 Thread zhanghailiang
qerror_report_err() is a transitional interface to help with converting existing monitor commands to QMP. It should not be used elsewhere. Replace by error_report_err() in assigned_initfn(). Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com --- hw/i386/kvm/pci-assign.c | 3 +-- 1

Re: [Qemu-devel] [PATCH v6 02/15] spapr_drc: initial implementation of sPAPRDRConnector device

2015-02-28 Thread Bharata B Rao
On Sat, Feb 28, 2015 at 12:00 AM, Michael Roth mdr...@linux.vnet.ibm.com wrote: I just pushed a patch here that I'm hoping will fix the non-PCI cases. Can you give it a spin and let me know? https://github.com/mdroth/qemu/commit/d91b0c6d6f794292e384cf129368aaae90294f5b I can successfully do

Re: [Qemu-devel] [PATCH] qapi-schema: Fix SpiceChannel docs

2015-02-28 Thread Michael Tokarev
Applied to -trivial, thank you! /mjt

Re: [Qemu-devel] [PATCH v3 0/3] Remove unused functions

2015-02-28 Thread Michael Tokarev
26.02.2015 16:28, Thomas Huth wrote: There are quite a lot of completely unused functions scattered around in the QEMU sources - here are some patches to remove at least some of them. I've limited the patches now to the ones which have been ack'ed by the corresponding subsystem maintainers,

Re: [Qemu-devel] [PATCH v3 1/1] char: cadence_uart: Convert to realize()

2015-02-28 Thread Alistair Francis
On Sat, Feb 28, 2015 at 3:59 AM, Andreas Färber afaer...@suse.de wrote: Am 27.02.2015 um 02:48 schrieb Alistair Francis: Use the DeviceClass realize() and init() instead of the deprecated SysBusDevice init(). Signed-off-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Peter

Re: [Qemu-devel] [PATCH v2 0/5] Remove unused functions

2015-02-28 Thread Michael Tokarev
19.02.2015 20:12, Thomas Huth wrote: There are quite a lot of completely unused functions scattered around in the QEMU sources - here are some patches to remove at least some of them. Applied series to -trivial, thank you! /mjt

Re: [Qemu-devel] [PATCH v2] e500: fix memory leak

2015-02-28 Thread Michael Tokarev
28.02.2015 13:18, Gonglei wrote: On 2015/2/28 18:13, Michael Tokarev wrote: [] How about this? It's ok on function, but seems oddly, isn't it? I don't see anything odd in it. The `filename' variable is only used as an argument for load_device_tree() function and is not used anywhwere else,

Re: [Qemu-devel] [PATCH] gitignore: Track common.env in iotests gitignore

2015-02-28 Thread Michael Tokarev
Applied both to -trivial, thank you! /mjt

Re: [Qemu-devel] [PATCH] gitignore: Track common.env in iotests gitignore

2015-02-28 Thread Michael Tokarev
27.02.2015 19:33, Eric Blake wrote: On 02/27/2015 08:21 AM, Cole Robinson wrote: Rather than track it in the toplevel gitignore Signed-off-by: Cole Robinson crobi...@redhat.com --- .gitignore| 1 - tests/qemu-iotests/.gitignore | 1 + 2 files changed, 1 insertion(+), 1

Re: [Qemu-devel] [PATCH 5/9] e500: fix memory leak

2015-02-28 Thread Gonglei
On 2015/2/28 17:41, Michael Tokarev wrote: 27.02.2015 10:50, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/ppc/e500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/9] arm: fix memory leak

2015-02-28 Thread Gonglei
On 2015/2/28 18:18, Michael Tokarev wrote: 28.02.2015 12:59, Gonglei wrote: On 2015/2/28 17:52, Michael Tokarev wrote: This patch does not apply to current tree. You meant this one should be accepted by arm tree? Nope. I mean this patch does not apply to my tree. I found the problem --

[Qemu-devel] [PATCH v2] e500: fix memory leak

2015-02-28 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- v2: fix compilation complaint. (mjt) --- hw/ppc/e500.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 7e17d18..c060b50 100644 --- a/hw/ppc/e500.c +++

Re: [Qemu-devel] [PATCH v2] e500: fix memory leak

2015-02-28 Thread Gonglei
On 2015/2/28 18:13, Michael Tokarev wrote: 28.02.2015 13:08, arei.gong...@huawei.com пишет: From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- v2: fix compilation complaint. (mjt) --- hw/ppc/e500.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Qemu-devel] QEMU website (wiki) improvements

2015-02-28 Thread Stefan Weil
Hello Michael, here are some suggestions / thoughts for the QEMU website. * http://wiki.qemu.org/Main_Pagedoes not pass the W3C validator, see http://validator.w3.org/check?uri=http%3A%2F%2Fwiki.qemu.org. They can be easily fixed, but not by normal wiki users. * It tracks users (g+ image

Re: [Qemu-devel] [PATCH 2/9] arm: fix memory leak

2015-02-28 Thread Gonglei
On 2015/2/28 17:52, Michael Tokarev wrote: This patch does not apply to current tree. You meant this one should be accepted by arm tree? Regards, -Gonglei

Re: [Qemu-devel] [PATCH v2] e500: fix memory leak

2015-02-28 Thread Michael Tokarev
28.02.2015 13:08, arei.gong...@huawei.com пишет: From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- v2: fix compilation complaint. (mjt) --- hw/ppc/e500.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index

Re: [Qemu-devel] [PATCH 0/9] Coverity defects fixes

2015-02-28 Thread Gonglei
On 2015/2/28 17:54, Michael Tokarev wrote: 27.02.2015 10:50, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com All those defects are spotted by Coverity, which classed in high impact outstanding defects. Reports come from scan.coverity.com for Qemu. Cc: Paolo Bonzini

Re: [Qemu-devel] [PATCH 2/9] arm: fix memory leak

2015-02-28 Thread Michael Tokarev
This patch does not apply to current tree. Thanks, /mjt

Re: [Qemu-devel] [PATCH 0/9] Coverity defects fixes

2015-02-28 Thread Michael Tokarev
27.02.2015 10:50, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com All those defects are spotted by Coverity, which classed in high impact outstanding defects. Reports come from scan.coverity.com for Qemu. Cc: Paolo Bonzini pbonz...@redhat.com Cc: Markus Armbruster

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/9] arm: fix memory leak

2015-02-28 Thread Michael Tokarev
28.02.2015 12:59, Gonglei wrote: On 2015/2/28 17:52, Michael Tokarev wrote: This patch does not apply to current tree. You meant this one should be accepted by arm tree? Nope. I mean this patch does not apply to my tree. I found the problem -- it is because of Remove superfluous '\n' around

Re: [Qemu-devel] [BUG] Balloon malfunctions with memory hotplug

2015-02-28 Thread Alexandre DERUMIER
Hi, I think they was already reported some month ago, and a patch was submitted to the mailing list (but waiting that memory unplug was merged before apply it) http://lists.gnu.org/archive/html/qemu-devel/2014-11/msg02362.html - Mail original - De: Luiz Capitulino

Re: [Qemu-devel] [PATCH v2] e500: fix memory leak

2015-02-28 Thread Stefan Weil
Am 28.02.2015 um 17:40 schrieb Paolo Bonzini: On 28/02/2015 11:13, Michael Tokarev wrote: 28.02.2015 13:08, arei.gong...@huawei.com пишет: From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- v2: fix compilation complaint. (mjt) --- hw/ppc/e500.c | 2 ++

Re: [Qemu-devel] [PATCH 1/6 v4] target-tilegx: Firstly add to qemu with minimized features

2015-02-28 Thread Chen Gang S
On 2/28/15 01:36, Andreas Färber wrote: +static void tilegx_cpu_class_init(ObjectClass *oc, void *data) +{ +DeviceClass *dc = DEVICE_CLASS(oc); +CPUClass *cc = CPU_CLASS(oc); +TilegxCPUClass *mcc = TILEGX_CPU_CLASS(oc); + +mcc-parent_realize = dc-realize; +

[Qemu-devel] [PATCH] Revert target-ppc: Create versionless CPU class per family if KVM

2015-02-28 Thread Andreas Färber
This reverts commit 5b79b1cadd3e565b6d1a5ba59764bd47af58b271 to avoid double-registration of types: Registering `POWER5+-powerpc64-cpu' which already exists Taking the textual description of a CPU type as part of a new type name is plain wrong, and so is unconditionally registering a new type

Re: [Qemu-devel] [PATCH 1/6 v4] target-tilegx: Firstly add to qemu with minimized features

2015-02-28 Thread Chen Gang S
On 2/28/15 13:20, Chen Gang S wrote: diff --git a/target-tilegx/helper.h b/target-tilegx/helper.h new file mode 100644 index 000..e69de29 Is this empty file actually included from somewhere in this patch? Yes, it is for future use, I guess, at present, we can just drop it: -

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

2015-02-28 Thread 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 s...@weilnetz.de --- My editor automatically removes trailing whitespace, so

[Qemu-devel] migration: Fix 32 bit compiler errors

2015-02-28 Thread Stefan Weil
Obviously that code was never before compiled on 32 bit hosts. The RDMA API uses lots of uint64_t values and the code casts them to and from pointers. I tried to fix the compilation but did not run any runtime tests. I think the first two patches are trivial, but the third one might not be

[Qemu-devel] [PATCH 2/3] migration: Fix some 32 bit compiler errors

2015-02-28 Thread Stefan Weil
The current code won't compile on 32 bit hosts because there are lots of type casts between pointers and 64 bit integers. Fix some of them. Signed-off-by: Stefan Weil s...@weilnetz.de --- migration/rdma.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff

[Qemu-devel] [PATCH 3/3] migration: Fix remaining 32 bit compiler errors

2015-02-28 Thread Stefan Weil
Fix type casts between pointers and 64 bit integers. Now 32 bit builds are possible again. Signed-off-by: Stefan Weil s...@weilnetz.de --- migration/rdma.c | 57 +- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 1/2] Makefile: don't silence mak file test with V=1

2015-02-28 Thread Michael S. Tsirkin
On Fri, Feb 27, 2015 at 07:40:26PM +0100, Paolo Bonzini wrote: On 19/02/2015 08:48, Michael S. Tsirkin wrote: V=1 should show what's going on, it's not nice to silence things unconditionally. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Makefile | 4 ++-- 1 file

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

2015-02-28 Thread Stefan Weil
This fixes a warning from smatch. Signed-off-by: Stefan Weil s...@weilnetz.de --- 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.c +++ b/hw/net/vhost_net.c @@

Re: [Qemu-devel] [PATCH v2] e500: fix memory leak

2015-02-28 Thread Paolo Bonzini
On 28/02/2015 11:13, Michael Tokarev wrote: 28.02.2015 13:08, arei.gong...@huawei.com пишет: From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- v2: fix compilation complaint. (mjt) --- hw/ppc/e500.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [Qemu-devel] Announcement: Patchew server is online now

2015-02-28 Thread Stefan Weil
Am 28.02.2015 um 07:47 schrieb Fam Zheng: Hello, everyone I'm glad to announce the fresh Patchew server deployment: http://qemu.patchew.org/ The mission of this project is to help identify obvious defects (coding style, compiling, etc.) of posted patches. Follow the green passed or red

[Qemu-devel] [PATCH 0/2] virtio_blk header fixes

2015-02-28 Thread Michael S. Tsirkin
Now that QEmu reuses linux virtio headers, we noticed a typo in the exported virtio block header. Fix it up. I'd like these merged for 4.0 so that Qemu 2.3 can alredy get it right. Michael S. Tsirkin (2): virtio_blk: typo fix virtio_blk: fix comment for virtio 1.0

[Qemu-devel] [PATCH 2/2] virtio_blk: fix comment for virtio 1.0

2015-02-28 Thread Michael S. Tsirkin
Fix up comment to match virtio 1.0 logic: virtio_blk_outhdr isn't the first elements anymore, the only requirement is that it comes first in the s/g list. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/uapi/linux/virtio_blk.h | 6 +- 1 file changed, 5 insertions(+), 1

[Qemu-devel] [PATCH 1/2] virtio_blk: typo fix

2015-02-28 Thread Michael S. Tsirkin
Now that QEmu reuses linux virtio headers, we noticed a typo in the exported virtio block header. Fix it up. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/uapi/linux/virtio_blk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_blk.h