[Qemu-devel] [PULL 2/2] qapi/block-core: add doc describing GlusterServer vs. SocketAddress

2016-09-12 Thread Jeff Cody
From: Prasanna Kumar Kalever Added documentation describing relation between GlusterServer and SocketAddress qapi schemas. Thanks to Markus Armbruster Reviewed-by: Markus Armbruster Reviewed-by: Jeff Cody

[Qemu-devel] [PULL 0/2] Block patches

2016-09-12 Thread Jeff Cody
The following changes since commit 7263da78045dc91cc207f350911efe4259e99b3c: Merge remote-tracking branch 'remotes/mcayland/tags/qemu-openbios-signed' into staging (2016-09-12 15:09:47 +0100) are available in the git repository at: g...@github.com:codyprime/qemu-kvm-jtc.git

[Qemu-devel] [PULL 1/2] block/gluster: add support to choose libgfapi logfile

2016-09-12 Thread Jeff Cody
From: Prasanna Kumar Kalever currently all the libgfapi logs defaults to '/dev/stderr' as it was hardcoded in a call to glfs logging api. When the debug level is chosen to DEBUG/TRACE, gfapi logs will be huge and fill/overflow the console view. This patch provides a

Re: [Qemu-devel] [PATCH v6 3/3] tests: add RTAS command in the protocol

2016-09-12 Thread David Gibson
On Mon, Sep 12, 2016 at 07:09:37PM +0200, Laurent Vivier wrote: > > > On 12/09/2016 06:17, David Gibson wrote: > > On Thu, Sep 08, 2016 at 09:00:07PM +0200, Laurent Vivier wrote: > >> Add a first test to validate the protocol: > >> > >> - rtas/get-time-of-day compares the time > >> from the

[Qemu-devel] [PATCH] usb:xhci:fix memory leak in usb_xhci_exit

2016-09-12 Thread 李强
If the xhci uses msix, it doesn't free the corresponding memory, thus leading a memory leak issue. This patch avoid this. Signed-off-by: Li Qiang --- hw/usb/hcd-xhci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c

Re: [Qemu-devel] [PATCH v2 1/1] qapi/block-core: add doc describing GlusterServer vs. SocketAddress

2016-09-12 Thread Jeff Cody
On Sat, Aug 20, 2016 at 11:28:44PM +0530, Prasanna Kumar Kalever wrote: > Added documentation describing relation between GlusterServer and > SocketAddress qapi schemas. > > Thanks to Markus Armbruster > > Signed-off-by: Prasanna Kumar Kalever >

Re: [Qemu-devel] [PATCH 2/2] mirror: fix improperly filled copy_bitmap for mirror block job

2016-09-12 Thread Jeff Cody
On Fri, Sep 09, 2016 at 03:31:48PM +0300, Denis V. Lunev wrote: > bdrv_is_allocated_above() returns true in the case even for completel > zeroed areas as BDRV_BLOCK_ALLOCATED flag is set in both cases. > > The patch stops using bdrv_is_allocated_above() wrapper and switches to >

[Qemu-devel] [PATCH v2 14/15] virtio-crypto: add data virtqueue processing handler

2016-09-12 Thread Gonglei
At present, we only support cipher and algorithm chainning. Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 364 ++ 1 file changed, 364 insertions(+) diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/virtio-crypto.c

[Qemu-devel] [PATCH v2 07/15] virtio-crypto: introduce virtio-crypto.h

2016-09-12 Thread Gonglei
This patch introduces the header of virtio crypto emulation. Signed-off-by: Gonglei --- include/hw/virtio/virtio-crypto.h | 84 +++ 1 file changed, 84 insertions(+) create mode 100644 include/hw/virtio/virtio-crypto.h diff --git

[Qemu-devel] [PATCH v2 15/15] virtio-crypto: support scatter gather list

2016-09-12 Thread Gonglei
Now, we can support scatter gather list on source data, destination data, and associated anthentication data. Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 224 + include/hw/virtio/virtio-crypto.h | 12

[Qemu-devel] [PATCH v2 13/15] virtio-crypto: get correct input data address for each request

2016-09-12 Thread Gonglei
We MUST use the original hva for input data, but not the copyed address, otherwise the guest can't get the results. Fix a non-initial problem in an exception case as well. Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 37 ++--- 1

[Qemu-devel] [PATCH v2 04/15] crypto: add symetric algorithms support

2016-09-12 Thread Gonglei
This patch include three parts, the first is define the session structure and the second is the opertion structure, whose properties are needed to finish the symetric algorithms. The third part defines some function pointers. Signed-off-by: Gonglei --- crypto/crypto.c

[Qemu-devel] [PATCH v2 02/15] crypto: introduce crypto queue handler

2016-09-12 Thread Gonglei
crypto queue is a gallery used for executing crypto operation, which supports both synchronization and asynchronization. The thoughts stolen from net/queue.c Signed-off-by: Gonglei --- crypto/Makefile.objs | 1 + crypto/crypto-queue.c | 206

[Qemu-devel] [PATCH v2 11/15] virtio-crypto: add control queue handler

2016-09-12 Thread Gonglei
Realize the Symmetric algos session creation handler, including plain cipher and chainning algorithms. Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 175 +- 1 file changed, 174 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v2 06/15] crypto: add internal handle logic layer

2016-09-12 Thread Gonglei
This patch add some transfering layer or functions, such as session creation, closing etc, which will be used by subsequent virtio crypto device patches. Signed-off-by: Gonglei --- crypto/crypto.c | 68 + 1 file

[Qemu-devel] [PATCH v2 12/15] virtio-crypto: add destroy session logic

2016-09-12 Thread Gonglei
Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 35 --- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/virtio-crypto.c index 1090946..0d7ab63 100644 ---

[Qemu-devel] [PATCH v2 08/15] virtio-crypto-pci: add virtio crypto pci support

2016-09-12 Thread Gonglei
This patch adds virtio-crypto-pci, which is the pci proxy for the virtio crypto device. Signed-off-by: Gonglei --- hw/virtio/Makefile.objs | 2 +- hw/virtio/virtio-crypto-pci.c | 71 +++ hw/virtio/virtio-pci.h| 15

[Qemu-devel] [PATCH v2 01/15] crypto: introduce cryptodev backend and crypto legacy hardware

2016-09-12 Thread Gonglei
cryptodev backend is used to realize the active work for virtual crypto device. CryptoLegacyHW device is a cryptographic hardware device seen by the virtual machine. The relationship between cryptodev backend and legacy hadware as follow: crypto_legacy_hw device (1)--->(n) cryptodev client

[Qemu-devel] [PATCH v2 09/15] virtio-crypto: add virtio crypto realization

2016-09-12 Thread Gonglei
Introduce the virtio crypto realization, I'll finish the core code in the following patches. The thoughts came from virtio net realization. For more information see: http://qemu-project.org/Features/VirtioCrypto Signed-off-by: Gonglei ---

[Qemu-devel] [PATCH v2 05/15] crypto: add cryptodev-linux as a cryptodev backend

2016-09-12 Thread Gonglei
Cryptodev-linux is a device that allows access to Linux kernel cryptographic drivers; thus allowing of userspace applications to take advantage of hardware accelerators. Cryptodev-linux is implemented as a standalone module that requires no dependencies other than a stock linux kernel. The

[Qemu-devel] [PATCH v2 00/15] virtio-crypto: introduce framework and device emulation

2016-09-12 Thread Gonglei
Changes since v1: - rmmove mixed endian-ness handler for virtio-crypto device, just use little-endian. [mst] - add sg list support according virtio-crypto spec v10 (will be posted soon). - fix a memory leak in session handler. - add a feature page link in qemu.org

[Qemu-devel] [PATCH v2 03/15] crypto: add cryptoLegacyHW stuff

2016-09-12 Thread Gonglei
In previous patch, we define CryptoLegacyHWOptions in qapi-schema.json. we introduce the new/delete funciton about crypto legacy hardware device. Note: legacy cryptographic device support muliple queue. Signed-off-by: Gonglei --- crypto/crypto.c | 74

[Qemu-devel] [PATCH v2 10/15] virtio-crypto: set capacity of crypto legacy hardware

2016-09-12 Thread Gonglei
Set the crypto legacy hardware's capacity according to the backend peer cryptodev's capacity. We only support only one queue at present. Virtio crypto device is a kind of crypto legacy hardware. Signed-off-by: Gonglei --- crypto/crypto.c | 17

[Qemu-devel] question

2016-09-12 Thread WangJie (Captain)
When I send mail to subscribe the mailing list(qemu-devel@nongnu.org), it reply to me that I have already subscribed to this mailing list. But I can not receive any mail form qemu-devel@nongnu.org, How to solve this problem?

Re: [Qemu-devel] [PATCH v5 14/14] aspeed: allocate RAM after the memory controller has checked the size

2016-09-12 Thread Andrew Jeffery
On Fri, 2016-09-09 at 18:22 +0200, Cédric Le Goater wrote: > If the RAM size is invalid, the memory controller will use a default > value. > > Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery > --- >  hw/arm/aspeed.c | 18 +- >  1 file

Re: [Qemu-devel] [PATCH v5 13/14] aspeed: add a ram_size property to the memory controller

2016-09-12 Thread Andrew Jeffery
On Fri, 2016-09-09 at 18:22 +0200, Cédric Le Goater wrote: > Configure the size of the RAM of the SOC using a property to propagate > the value down to the memory controller from the board level. > > Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery >

Re: [Qemu-devel] [PATCH v2 1/5] msix_init: assert programming error

2016-09-12 Thread Cao jin
On 09/12/2016 09:29 PM, Markus Armbruster wrote: Cao jin writes: The input parameters is used for creating the msix capable device, so they must obey the PCI spec, or else, it should be programming error. True when the the parameters come from a device model

Re: [Qemu-devel] [PATCH v5 12/14] aspeed: use error_report instead of LOG_GUEST_ERROR

2016-09-12 Thread Andrew Jeffery
On Fri, 2016-09-09 at 18:22 +0200, Cédric Le Goater wrote: > Also change the default value used in case of an error. The minimum > size is a bit severe, so let's just use an average RAM size. I'm not sure we should be switching the default value in this patch, but I'm not sure it's worth any

Re: [Qemu-devel] [PATCH v5 11/14] aspeed: calculate the RAM size bits at realize time

2016-09-12 Thread Andrew Jeffery
On Fri, 2016-09-09 at 18:22 +0200, Cédric Le Goater wrote: > There is no need to do this at each reset as the RAM size will not > change. > > Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery > --- >  hw/misc/aspeed_sdmc.c | 16

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-12 Thread Jike Song
On 09/08/2016 10:45 AM, Jike Song wrote: > On 08/25/2016 05:22 PM, Dong Jia wrote: >> On Thu, 25 Aug 2016 09:23:53 +0530 >> Kirti Wankhede wrote: >> >> [...] >> >> Dear Kirti, >> >> I just rebased my vfio-ccw patches to this series. >> With a little fix, which was pointed it

Re: [Qemu-devel] (no subject)

2016-09-12 Thread Fam Zheng
On Mon, 09/12 16:23, Stephen Bates wrote: > Hi Hi Stephen, > > I sent this to qemu-discuss with no success so resending to qemu-devel. > > I am doing some very low level OS design work and wanted to be able to > alter some values in the physical memory of my QEMU guest. I can see quite > a few

[Qemu-devel] (no subject)

2016-09-12 Thread Stephen Bates
Hi I sent this to qemu-discuss with no success so resending to qemu-devel. I am doing some very low level OS design work and wanted to be able to alter some values in the physical memory of my QEMU guest. I can see quite a few ways to print/dump both physical and virtual addresses but nothing

Re: [Qemu-devel] [PULL 00/17] Block patches

2016-09-12 Thread Fam Zheng
On Mon, 09/12 16:56, Peter Maydell wrote: > On 12 September 2016 at 16:12, Peter Maydell wrote: > > On 12 September 2016 at 15:08, Stefan Hajnoczi wrote: > >> The following changes since commit > >> c2a57aae9a1c3dd7de77daf5478df10379aeeebf: > >> >

Re: [Qemu-devel] [PATCH COLO-Frame v19 00/22] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service (FT)

2016-09-12 Thread Hailiang Zhang
On 2016/9/10 16:21, Amit Shah wrote: Hi, On (Fri) 09 Sep 2016 [14:45:36], Hailiang Zhang wrote: ping ? Juan will start reviewing and picking patches soon. Great, and the pull request of block replication series has been sent by Stefan, so there is no obstacle to impede this series to be

[Qemu-devel] [PULL v3 17/18] target-i386: Generate fences for x86

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-15-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- target-i386/translate.c | 8 1 file changed, 8 insertions(+) diff --git

[Qemu-devel] [PULL v3 18/18] tcg: Optimize fence instructions

2016-09-12 Thread Richard Henderson
From: Pranith Kumar This commit optimizes fence instructions. Two optimizations are currently implemented: (1) unnecessary duplicate fence instructions, and (2) merging weaker fences into a stronger fence. [rth: Merge tcg_optimize_mb back into tcg_optimize, so that we

[Qemu-devel] [PULL v3 15/18] target-alpha: Generate fence op

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-13-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- target-alpha/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[Qemu-devel] [PULL v3 12/18] tcg/sparc: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-10-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- tcg/sparc/tcg-target.inc.c | 13 + 1 file changed, 13 insertions(+)

[Qemu-devel] [PULL v3 16/18] target-aarch64: Generate fences for aarch64

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-14-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- target-arm/translate-a64.c | 14 +- 1 file changed, 13 insertions(+), 1

[Qemu-devel] [PULL v3 14/18] target-arm: Generate fences in ARMv7 frontend

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-12-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- target-arm/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[Qemu-devel] [PULL v3 09/18] tcg/mips: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-7-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.inc.c | 30 ++ 1 file changed, 30

[Qemu-devel] [PULL v3 10/18] tcg/ppc: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-8-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.inc.c | 21 + 1 file changed, 21 insertions(+)

[Qemu-devel] [PULL v3 07/18] tcg/arm: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Cc: Andrzej Zaborowski Cc: Peter Maydell Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-5-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson

[Qemu-devel] [PULL v3 13/18] tcg/tci: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Cc: Stefan Weil Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-11-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.inc.c | 3 +++ tci.c

[Qemu-devel] [PULL v3 11/18] tcg/s390: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Cc: Alexander Graf Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-9-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.inc.c | 11 +++ 1 file

[Qemu-devel] [PULL v3 05/18] tcg/i386: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Generate a 'lock orl $0,0(%esp)' instruction for ordering instead of mfence which has similar ordering semantics. Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-3-bobby.pr...@gmail.com> Signed-off-by: Richard

[Qemu-devel] [PULL v3 04/18] Introduce TCGOpcode for memory barrier

2016-09-12 Thread Richard Henderson
From: Pranith Kumar This commit introduces the TCGOpcode for memory barrier instruction. This opcode takes an argument which is the type of memory barrier which should be generated. Signed-off-by: Pranith Kumar Message-Id:

[Qemu-devel] [PULL v3 06/18] tcg/aarch64: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Cc: Claudio Fontana Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-4-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 24

[Qemu-devel] [PULL v3 08/18] tcg/ia64: Add support for fence

2016-09-12 Thread Richard Henderson
From: Pranith Kumar Cc: Aurelien Jarno Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-6-bobby.pr...@gmail.com> Signed-off-by: Richard Henderson --- tcg/ia64/tcg-target.inc.c | 5 + 1 file

[Qemu-devel] [PULL v3 01/18] tcg: Support arbitrary size + alignment

2016-09-12 Thread Richard Henderson
Previously we allowed fully unaligned operations, but not operations that are aligned but with less alignment than the operation size. In addition, arm32, ia64, mips, and sparc had been omitted from the previous overalignment patch, which would have led to that alignment being enforced.

[Qemu-devel] [PULL v3 03/18] cpu-exec: Check -dfilter for -d cpu

2016-09-12 Thread Richard Henderson
Signed-off-by: Richard Henderson --- cpu-exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu-exec.c b/cpu-exec.c index 5d9710a..e7f851c 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -147,7 +147,8 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState

[Qemu-devel] [PULL v3 02/18] tcg: Merge GETPC and GETRA

2016-09-12 Thread Richard Henderson
The return address argument to the softmmu template helpers was confused. In the legacy case, we wanted to indicate that there is no return address, and so passed in NULL. However, we then immediately subtracted GETPC_ADJ from NULL, resulting in a non-zero value, indicating the presence of an

[Qemu-devel] [PULL v3 00/18] tcg queued patches

2016-09-12 Thread Richard Henderson
:41 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-tcg-20160912 for you to fetch changes up to 3c8951649d996facd9581752b87b6c09d2dbab06: tcg: Optimize fence instructions (2016-09-12 16:29:50 -0700

Re: [Qemu-devel] [PATCH v2] target-i386: Use struct X86XSaveArea in fpu_helper.c

2016-09-12 Thread Eduardo Habkost
On Wed, Sep 07, 2016 at 09:47:07AM -0700, Richard Henderson wrote: > On 07/06/2016 01:35 PM, Richard Henderson wrote: > > This avoids a double hand-full of magic numbers in the > > xsave and xrstor helper functions. > > > > Signed-off-by: Richard Henderson > > --- > >

[Qemu-devel] [Bug 672934] Re: FPU incorrect on Mac OS X

2016-09-12 Thread G 3
On Sep 12, 2016, at 5:03 PM, qemu-devel-requ...@nongnu.org wrote: Looks like the ISO from comment #4 (thanks for attaching that one!) shows the correct behavior with up to date QEMU 2.7. Also, the affected softfloat code has been completely reworked in between (e.g. with commit

Re: [Qemu-devel] [PATCH 9/9] tests: cris: add v17 ADDC test

2016-09-12 Thread Edgar E. Iglesias
On Mon, Sep 05, 2016 at 01:54:12PM +0200, Rabin Vincent wrote: > From: Rabin Vincent > > Add a test for the newly implemented ADDC instruction in the v17 CRIS > CPU. > > Signed-off-by: Rabin Vincent Acked-by: Edgar E. Iglesias >

Re: [Qemu-devel] [PATCH 4/9] tests: cris: remove check_time1

2016-09-12 Thread Edgar E. Iglesias
On Mon, Sep 05, 2016 at 01:54:07PM +0200, Rabin Vincent wrote: > From: Rabin Vincent > > This test, borrowed from the GDB simulator test suite, checks that every > syscall increments the time returned by gettimeofday() by exactly 1 ms. > This is not guaranteed or even desirable

Re: [Qemu-devel] [PATCH 6/9] target-cris: reduce v32isms from v10 log dumps

2016-09-12 Thread Edgar E. Iglesias
On Mon, Sep 05, 2016 at 01:54:09PM +0200, Rabin Vincent wrote: > From: Hans-Peter Nilsson > > Use the correct register names for v10 and don't dump support function > registers for pre-v32. > > Signed-off-by: Hans-Peter Nilsson > Signed-off-by: Rabin Vincent

Re: [Qemu-devel] [PATCH 3/9] tests: cris: remove openpf4 test

2016-09-12 Thread Edgar E. Iglesias
On Mon, Sep 05, 2016 at 01:54:06PM +0200, Rabin Vincent wrote: > From: Rabin Vincent > > This test, borrowed from the GDB simulator test suite, is meant to test > the GDB simulator's --sysroot feature and always fails in QEMU. Remove > it. openpf3 tests the same sequence of

Re: [Qemu-devel] [PATCH 7/9] target-cris: ignore prefix insns in singlestep

2016-09-12 Thread Edgar E. Iglesias
On Mon, Sep 05, 2016 at 01:54:10PM +0200, Rabin Vincent wrote: > From: Hans-Peter Nilsson > > Don't count prefix instructions as separate when singlestepping. > > For example, for this following instruction > > 1ad8: a011 e00b move.d r0,[r1-96] > > before

Re: [Qemu-devel] [PATCH v6 18/18] Replace qmp-commands.hx by docs/qmp-commands.txt

2016-09-12 Thread Marc-André Lureau
Hi On Tue, Sep 13, 2016 at 1:54 AM Peter Maydell wrote: > On 12 September 2016 at 10:19, Marc-André Lureau > wrote: > > The only remaining function of qmp-commands.hx is to let us generate > > qmp-commands.txt from it. Replace

Re: [Qemu-devel] [PATCH 8/9] target-cris: add v17 CPU

2016-09-12 Thread Edgar E. Iglesias
On Mon, Sep 05, 2016 at 01:54:11PM +0200, Rabin Vincent wrote: > From: Rabin Vincent > > In the CRIS v17 CPU an ADDC (add with carry) instruction has been added > compared to the v10 instruction set. > > Assembler syntax: > > ADDC [Rs],Rd > ADDC [Rs+],Rd > > Size: Dword

Re: [Qemu-devel] [PATCH v6 18/18] Replace qmp-commands.hx by docs/qmp-commands.txt

2016-09-12 Thread Peter Maydell
On 12 September 2016 at 10:19, Marc-André Lureau wrote: > The only remaining function of qmp-commands.hx is to let us generate > qmp-commands.txt from it. Replace qmp-commands.hx by qmp-commands.txt. > > We intend to move the documentation into the QAPI schema and

Re: [Qemu-devel] [PATCH 2/2] mirror: fix improperly filled copy_bitmap for mirror block job

2016-09-12 Thread Eric Blake
On 09/09/2016 07:31 AM, Denis V. Lunev wrote: > bdrv_is_allocated_above() returns true in the case even for completel s/completel/completely/ > zeroed areas as BDRV_BLOCK_ALLOCATED flag is set in both cases. > > The patch stops using bdrv_is_allocated_above() wrapper and switches to >

Re: [Qemu-devel] [PATCH v6 18/18] Replace qmp-commands.hx by docs/qmp-commands.txt

2016-09-12 Thread Eric Blake
On 09/12/2016 04:19 AM, Marc-André Lureau wrote: > The only remaining function of qmp-commands.hx is to let us generate > qmp-commands.txt from it. Replace qmp-commands.hx by qmp-commands.txt. > > We intend to move the documentation into the QAPI schema and generate > qapi-commands.txt from it,

[Qemu-devel] [Bug 672934] Re: FPU incorrect on Mac OS X

2016-09-12 Thread Michael Roitzsch
I can confirm that recent QEMU works fine. Sorry, I forgot about this bug and did not update it. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/672934 Title: FPU incorrect on Mac OS X Status in

[Qemu-devel] [PATCH] ipmi: Add graceful shutdown handling to the external BMC

2016-09-12 Thread minyard
From: Corey Minyard I misunderstood the workings of the power settings, the power off is a force off operation and there needs to be a separate graceful shutdown operation. So replace the force off operation with a graceful shutdown. Signed-off-by: Corey Minyard

Re: [Qemu-devel] [PATCH 1/3] vfio/pci: conversion to realize

2016-09-12 Thread Auger Eric
Hi, On 12/09/2016 22:05, Alex Williamson wrote: > On Mon, 12 Sep 2016 21:39:22 +0200 > Auger Eric wrote: > >> Hi, >> On 12/09/2016 18:17, Alex Williamson wrote: >>> On Mon, 12 Sep 2016 16:00:18 +0200 >>> Auger Eric wrote: >>> Hi Markus,

Re: [Qemu-devel] [PATCH v2 9/9] [optional] arm: smmu-v3: ACPI IORT initial support

2016-09-12 Thread Prem Mallappa
On Fri, Sep 9, 2016 at 8:54 PM, Auger Eric wrote: > Hi Prem, > > On 22/08/2016 18:17, Prem Mallappa wrote: > > Added ACPI IORT tables, was needed for internal project purpose, but > > posting here for anyone looking for testing ACPI on ARM platforms. > > (P.S: Linux side

[Qemu-devel] FreeBSD guest and Linux host with EVENT_IDX feature

2016-09-12 Thread Vince Hurrell
Hello, I've been having trouble when enabling the EVENT_IDX feature in the virtio-net guest FreeBSD driver. The feature enables fine, but traffic through the virtual interface (perceived from the guest side) stops relatively quickly after starting the KVM instance on the host side. I'm using

[Qemu-devel] [Bug 974958] Re: It dumps when following this tutorial on hello world os

2016-09-12 Thread T. Huth
The referenced website is no longer available, thus setting this ticket to INVALID. Please feel free to re-open it if the information is available somewhere else and you can reproduce it with the latest version of QEMU. ** Changed in: qemu Status: New => Invalid -- You received this bug

Re: [Qemu-devel] [PATCH v2 1/9] log: Add new IOMMU type

2016-09-12 Thread Prem Mallappa
On Fri, Sep 9, 2016 at 9:06 PM, Auger Eric wrote: > Hi Prem, > > Missing commit message > > > Signed-off-by: Prem Mallappa > > --- > > include/qemu/log.h | 1 + > > util/log.c | 2 ++ > > 2 files changed, 3 insertions(+) > > > > diff

Re: [Qemu-devel] [PATCH v2 2/9] devicetree: Added new APIs to make use of more fdt functions

2016-09-12 Thread Prem Mallappa
On Fri, Sep 9, 2016 at 9:32 PM, Auger Eric wrote: > Hi Prem, > > > SMMUv3 needs device tree entry like below > To me the commit message should be more explicit and mention appendprop > functionality > > > > interrupt-names = "gerror", "priq", "eventq", "cmdq-sync"; >

Re: [Qemu-devel] [PATCH v2 5/9] hw: arm: Add SMMUv3 to virt platform, create DTS accordingly

2016-09-12 Thread Prem Mallappa
On Fri, Sep 9, 2016 at 10:01 PM, Auger Eric wrote: > Hi Prem, > > > Default virt platform now creates SMMU device. > > Default config to build SMMU device along is in previous patches. > > > > Signed-off-by: Prem Mallappa > > --- > >

Re: [Qemu-devel] [PATCH v3 06/34] tcg: Add EXCP_ATOMIC

2016-09-12 Thread Richard Henderson
On 09/12/2016 07:16 AM, Alex Bennée wrote: +void cpu_exec_step(CPUState *cpu) +{ +CPUArchState *env = (CPUArchState *)cpu->env_ptr; +TranslationBlock *tb; +target_ulong cs_base, pc; +uint32_t flags; +bool old_tb_flushed; + +old_tb_flushed = cpu->tb_flushed; +

[Qemu-devel] [Bug 674740] Re: qemu segfaults when security_model=none using virtio-9p-pci driver

2016-09-12 Thread T. Huth
Current QEMU 2.7 does not segfault here anymore, and the "thesecurity" problem is also not available in the sources anymore ==> I think this can be closed nowadays. ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu-

Re: [Qemu-devel] [PATCH 1/3] vfio/pci: conversion to realize

2016-09-12 Thread Alex Williamson
On Mon, 12 Sep 2016 21:39:22 +0200 Auger Eric wrote: > Hi, > On 12/09/2016 18:17, Alex Williamson wrote: > > On Mon, 12 Sep 2016 16:00:18 +0200 > > Auger Eric wrote: > > > >> Hi Markus, > >> > >> On 12/09/2016 14:45, Markus Armbruster wrote: >

Re: [Qemu-devel] [PATCH v6 01/18] build-sys: define QEMU_VERSION_{MAJOR, MINOR, MICRO}

2016-09-12 Thread Eric Blake
On 09/12/2016 04:18 AM, Marc-André Lureau wrote: > There are better chances to find what went wrong at build time than a > later assert in qmp_query_version > > Signed-off-by: Marc-André Lureau > --- > qmp.c | 16 +++- >

Re: [Qemu-devel] [PATCH] virtio-bus: Plug devices after features are negotiated

2016-09-12 Thread Michael S. Tsirkin
On Mon, Sep 12, 2016 at 08:22:50PM +0200, Maxime Coquelin wrote: > > > On 09/12/2016 10:51 AM, Cornelia Huck wrote: > > On Sat, 10 Sep 2016 10:23:37 +0200 > > Maxime Coquelin wrote: > > > > > > Currently, devices are plugged before features are negotiated. > > > >

[Qemu-devel] [PATCH v5 3/5] linux-user: Fix structure target_flock definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic Structure flock is defined for Mips in a way different from any other platform. For reference, see Linux kernel source code files: arch/mips/include/uapi/asm/fcntl.h#L63 (for Mips) include/uapi/asm-generic/fcntl.h#L195 (for all other

[Qemu-devel] [PATCH v3 10/10] linux-user: Remove a duplicate item from strace.list

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic There is a duplicate item in strace.list. It is benign, but it shouldn't be there. It is the only duplicate in strace.list. This patch removes it. Signed-off-by: Aleksandar Markovic ---

Re: [Qemu-devel] [PATCH 5/5] QMP: fixup typos and whitespace damage

2016-09-12 Thread Eric Blake
On 09/12/2016 06:00 AM, Cornelia Huck wrote: > From: Christian Borntraeger > > Fixup some typos and whitespace damage introduced by the CPU model > patches for s390. > > Reported-by: Eric Blake > Signed-off-by: Christian Borntraeger

[Qemu-devel] [PATCH v3 03/10] linux-user: Add support for ustat() syscall

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch implements Qemu user mode ustat() syscall support. Syscall ustat() returns information about a mounted filesystem. The implementation is similar to the implementations of statfs(), fstatfs() and other related syscalls. It is

[Qemu-devel] [Bug 672934] Re: FPU incorrect on Mac OS X

2016-09-12 Thread T. Huth
Looks like the ISO from comment #4 (thanks for attaching that one!) shows the correct behavior with up to date QEMU 2.7. Also, the affected softfloat code has been completely reworked in between (e.g. with commit cf67c6bad56d43e6d60), so I assume this has been fixed sometimes in the past years.

[Qemu-devel] [PATCH v5 4/5] linux-user: Fix structure target_semid64_ds definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch corrects target_semid64_ds structure definition for Mips. See, for example definition of semid64_ds for Mips in Linux kernel: arch/mips/include/uapi/asm/sembuf.h#L13. This patch will also fix certain semaphore-related LTP

[Qemu-devel] [PATCH v3 07/10] linux-user: Remove tabs and trailing spaces from linux-user/main.c

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic File main.c is frequently a starting point of debugging or analysing Qemu code for novice devevelopers, and it would be nice if it had format as clean as posible. This patch starts improving its format by removing tabs and trailing

Re: [Qemu-devel] [PATCH v4 0/4] Introduce error_report_{fatal|abort}

2016-09-12 Thread Eric Blake
On 09/09/2016 12:05 PM, Markus Armbruster wrote: > > You effectively propose to revise this coding rule from error.h: > > * Please don't error_setg(_fatal, ...), use error_report() and > * exit(), because that's more obvious. > * Likewise, don't error_setg(_abort, ...), use assert(). > > If

[Qemu-devel] [PATCH v5 2/5] linux-user: Fix TARGET_F_GETOWN definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not match the correct value of correspondant F_GETOWN. This patch fixes this problem. For reference, see Mips' F_GETOWN definition in Linux kernel at

[Qemu-devel] [PATCH v3 02/10] linux-user: Add support for sysfs() syscall

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its first

[Qemu-devel] [PATCH v3 09/10] linux-user: Improve usage of spaces in linux-user/main.c

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch removes all spaces-related errors (reported by checkpatch.pl) from linux-user/main.c. Signed-off-by: Aleksandar Markovic --- linux-user/main.c | 96

[Qemu-devel] [PATCH v5 5/5] linux-user: Fix certain argument alignment cases for Mips64

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic The function that is changed in this patch is supposed to indicate that there was certaing argument rearangement related to 64-bit arguments on 32-bit platforms. The background on such rearangements can be found, for example, in the man

[Qemu-devel] [PATCH v3 01/10] linux-user: Add support for adjtimex() syscall

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch implements Qemu user mode adjtimex() syscall support. Syscall adjtimex() reads and optionally sets parameters for a clock adjustment algorithm used in network synchonization or similar scenarios. The implementation is based

[Qemu-devel] [PATCH v5 1/5] linux-user: Fix TARGET_SIOCATMARK definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch fixes wrong definition of TARGET_SIOCATMARK for Mips. The current definition is: #define SIOCATMARK 0x8905 while the correct definition is: #define SIOCATMARK TARGET_IOR('s', 7, int) See Linux kernel source

[Qemu-devel] [PATCH v3 08/10] linux-user: Improve braces-related formatting in linux-user/main.c

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch removes all braces-related errors (reported by checkpatch.pl) from linux-user/main.c. Signed-off-by: Aleksandar Markovic --- linux-user/main.c | 188

[Qemu-devel] [PATCH v3 05/10] linux-user: Fix socketcall() syscall emulation

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic do_socketcall() function in Qemu's syscalls.c is implemented to mirror corespondant implementation of socketcall() in Linux kernel. (see kernel source file net/socket.c, definition of socketcall). However, error codes are wrong for the

[Qemu-devel] [PATCH v5 0/5] linux-user: Fix miscellaneous Mips-specific issues

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic v4->v5: - Commit messages improved. v3->v4: - Added a patch on agrument rearangement. v2->v3: - Minor fixes in the commit messages. v1->v2: - Improved a comment in the patch about target_semid64_ds (now 4/4). - Added a

Re: [Qemu-devel] [PATCH 1/3] vfio/pci: conversion to realize

2016-09-12 Thread Auger Eric
Hi, On 12/09/2016 18:17, Alex Williamson wrote: > On Mon, 12 Sep 2016 16:00:18 +0200 > Auger Eric wrote: > >> Hi Markus, >> >> On 12/09/2016 14:45, Markus Armbruster wrote: >>> Eric Auger writes: >>> This patch converts VFIO PCI to realize

[Qemu-devel] [PATCH v3 04/10] linux-user: Fix msgrcv() and msgsnd() syscalls emulation

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic If syscalls msgrcv() and msgsnd() fail, they return E2BIG, EACCES, EAGAIN, EFAULT, EIDRM, EINTR, EINVAL, ENOMEM, or ENOMSG. By examining negative scenarios of these syscalls for Mips, it was established that ENOMSG does not have the same

[Qemu-devel] [PATCH v3 00/10] linux user: Fix assorted Qemu user mode issues

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic v2->v3: - rebased to the latest code - merged patches on adjtimex(), sysfs(), and ustat() from another series - added patch on socketcall() support (5/10) - cleanup patches reorganized v1->v2: - improved usage of

[Qemu-devel] [PATCH v3 06/10] linux-user: Fix syslog() syscall emulation

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic There are currently several problems related to syslog() support. For example, if the second argument "bufp" of target syslog() syscall is NULL, the current implementation always returns error code EFAULT. However, NULL is a perfectly

  1   2   3   4   >