Re: [Qemu-devel] [PATCH] ppc: xics: fix compilation with CentOS 6

2017-05-09 Thread David Gibson
On Mon, May 08, 2017 at 09:25:19AM +0200, Paolo Bonzini wrote: > > > On 08/05/2017 08:13, David Gibson wrote: > >> > >>Please start including Docker-based tests in your pre-pull-request > >> tests. > > Um.. is there some doco on how to execute these. I tried "make > > docker-test" and

[Qemu-devel] [PATCH v2] target/ppc: Avoid printing wrong aliases in CPU help text

2017-05-09 Thread Thomas Huth
When running with KVM, we update the "family" CPU alias to point to the right host CPU type, so that it for example possible to use "-cpu POWER8" on a POWER8NVL host. However, the function for printing the list of available CPU models is called earlier than the KVM setup code, so the output of

[Qemu-devel] [PATCH v6 2/3] utils: provide size_to_str()

2017-05-09 Thread Peter Xu
Moving the algorithm from print_type_size() into size_to_str() so that other component can also leverage it. With that, refactor print_type_size(). Signed-off-by: Peter Xu --- include/qemu-common.h| 1 + qapi/string-output-visitor.c | 22 ++

[Qemu-devel] [PATCH v6 0/3] ramblock: add hmp command "info ramblock"

2017-05-09 Thread Peter Xu
v6 - patch 2: instead of create a new size_to_str(), abstract the logic out from print_type_size(), refactor it, to make sure print_type_size() dumps exactly the same thing as before. (a simple test with info qtree is done) - let suffixes be an array of strings [Markus] v5 - add r-b for

[Qemu-devel] [PATCH v6 1/3] ramblock: add RAMBLOCK_FOREACH()

2017-05-09 Thread Peter Xu
So that it can simplifies the iterators. Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Peter Xu --- exec.c | 22 +++--- include/exec/ramlist.h | 5 + migration/ram.c| 15 --- 3 files changed,

[Qemu-devel] [PATCH v6 3/3] ramblock: add new hmp command "info ramblock"

2017-05-09 Thread Peter Xu
To dump information about ramblocks. It looks like: (qemu) info ramblock Block NamePSize Offset Used Total /objects/mem2 MiB 0x 0x8000 0x8000 vga.vram4 KiB

Re: [Qemu-devel] [PATCH v3 5/6] target/s390x: Use atomic operations for COMPARE SWAP

2017-05-09 Thread Thomas Huth
On 09.05.2017 20:07, Richard Henderson wrote: > Reviewed-by: Aurelien Jarno > Signed-off-by: Richard Henderson > --- > target/s390x/helper.h | 1 + > target/s390x/insn-data.def | 10 +++--- > target/s390x/mem_helper.c | 39 ++ >

Re: [Qemu-devel] [PATCH v5 2/3] utils: provide size_to_str()

2017-05-09 Thread Peter Xu
On Tue, May 09, 2017 at 04:50:26PM +0200, Markus Armbruster wrote: > Peter Xu writes: > > > I stole the algorithm from print_type_size(). I didn't generalize it > > since that's using [KM...]iB while here we need [KM...]B to finally > > be able to stands for page sizes (and

Re: [Qemu-devel] [PATCH v2 23/24] numa: add '-numa cpu, ...' option for property based node mapping

2017-05-09 Thread David Gibson
On Tue, May 09, 2017 at 05:58:29PM +0200, Igor Mammedov wrote: > On Mon, 8 May 2017 15:40:04 +1000 > David Gibson wrote: > > > On Wed, May 03, 2017 at 02:57:17PM +0200, Igor Mammedov wrote: > > > legacy cpu to node mapping is using cpu index values to map > > > VCPU

Re: [Qemu-devel] [PATCH qemu v6] memory/iommu: QOM'fy IOMMU MemoryRegion

2017-05-09 Thread David Gibson
On Tue, May 09, 2017 at 09:35:23PM +1000, Alexey Kardashevskiy wrote: > On 08/05/17 15:53, David Gibson wrote: > > On Fri, May 05, 2017 at 08:19:30PM +1000, Alexey Kardashevskiy wrote: > >> This defines new QOM object - IOMMUMemoryRegion - with MemoryRegion > >> as a parent. > >> > >> This moves

Re: [Qemu-devel] [PATCH v8 3/4] qemu-img: introduce --target-image-opts for 'convert' command

2017-05-09 Thread Fam Zheng
On Tue, 05/09 10:48, Daniel P. Berrange wrote: > The '--image-opts' flag indicates whether the source filename > includes options. The target filename has to remain in the > plain filename format though, since it needs to be passed to > bdrv_create(). When using --skip-create though, it would be

Re: [Qemu-devel] [PATCH] vhost-user: fix watcher need be removed when vhost-user hotplug

2017-05-09 Thread wangyunjian
On Tue, May 9, 2017 at 5:04 PM Yunjian Wang wrote: > > From: w00273186 > > > > "nc" is freed after hotplug vhost-user, but the watcher don't be removed. > > > > > > The QEMU crash when the watcher access the "nc" on socket disconnect. > > > > >

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target/ppc: Avoid printing wrong aliases in CPU help text

2017-05-09 Thread David Gibson
On Tue, May 09, 2017 at 06:49:29AM +0200, Thomas Huth wrote: > On 08.03.2017 20:05, Thomas Huth wrote: > > When running with KVM, we update the "family" CPU alias to point > > to the right host CPU type, so that it is for example possible to > > use "-cpu POWER8" on a POWER8NVL host. However, the

Re: [Qemu-devel] [PATCH] target/ppc: Allow workarounds for POWER9 DD1

2017-05-09 Thread David Gibson
On Tue, May 09, 2017 at 06:41:23AM +0200, Thomas Huth wrote: > On 09.05.2017 05:45, David Gibson wrote: > > POWER9 DD1 silicon has some bugs which mean it a) isn't really compliant > > with the ISA v3.00 and b) require a number of special workarounds in the > > kernel. > > > > At the moment, qemu

[Qemu-devel] [PATCH] trace: add sanity check

2017-05-09 Thread Anthony Xu
If trace backend is set to TRACE_NOP, trace_get_vcpu_event_count returns 0, cause bitmap_new call abort. Signed-off-by: Anthony Xu --- qom/cpu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qom/cpu.c b/qom/cpu.c index f02e9c0..f9111a0 100644 ---

Re: [Qemu-devel] [PATCH v2 14/14] target/sh4: trap unaligned accesses

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: +void superh_cpu_do_unaligned_access(CPUState *cs, vaddr addr, +MMUAccessType access_type, +int mmu_idx, uintptr_t retaddr) +{ +if (retaddr) { +cpu_restore_state(cs,

Re: [Qemu-devel] [PATCH v2 12/14] target/sh4: implement tas.b using atomic helper

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: We only emulate UP SH4, however as the tas.b instruction is used in the GNU libc, this improve linux-user emulation. Signed-off-by: Aurelien Jarno --- target/sh4/translate.c | 19 +++ 1 file changed, 7

Re: [Qemu-devel] [PATCH v2 13/14] target/sh4: movua.l is an SH4-A only instruction

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: At the same time change the comment describing the instruction the same way than other instruction, so that the code is easier to read and search. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aurelien

Re: [Qemu-devel] [PATCH v2 11/14] target/sh4: generate fences for SH4

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: synco is a SH4-A only instruction. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aurelien Jarno --- target/sh4/translate.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) Reviewed-by:

Re: [Qemu-devel] [PATCH v2 10/14] target/sh4: optimize gen_write_sr using extract op

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: This doesn't change the generated code on x86, but optimizes it on most RISC architectures and makes the code simpler to read. Signed-off-by: Aurelien Jarno --- target/sh4/translate.c | 9 +++-- 1 file changed, 3

Re: [Qemu-devel] [PATCH v2 09/14] target/sh4: optimize gen_store_fpr64

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: +tcg_gen_extrl_i64_i32(cpu_fregs[reg + 1], t); +tcg_gen_extrh_i64_i32(cpu_fregs[reg], t); This is tcg_gen_extr_i64_i32(cpu_fregs[reg + 1], cpu_fregs[reg], t); Otherwise, Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH v2 08/14] target/sh4: fold ctx->bstate = BS_BRANCH into gen_conditional_jump

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: Signed-off-by: Aurelien Jarno --- target/sh4/translate.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH v2 07/14] target/sh4: only save flags state at the end of the TB

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: There is no need to save flags when entering and exiting the delay slot. They can be saved only when reaching the end of the TB. If the TB is interrupted before by an exception, they will be restored using restore_state_to_opc. Signed-off-by:

Re: [Qemu-devel] [PATCH v2 06/14] target/sh4: fix BS_EXCP exit

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: In case of exception, there is no need to call tcg_gen_exit_tb as the exception helper won't return. Also fix a few cases where BS_BRANCH is called instead of BS_EXCP. Signed-off-by: Aurelien Jarno --- target/sh4/translate.c

Re: [Qemu-devel] [PATCH v2 05/14] target/sh4: fix BS_STOP exit

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: When stopping the translation because the state has changed, goto_tb should not be used as it might link TB with different flags. Signed-off-by: Aurelien Jarno --- target/sh4/translate.c | 5 +++-- 1 file changed, 3

Re: [Qemu-devel] [PATCH v2 04/14] target/sh4: move DELAY_SLOT_TRUE flag into a separate global

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: Instead of using one bit of the env flags to store the condition of the next delay slot, use a separate global. It simplifies reading and writing the flags variable and also removes some confusion between ctx->envflags and env->flags. Note that the

Re: [Qemu-devel] [PATCH v2 02/14] target/sh4: get rid of DELAY_SLOT_CLEARME

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: Now that ctx->flags has been split, it becomes clear that DELAY_SLOT_CLEARME has not impact on the code generation: in both case ctx->envflags is cleared, either by clearing all the flags, or by setting it to 0. This is left-over from pre-TCG era.

Re: [Qemu-devel] [PATCH v2 03/14] target/sh4: do not include DELAY_SLOT_TRUE in the TB state

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: DELAY_SLOT_TRUE is used as a dynamic condition for the branch after the delay slot instruction. It is not used in code generation, so there is no need to including in the TB state. Signed-off-by: Aurelien Jarno ---

Re: [Qemu-devel] [PATCH v2 01/14] target/sh4: split ctx->flags into ctx->tbflags and ctx->envflags

2017-05-09 Thread Richard Henderson
On 05/06/2017 04:14 AM, Aurelien Jarno wrote: There is a confusion (and not only in the SH4 target) between tb->flags, env->flags and ctx->flags. To avoid it, split ctx->flags into ctx->tbflags and ctx->envflags. ctx->tbflags stays unchanged during the whole TB translation, while ctx->envflags

Re: [Qemu-devel] [PATCH v2 3/3] xen: call qemu_set_cloexec instead of fcntl

2017-05-09 Thread Greg Kurz
On Tue, 9 May 2017 12:04:53 -0700 Stefano Stabellini wrote: > Use the common utility function, which contains checks on return values, ... and first calls F_GETFD as recommended by POSIX.1-2001. http://pubs.opengroup.org/onlinepubs/009695399/functions/fcntl.html "The

Re: [Qemu-devel] [PATCH v5 0/1] slirp: add SOCKS5 support

2017-05-09 Thread Samuel Thibault
Hello, Laurent Vivier, on mar. 09 mai 2017 21:31:11 +0200, wrote: > This patch implements the SOCKS5 client part for "-net user" backend. Thanks for the changes! It seems from the bot result that windows doesn't define in_port_t. Could you post a revised patch which uses sizeof(uint16_t)

Re: [Qemu-devel] [PATCH v2 2/3] Check the return value of fcntl in qemu_set_cloexec

2017-05-09 Thread Greg Kurz
On Tue, 9 May 2017 12:04:52 -0700 Stefano Stabellini wrote: > Assert that the return value is not an error. This issue was found by > Coverity. > > CID: 1374831 > > Signed-off-by: Stefano Stabellini > CC: gr...@kaod.org > CC:

Re: [Qemu-devel] [PATCH v2 1/3] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-09 Thread Greg Kurz
On Tue, 9 May 2017 12:04:51 -0700 Stefano Stabellini wrote: > CID: 1374836 > > Signed-off-by: Stefano Stabellini > CC: anthony.per...@citrix.com > CC: gr...@kaod.org > CC: aneesh.ku...@linux.vnet.ibm.com > --- > hw/9pfs/xen-9p-backend.c | 2 ++

Re: [Qemu-devel] [PATCH v4 0/2] Support CPUID signature for TCG

2017-05-09 Thread Eduardo Habkost
On Tue, May 09, 2017 at 03:13:37PM +0100, Richard W.M. Jones wrote: > On Tue, May 09, 2017 at 07:05:51AM -0700, Richard Henderson wrote: > > On 05/09/2017 06:27 AM, Daniel P. Berrange wrote: > > >This enables report of a signature in CPUID for the TCG > > >interpretor. > > > > > >Changed in v4: >

Re: [Qemu-devel] [PATCH v5 0/1] slirp: add SOCKS5 support

2017-05-09 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH v5 0/1] slirp: add SOCKS5 support Message-id: 20170509193112.16613-1-laur...@vivier.eu Type: series === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log

Re: [Qemu-devel] [Qemu-block] [PATCH] block: curl: Allow passing cookies via QCryptoSecret

2017-05-09 Thread Manos Pitsidianakis
On Tue, May 09, 2017 at 02:52:38PM -0500, Eric Blake wrote: On 05/09/2017 02:43 PM, Manos Pitsidianakis wrote: On Thu, May 04, 2017 at 04:00:06PM +0200, Peter Krempa wrote: +cookie_secret = qemu_opt_get(opts, CURL_BLOCK_OPT_COOKIE_SECRET); + +if (cookie && cookie_secret) { +

Re: [Qemu-devel] [Qemu-block] [PATCH] block: curl: Allow passing cookies via QCryptoSecret

2017-05-09 Thread Eric Blake
On 05/09/2017 02:43 PM, Manos Pitsidianakis wrote: > On Thu, May 04, 2017 at 04:00:06PM +0200, Peter Krempa wrote: >> +cookie_secret = qemu_opt_get(opts, CURL_BLOCK_OPT_COOKIE_SECRET); >> + >> +if (cookie && cookie_secret) { >> +error_setg(errp, >> + "curl driver

Re: [Qemu-devel] [PATCH v2 1/3] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-09 Thread Stefano Stabellini
On Tue, 9 May 2017, Eric Blake wrote: > On 05/09/2017 02:20 PM, Eric Blake wrote: > > On 05/09/2017 02:04 PM, Stefano Stabellini wrote: > >> CID: 1374836 > >> > >> Signed-off-by: Stefano Stabellini > >> CC: anthony.per...@citrix.com > >> CC: gr...@kaod.org > >> CC:

Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07

2017-05-09 Thread Stefan Hajnoczi
On Mon, May 08, 2017 at 01:30:31PM -0400, Stefan Hajnoczi wrote: > On Sun, May 07, 2017 at 10:02:03AM +0300, Michael Tokarev wrote: > > The following changes since commit 12a95f320a36ef66f724a49bb05e4fb553ac5dbe: > > > > Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging > >

Re: [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments

2017-05-09 Thread Stefan Hajnoczi
On Sun, May 07, 2017 at 10:02:14AM +0300, Michael Tokarev wrote: > From: "sochin.jiang fix wrong parameter comments in channel-file.h" > Hi Michael, This patch has a corrupted From field. I do not modify pull requests myself when merging. Could you please resend? Thanks,

Re: [Qemu-devel] [Qemu-block] [PATCH] block: curl: Allow passing cookies via QCryptoSecret

2017-05-09 Thread Manos Pitsidianakis
On Thu, May 04, 2017 at 04:00:06PM +0200, Peter Krempa wrote: +cookie_secret = qemu_opt_get(opts, CURL_BLOCK_OPT_COOKIE_SECRET); + +if (cookie && cookie_secret) { +error_setg(errp, + "curl driver cannot handle both cookie and cookie secret"); +goto

[Qemu-devel] [PATCH v5 1/1] slirp: add SOCKS5 support

2017-05-09 Thread Laurent Vivier
When the VM is used behind a firewall, This allows the use of a SOCKS5 proxy server to connect the VM IP stack directly to the Internet. This implementation doesn't manage UDP packets, so they are simply dropped (as with restrict=on), except for the localhost as we need it for DNS.

[Qemu-devel] [PATCH v5 0/1] slirp: add SOCKS5 support

2017-05-09 Thread Laurent Vivier
This patch implements the SOCKS5 client part for "-net user" backend. It allows to route all internet traffic of the virtual machine to a SOCKS5 server. But all the local traffic (to the host) is sent to the host. It is needed because this SOCKS5 client doesn't route UDP traffic, and this allows

Re: [Qemu-devel] [PATCH v2 1/3] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-09 Thread Eric Blake
On 05/09/2017 02:20 PM, Eric Blake wrote: > On 05/09/2017 02:04 PM, Stefano Stabellini wrote: >> CID: 1374836 >> >> Signed-off-by: Stefano Stabellini >> CC: anthony.per...@citrix.com >> CC: gr...@kaod.org >> CC: aneesh.ku...@linux.vnet.ibm.com >> --- >>

Re: [Qemu-devel] [PATCH v2 2/3] Check the return value of fcntl in qemu_set_cloexec

2017-05-09 Thread Eric Blake
On 05/09/2017 02:04 PM, Stefano Stabellini wrote: > Assert that the return value is not an error. This issue was found by > Coverity. > > CID: 1374831 > > Signed-off-by: Stefano Stabellini > CC: gr...@kaod.org > CC: pbonz...@redhat.com > CC: Eric Blake

Re: [Qemu-devel] [PATCH v4 1/1] slirp: add SOCKS5 support

2017-05-09 Thread Samuel Thibault
Hello, Laurent Vivier, on mar. 09 mai 2017 09:21:09 +0200, wrote: > Le 08/05/2017 à 22:09, Samuel Thibault a écrit : > > Laurent Vivier, on sam. 06 mai 2017 15:19:44 +0200, wrote: > >>> Laurent Vivier, on sam. 06 mai 2017 00:48:33 +0200, wrote: > >> The check is done previously by: > >> > >> @@

Re: [Qemu-devel] [PATCH v2 3/3] xen: call qemu_set_cloexec instead of fcntl

2017-05-09 Thread Eric Blake
On 05/09/2017 02:04 PM, Stefano Stabellini wrote: > Use the common utility function, which contains checks on return values, > instead of manually calling fcntl. > > CID: 1374831 > > Signed-off-by: Stefano Stabellini > CC: anthony.per...@citrix.com > CC: gr...@kaod.org >

Re: [Qemu-devel] [PATCH v2 1/3] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-09 Thread Eric Blake
On 05/09/2017 02:04 PM, Stefano Stabellini wrote: > CID: 1374836 > > Signed-off-by: Stefano Stabellini > CC: anthony.per...@citrix.com > CC: gr...@kaod.org > CC: aneesh.ku...@linux.vnet.ibm.com > --- > hw/9pfs/xen-9p-backend.c | 2 ++ > 1 file changed, 2 insertions(+)

[Qemu-devel] [PATCH v2 2/3] Check the return value of fcntl in qemu_set_cloexec

2017-05-09 Thread Stefano Stabellini
Assert that the return value is not an error. This issue was found by Coverity. CID: 1374831 Signed-off-by: Stefano Stabellini CC: gr...@kaod.org CC: pbonz...@redhat.com CC: Eric Blake --- util/oslib-posix.c | 4 +++- 1 file changed, 3 insertions(+),

[Qemu-devel] [PATCH v2 3/3] xen: call qemu_set_cloexec instead of fcntl

2017-05-09 Thread Stefano Stabellini
Use the common utility function, which contains checks on return values, instead of manually calling fcntl. CID: 1374831 Signed-off-by: Stefano Stabellini CC: anthony.per...@citrix.com CC: gr...@kaod.org CC: aneesh.ku...@linux.vnet.ibm.com CC: Eric Blake

[Qemu-devel] [PATCH v2 1/3] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-09 Thread Stefano Stabellini
CID: 1374836 Signed-off-by: Stefano Stabellini CC: anthony.per...@citrix.com CC: gr...@kaod.org CC: aneesh.ku...@linux.vnet.ibm.com --- hw/9pfs/xen-9p-backend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/9pfs/xen-9p-backend.c b/hw/9pfs/xen-9p-backend.c

Re: [Qemu-devel] [PATCH RESEND V3 5/6] migration: calculate downtime on dst side

2017-05-09 Thread Dr. David Alan Gilbert
* Alexey (a.pereva...@samsung.com) wrote: > On Tue, May 09, 2017 at 10:40:34AM +0100, Dr. David Alan Gilbert wrote: > > * Peter Xu (pet...@redhat.com) wrote: > > > On Mon, May 08, 2017 at 12:08:07PM +0300, Alexey wrote: > > > > On Mon, May 08, 2017 at 02:29:06PM +0800, Peter Xu wrote: > > > > > On

Re: [Qemu-devel] VhostUserRequest # 20

2017-05-09 Thread Marc-André Lureau
HI - Original Message - > Hi, > libvhost-user.h defines: >VHOST_USER_INPUT_GET_CONFIG = 20, That slipped by mistake from my vhost-user-input series WIP, please send a fix. (luckily, this is only internal header for now) thanks > while > vhost-user.c defines: >

Re: [Qemu-devel] [PATCH 03/17] tests: remove alt num-int cases

2017-05-09 Thread Eric Blake
On 05/09/2017 12:35 PM, Marc-André Lureau wrote: > There are no real users of this case, and it's going to be invalid after > merging of QFloat and QInt use the same QNum type in the following patch. > > Signed-off-by: Marc-André Lureau > --- > tests/test-keyval.c

[Qemu-devel] [Bug 1689499] Re: copy-storage-all/inc does not easily converge with load going on

2017-05-09 Thread Dr. David Alan Gilbert
OK, it'll be interesting if you get something repeatable, but sometimes these type of bugs go and hide in a dark corner until someone trips over them in a more critical situation. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] VhostUserRequest # 20

2017-05-09 Thread Dr. David Alan Gilbert
Hi, libvhost-user.h defines: VHOST_USER_INPUT_GET_CONFIG = 20, while vhost-user.c defines: VHOST_USER_NET_SET_MTU = 20, who wins? Dave -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH 02/17] object: fix potential leak in getters

2017-05-09 Thread Eric Blake
On 05/09/2017 12:35 PM, Marc-André Lureau wrote: > If the property is not of the requested type, the getters will leak a > QObject. > > Signed-off-by: Marc-André Lureau > --- > qom/object.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by:

Re: [Qemu-devel] [PATCH 01/17] qdev: remove PropertyInfo.qtype field

2017-05-09 Thread Eric Blake
On 05/09/2017 12:35 PM, Marc-André Lureau wrote: > Remove dependency on qapi qtype, replace a field by a few helper > functions to determine the default value type (introduced in commit > 4f2d3d7). > > Signed-off-by: Marc-André Lureau > --- > include/hw/qdev-core.h

Re: [Qemu-devel] [PATCH v3 1/6] target/s390x: Implement STORE FACILITIES LIST EXTENDED

2017-05-09 Thread Aurelien Jarno
On 2017-05-09 11:07, Richard Henderson wrote: > At the same time, improve STORE FACILITIES LIST > so that we don't hard-code the list for all cpus. > > Signed-off-by: Richard Henderson > --- > target/s390x/helper.h | 2 ++ > target/s390x/insn-data.def | 2 ++ >

Re: [Qemu-devel] [RFC PATCH 02/11] hw/pci: define msi_nonbroken in pci-stub

2017-05-09 Thread Thomas Huth
Hi Philippe, On 09.05.2017 18:49, Philippe Mathieu-Daudé wrote: > Hi Thomas, > > On 05/09/2017 02:19 AM, Thomas Huth wrote: >> On 09.05.2017 01:39, Philippe Mathieu-Daudé wrote: >>> This field is accessed in hw/intc/arm_gicv[23*].c >> >> default-configs/arm-softmmu.mak sets CONFIG_PCI, so this

Re: [Qemu-devel] [PATCH v2] qemu-img: Check for backing image if specified during create

2017-05-09 Thread John Snow
On 05/09/2017 02:19 PM, Eric Blake wrote: > On 05/09/2017 01:17 PM, Eric Blake wrote: >> On 05/09/2017 01:09 PM, John Snow wrote: >>> Or, rather, force the open of a backing image if one was specified >>> for creation. Using a similar -unsafe option as rebase, allow qemu-img >>> to ignore the

Re: [Qemu-devel] [PATCH v2] qemu-img: Check for backing image if specified during create

2017-05-09 Thread Eric Blake
On 05/09/2017 01:17 PM, Eric Blake wrote: > On 05/09/2017 01:09 PM, John Snow wrote: >> Or, rather, force the open of a backing image if one was specified >> for creation. Using a similar -unsafe option as rebase, allow qemu-img >> to ignore the backing file validation if possible. >> >> +++

Re: [Qemu-devel] [PATCH v2] qemu-img: Check for backing image if specified during create

2017-05-09 Thread Eric Blake
On 05/09/2017 01:09 PM, John Snow wrote: > Or, rather, force the open of a backing image if one was specified > for creation. Using a similar -unsafe option as rebase, allow qemu-img > to ignore the backing file validation if possible. > > It may not always be possible, as in the existing case

[Qemu-devel] [PATCH] acpi-defs: clean up open brace usage

2017-05-09 Thread Michael S. Tsirkin
patchew has been saying: ERROR: open brace '{' following struct go on the same line Fix up acpi-defs.h to follow this rule. Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/acpi-defs.h | 37 + 1 file changed, 13 insertions(+), 24

[Qemu-devel] [PATCH v3 5/6] target/s390x: Use atomic operations for COMPARE SWAP

2017-05-09 Thread Richard Henderson
Reviewed-by: Aurelien Jarno Signed-off-by: Richard Henderson --- target/s390x/helper.h | 1 + target/s390x/insn-data.def | 10 +++--- target/s390x/mem_helper.c | 39 ++ target/s390x/translate.c | 83

Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07

2017-05-09 Thread Eric Blake
On 05/08/2017 12:30 PM, Stefan Hajnoczi wrote: > On Sun, May 07, 2017 at 10:02:03AM +0300, Michael Tokarev wrote: >> The following changes since commit 12a95f320a36ef66f724a49bb05e4fb553ac5dbe: >> >> Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging >> (2017-05-04 13:44:32

[Qemu-devel] [PATCH v2] qemu-img: Check for backing image if specified during create

2017-05-09 Thread John Snow
Or, rather, force the open of a backing image if one was specified for creation. Using a similar -unsafe option as rebase, allow qemu-img to ignore the backing file validation if possible. It may not always be possible, as in the existing case when a filesize for the new image was not specified.

[Qemu-devel] [PATCH v3 4/6] target/s390x: Implement LOAD PAIR DISJOINT

2017-05-09 Thread Richard Henderson
From: Eric Bischoff Reviewed-by: Aurelien Jarno Signed-off-by: Eric Bischoff Message-Id: <20170228120134.7921-1-ebisch...@suse.com> [rth: Combine the two via insn->data; free the address temps.] Signed-off-by: Richard Henderson

[Qemu-devel] [PATCH v3 2/6] target/s390x: Implement LOAD PROGRAM PARAMETER

2017-05-09 Thread Richard Henderson
From: Miroslav Benes Linux arch/s390/kernel/head(64).S uses LPP instruction if it is available in facilities list provided by stfl/stfle instruction. This is the case of newer z/System generations and their qemu definition. The description of LPP is at

[Qemu-devel] [PATCH v3 6/6] target/s390x: Use atomic operations for LOAD AND OP

2017-05-09 Thread Richard Henderson
Reviewed-by: Aurelien Jarno Signed-off-by: Richard Henderson --- target/s390x/insn-data.def | 20 ++-- target/s390x/translate.c | 78 +- 2 files changed, 60 insertions(+), 38 deletions(-) diff --git

[Qemu-devel] [PATCH v3 3/6] target/s390x: Diagnose specification exception for atomics

2017-05-09 Thread Richard Henderson
All of the interlocked access facility instructions raise a specification exception for unaligned accesses. Do this by using the (previously unused) unaligned_access hook. Reviewed-by: Aurelien Jarno Signed-off-by: Richard Henderson ---

[Qemu-devel] [PATCH v3 1/6] target/s390x: Implement STORE FACILITIES LIST EXTENDED

2017-05-09 Thread Richard Henderson
At the same time, improve STORE FACILITIES LIST so that we don't hard-code the list for all cpus. Signed-off-by: Richard Henderson --- target/s390x/helper.h | 2 ++ target/s390x/insn-data.def | 2 ++ target/s390x/misc_helper.c | 59

[Qemu-devel] [PATCH v3 0/6] target/s390x patches

2017-05-09 Thread Richard Henderson
Changes since v2: * Fix STFLE patch as pointed out by Aurelien. * Adjust CS patch to change is_64 boolean in s->insn->data to TCGMemOp. r~ Eric Bischoff (1): target/s390x: Implement LOAD PAIR DISJOINT Miroslav Benes (1): target/s390x: Implement LOAD PROGRAM PARAMETER Richard

Re: [Qemu-devel] [PULL 0/8] pci, virtio, vhost: fixes

2017-05-09 Thread Michael S. Tsirkin
On Tue, May 09, 2017 at 08:45:35AM -0700, no-re...@patchew.org wrote: > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Subject: [Qemu-devel] [PULL 0/8] pci, virtio, vhost: fixes > Type: series > Message-id:

Re: [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments

2017-05-09 Thread Eric Blake
On 05/07/2017 02:02 AM, Michael Tokarev wrote: > From: "sochin.jiang fix wrong parameter comments in channel-file.h" > Do we really want this HUGE email name, or can we get it touched up before stefanha promotes his staging branch to master? > > Signed-off-by: sochin.jiang

Re: [Qemu-devel] ipxe for qemu maintainance

2017-05-09 Thread Jeff Cody
On Wed, Feb 22, 2017 at 02:42:34PM +0100, Gerd Hoffmann wrote: > Hi folks, > > I'd like to start maintaining qemu-specific branches in our ipxe.git > repo. The reason for this are some problems with the upstream ipxe > maintainance: > > * The ipxe maintainer apparently is pretty busy. Often

Re: [Qemu-devel] [PATCH] mirror: add sync mode incremental to drive-mirror and blockdev-mirror

2017-05-09 Thread Stefan Hajnoczi
On Mon, May 08, 2017 at 05:07:18PM -0400, John Snow wrote: > > > On 05/08/2017 05:02 PM, Denis V. Lunev wrote: > > On 05/08/2017 10:35 PM, Stefan Hajnoczi wrote: > >> On Thu, May 04, 2017 at 12:54:40PM +0200, Daniel Kucera wrote: > >> > >> Seems like a logical extension along the same lines as

Re: [Qemu-devel] [PULL v3 00/28] QAPI patches for 2017-05-04

2017-05-09 Thread Stefan Hajnoczi
On Tue, May 09, 2017 at 10:06:17AM +0200, Markus Armbruster wrote: > [v3]: Rebase & resolve semantic conflicts, with help from Eric Blake > [v2]: Fix trailing space, note tweaks to PATCH 12 properly in the > commit message > > The following changes since commit

Re: [Qemu-devel] [PATCH v5 2/5] iotests: fix remainining tests to work with LUKS

2017-05-09 Thread Eric Blake
On 05/09/2017 12:33 PM, Daniel P. Berrange wrote: > The tests 033, 140, 145 and 157 were all broken > when run with LUKS, since they did not correctly use > the required image opts args syntax to specify the > decryption secret. Further, the 120 test simply does > not make sense to run with luks,

[Qemu-devel] [PATCH 14/17] acpi: fix s3/s4 disabled type

2017-05-09 Thread Marc-André Lureau
Use a more specific bool type. Signed-off-by: Marc-André Lureau --- hw/acpi/ich9.c | 24 hw/acpi/piix4.c | 8 hw/i386/acpi-build.c | 5 +++-- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git

[Qemu-devel] [PATCH 17/17] qobject: move dump_qobject() from block/ to qobject/

2017-05-09 Thread Marc-André Lureau
The dump functions could be generally useful for any qobject user or for debugging etc. Signed-off-by: Marc-André Lureau --- include/qapi/qmp/qdict.h | 2 ++ include/qapi/qmp/qlist.h | 2 ++ include/qapi/qmp/qobject.h | 7 block/qapi.c | 90

[Qemu-devel] [PATCH 10/17] object: add uint property setter/getter

2017-05-09 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- include/qom/object.h | 23 +++ qom/object.c | 33 + 2 files changed, 56 insertions(+) diff --git a/include/qom/object.h b/include/qom/object.h index

[Qemu-devel] [PATCH 16/17] RFC: qdict: add uint

2017-05-09 Thread Marc-André Lureau
Similar to int support, add uint support. Note this is RFC because this is currently unused in qemu, I haven't found a good user for it yet (kaslr qemu-ga code did use it though). Signed-off-by: Marc-André Lureau --- include/qapi/qmp/qdict.h | 5 +

[Qemu-devel] [PATCH 07/17] json: learn to parse uint64 numbers

2017-05-09 Thread Marc-André Lureau
Switch strtoll() usage to qemu_strtoi64() helper while at it. Replace temporarily the error in qnum_get_int() with values >INT64_MAX until the visitor is updated. Add a few tests for large numbers. Signed-off-by: Marc-André Lureau --- qobject/json-lexer.c

[Qemu-devel] [PATCH 11/17] object: use more specific property type names

2017-05-09 Thread Marc-André Lureau
Use the actual unsigned integer type name (this should't break since property type aren't directly accessed from outside it seems). Signed-off-by: Marc-André Lureau --- backends/cryptodev.c | 2 +- hw/pci-host/piix.c | 8 hw/pci-host/q35.c| 10

[Qemu-devel] [PATCH 12/17] qdev: use int and uint properties as appropriate

2017-05-09 Thread Marc-André Lureau
Use unsigned type for various properties. Signed-off-by: Marc-André Lureau --- include/hw/qdev-core.h | 5 +++- include/hw/qdev-properties.h | 67 ++-- hw/block/fdc.c | 54

[Qemu-devel] [PATCH 15/17] Use uint property getter/setter where appropriate

2017-05-09 Thread Marc-André Lureau
All those property usages are associated with unsigned integers, so use appropriate getter/setter. Signed-off-by: Marc-André Lureau --- include/hw/isa/isa.h | 2 +- hw/acpi/memory_hotplug.c | 10 hw/acpi/nvdimm.c | 10

[Qemu-devel] [PATCH 06/17] qnum: add uint type

2017-05-09 Thread Marc-André Lureau
In order to store integer values superior to INT64_MAX, add a u64 internal representation. Signed-off-by: Marc-André Lureau --- include/qapi/qmp/qnum.h | 4 qobject/qnum.c | 49 +++ tests/check-qnum.c |

[Qemu-devel] [PATCH 08/17] qapi: update the qobject visitor to use QUInt

2017-05-09 Thread Marc-André Lureau
Switch to use QNum/uint where appropriate to remove i64 limitation. The input visitor will cast i64 input to u64 for compatibility reasons (existing json QMP client already use negative i64 for large u64, and expect an implicit cast in qemu). Signed-off-by: Marc-André Lureau

[Qemu-devel] [PATCH 09/17] qnum: fix get_int() with values > INT64_MAX

2017-05-09 Thread Marc-André Lureau
Now that the visitor has been switch to use qnum_uint, fix the bad get_int() to use get_uint() instead. Remove compatibility code. Signed-off-by: Marc-André Lureau --- hw/i386/acpi-build.c | 2 +- qobject/qnum.c | 4 ++-- tests/check-qnum.c | 9 - 3

[Qemu-devel] [PATCH 13/17] qdev: use appropriate getter/setters type

2017-05-09 Thread Marc-André Lureau
Based on underlying property type, use the appropriate getters/setters. Signed-off-by: Marc-André Lureau --- hw/i386/acpi-build.c | 12 ++-- hw/pci-host/gpex.c| 2 +- hw/pci-host/q35.c | 2 +- hw/pci-host/xilinx-pcie.c | 2 +-

[Qemu-devel] [PATCH 00/17] qobject/qapi: add uint type

2017-05-09 Thread Marc-André Lureau
Hi, In previously sent series "[PATCH 00/21] WIP: dump: add kaslr support (for after 2.9)", I proposed changes to accept uint64 values from json, by adding a QUint type. During review, it was suggested to introduce a QNum type to hold various number representations. This series introduces the

[Qemu-devel] [PATCH 01/17] qdev: remove PropertyInfo.qtype field

2017-05-09 Thread Marc-André Lureau
Remove dependency on qapi qtype, replace a field by a few helper functions to determine the default value type (introduced in commit 4f2d3d7). Signed-off-by: Marc-André Lureau --- include/hw/qdev-core.h | 1 - include/hw/qdev-properties.h | 5 -

[Qemu-devel] [PATCH 04/17] qapi: merge QInt and QFloat in QNum

2017-05-09 Thread Marc-André Lureau
We would like to use a same QObject type to represent numbers, whether they are int, uint, or floats. getters will allow some compatibility between the various types if the number fits other representations Signed-off-by: Marc-André Lureau --- scripts/qapi.py

[Qemu-devel] [PATCH 05/17] qapi: remove promote_int

2017-05-09 Thread Marc-André Lureau
qnum_to_double() implicity promotes int now. Signed-off-by: Marc-André Lureau --- include/qapi/visitor.h | 4 +--- include/qapi/visitor-impl.h| 2 +- scripts/qapi-visit.py | 12 +++- qapi/qapi-visit-core.c | 6

[Qemu-devel] [PATCH v5 5/5] iotests: chown LUKS device before qemu-io launches

2017-05-09 Thread Daniel P. Berrange
On some distros, whenever you close a block device file descriptor there is a udev rule that resets the file permissions. This can race with the test script when we run qemu-io multiple times against the same block device. Occasionally the second qemu-io invocation will find udev has reset the

[Qemu-devel] [PATCH 02/17] object: fix potential leak in getters

2017-05-09 Thread Marc-André Lureau
If the property is not of the requested type, the getters will leak a QObject. Signed-off-by: Marc-André Lureau --- qom/object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qom/object.c b/qom/object.c index eb4bc924ff..c7b8079df6 100644

[Qemu-devel] [PATCH 03/17] tests: remove alt num-int cases

2017-05-09 Thread Marc-André Lureau
There are no real users of this case, and it's going to be invalid after merging of QFloat and QInt use the same QNum type in the following patch. Signed-off-by: Marc-André Lureau --- tests/test-keyval.c | 3 ---

[Qemu-devel] [PATCH v5 2/5] iotests: fix remainining tests to work with LUKS

2017-05-09 Thread Daniel P. Berrange
The tests 033, 140, 145 and 157 were all broken when run with LUKS, since they did not correctly use the required image opts args syntax to specify the decryption secret. Further, the 120 test simply does not make sense to run with luks, as the scenario exercised is not relevant. The test 181 was

[Qemu-devel] [PATCH v5 3/5] iotests: reduce PBKDF iterations when testing LUKS

2017-05-09 Thread Daniel P. Berrange
By default the PBKDF algorithm used with LUKS is tuned based on the number of iterations to produce 1 second of running time. This makes running the I/O test with the LUKS format orders of magnitude slower than with qcow2/raw formats. When creating LUKS images, set the iteration time to a 10ms to

  1   2   3   4   >