[Qemu-devel] [PATCH] target-mips: add 24KEc CPU definition

2016-07-26 Thread André Draszik
Define a new CPU definition supporting 24KEc cores, similar to the existing 24Kc, but with added support for DSP instructions and MIPS16e (and without FPU). Signed-off-by: André Draszik --- target-mips/translate_init.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/t

Re: [Qemu-devel] [RFC PATCH 3/3] hw/arm/virt: add nvdimm emulation support

2016-07-26 Thread kwangwoo....@sk.com
Hi Peter, Please, check the comments below. Thanks a lot! > -Original Message- > From: Peter Maydell [mailto:peter.mayd...@linaro.org] > Sent: Tuesday, July 26, 2016 1:06 AM > To: 이광우(LEE KWANGWOO) MS SW > Cc: Xiao Guangrong; Michael S. Tsirkin; Igor Mammedov; Paolo Bonzini; Richard > He

Re: [Qemu-devel] [PULL v2 27/30] mptsas: remove unnecessary internal msi state flag

2016-07-26 Thread Cao jin
On 07/26/2016 01:01 PM, Amit Shah wrote: On (Tue) 05 Jul 2016 [18:47:40], Michael S. Tsirkin wrote: From: Cao jin internal flag msi_in_use in unnecessary, msi_uninit() could be called directly, and msi_enabled() is enough to check device msi state. cc: Markus Armbruster cc: Marcel Apfelbau

[Qemu-devel] usb keyboard and mouse can't work on QEMU ARM64 with KVM

2016-07-26 Thread Shannon Zhao
Hi, Recently I'm trying to use usb keyboard and mouse with QEMU on ARM64. Below is my QEMU command line, host and guest kernel both are 4.7.0-rc7+, and I ran it on Hikey board. qemu-system-aarch64 \ -smp 1 -cpu host -enable-kvm \ -m 256 -M virt \ -k en-us \ -nographic \ -

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Igor Mammedov
On Tue, 26 Jul 2016 10:41:38 +0530 Amit Shah wrote: > On (Wed) 20 Jul 2016 [12:08:32], Eduardo Habkost wrote: > > From: Igor Mammedov > > > > instance_id is generated by last_used_id + 1 for a given device type > > so for QEMU with 3 CPUs instance_id for APICs is a seti of [0, 1, 2] > > When CP

Re: [Qemu-devel] usb keyboard and mouse can't work on QEMU ARM64 with KVM

2016-07-26 Thread Ard Biesheuvel
On 26 July 2016 at 09:34, Shannon Zhao wrote: > Hi, > > Recently I'm trying to use usb keyboard and mouse with QEMU on ARM64. Below > is my QEMU command line, > host and guest kernel both are 4.7.0-rc7+, and I ran it on Hikey board. > > qemu-system-aarch64 \ > -smp 1 -cpu host -enable-kvm

[Qemu-devel] [PATCH v23 02/12] Backup: clear all bitmap when doing block checkpoint

2016-07-26 Thread Changlong Xie
From: Wen Congyang Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/backup.c | 18 ++ include/block/block_backup.h | 25 + 2 files changed,

[Qemu-devel] [PATCH v23 01/12] unblock backup operations in backing file

2016-07-26 Thread Changlong Xie
From: Wen Congyang Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei --- block.c | 17 + 1 file changed, 17 insertions(+) diff --git a/block.c b/block.c index 30d64e6..194a060 100644 --- a/block.c +++ b/block.c @@ -1311,6 +1311,23 @@ void bdr

[Qemu-devel] [PATCH v23 03/12] Backup: export interfaces for extra serialization

2016-07-26 Thread Changlong Xie
Normal backup(sync='none') workflow: step 1. NBD peformance I/O write from client to server qcow2_co_writev bdrv_co_writev ... bdrv_aligned_pwritev notifier_with_return_list_notify -> backup_do_cow bdrv_driver_pwritev // write new contents step 2. drive-backup s

[Qemu-devel] [PATCH v23 00/12] Block replication for continuous checkpoints

2016-07-26 Thread Changlong Xie
Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). You can get the detailed information about block replication from here: http://wiki.qemu.org/Features/BlockReplication Usage: Please refer to docs/block-replication.txt You can get the patc

[Qemu-devel] [PATCH v23 08/12] Introduce new APIs to do replication operation

2016-07-26 Thread Changlong Xie
This commit introduces six replication interfaces(for block, network etc). Firstly we can use replication_(new/remove) to create/destroy replication instances, then in migration we can use replication_(start/stop/do_checkpoint /get_error)_all to handle all replication operations. More detail please

[Qemu-devel] [PATCH v23 09/12] Implement new driver for block replication

2016-07-26 Thread Changlong Xie
From: Wen Congyang Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/Makefile.objs | 1 + block/replication.c | 658 2 files changed, 659 in

[Qemu-devel] [PATCH v23 04/12] Link backup into block core

2016-07-26 Thread Changlong Xie
From: Wen Congyang Some programs that add a dependency on it will use the block layer directly. Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei Signed-off-by: zhanghailiang Signed-off-by: Gonglei Reviewed-by: Stefan Hajnoczi Reviewed-by: Jeff Cody ---

[Qemu-devel] [PATCH v23 06/12] auto complete active commit

2016-07-26 Thread Changlong Xie
From: Wen Congyang Auto complete mirror job in background to prevent from blocking synchronously Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei --- block/mirror.c| 13 + blockdev.c| 2 +- include/block/block_int.h

[Qemu-devel] [PATCH v23 07/12] configure: support replication

2016-07-26 Thread Changlong Xie
configure --(enable/disable)-replication to switch replication support on/off, and it is on by default. We later introduce replation support. Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei --- configure | 11 +++ 1 file changed, 11 insertions(+) di

[Qemu-devel] [PATCH v23 12/12] MAINTAINERS: add maintainer for replication

2016-07-26 Thread Changlong Xie
As per Stefan's suggestion, add Wen and I as co-maintainers of replication. Cc: Stefan Hajnoczi Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d1439a8..8fa2a25 100644 --- a/MAI

[Qemu-devel] [PATCH v23 05/12] docs: block replication's description

2016-07-26 Thread Changlong Xie
From: Wen Congyang Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- docs/block-replication.txt | 239 + 1 file changed, 239 insertions(+) create mode 10064

[Qemu-devel] [PATCH v23 10/12] tests: add unit test case for replication

2016-07-26 Thread Changlong Xie
Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei --- tests/.gitignore | 1 + tests/Makefile.include | 4 + tests/test-replication.c | 575 +++ 3 files changed, 580 insertions(+) create mode 100644 test

Re: [Qemu-devel] [PATCH v4 6/8] STM32F205: Connect the ADC devices

2016-07-26 Thread Peter Maydell
On 26 July 2016 at 06:08, Alistair Francis wrote: > I think this function should work: > > /* > * qemu_allocate_or_irqs > * @in_irq: An input IRQ. It will be the result of the @out_irqs ORed together > * @n: The number of interrupt lines that should be ORed together > * > * returns: An array

[Qemu-devel] [PATCH v23 11/12] support replication driver in blockdev-add

2016-07-26 Thread Changlong Xie
From: Wen Congyang Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie Signed-off-by: Wang WeiWei Signed-off-by: zhanghailiang Signed-off-by: Gonglei Reviewed-by: Eric Blake --- qapi/block-core.json | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --

Re: [Qemu-devel] [RFC PATCH 3/3] hw/arm/virt: add nvdimm emulation support

2016-07-26 Thread Peter Maydell
On 26 July 2016 at 08:03, kwangwoo@sk.com wrote: > Hi Peter, > > Please, check the comments below. Thanks a lot! > >> -Original Message- >> From: Peter Maydell [mailto:peter.mayd...@linaro.org] >> This seems to be missing code to write the device tree >> information about whatever this

Re: [Qemu-devel] [PULL 4/7] scripts: refactor the VM class in iotests for reuse

2016-07-26 Thread Daniel P. Berrange
On Tue, Jul 26, 2016 at 02:23:52AM +0200, Max Reitz wrote: > On 22.07.2016 10:00, Amit Shah wrote: > > From: "Daniel P. Berrange" > > > > The iotests module has a python class for controlling QEMU > > processes. Pull the generic functionality out of this file > > and create a scripts/qemu.py modu

Re: [Qemu-devel] [PATCH 1/3] qdist: fix memory leak during binning

2016-07-26 Thread Marc-André Lureau
Hi On Mon, Jul 25, 2016 at 7:03 PM, Emilio G. Cota wrote: > In qdist_bin__internal(), to->entries is initialized to a 1-element array, > which we then leak when n == from->n. Fix it. > > Signed-off-by: Emilio G. Cota > --- > util/qdist.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [Qemu-devel] usb keyboard and mouse can't work on QEMU ARM64 with KVM

2016-07-26 Thread Shannon Zhao
On 2016/7/26 16:07, Ard Biesheuvel wrote: > On 26 July 2016 at 09:34, Shannon Zhao wrote: >> > Hi, >> > >> > Recently I'm trying to use usb keyboard and mouse with QEMU on ARM64. >> > Below is my QEMU command line, >> > host and guest kernel both are 4.7.0-rc7+, and I ran it on Hikey board. >>

Re: [Qemu-devel] [PATCH 2/3] qdist: use g_realloc_n instead of g_realloc

2016-07-26 Thread Marc-André Lureau
Hi On Mon, Jul 25, 2016 at 7:03 PM, Emilio G. Cota wrote: > While at it, remove the unnecessary parentheses around dist->size. > > Signed-off-by: Emilio G. Cota > --- > util/qdist.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/util/qdist.c b/util/qdist.c > index

[Qemu-devel] [PATCH] mptsas: Fix a migration compatible issue

2016-07-26 Thread Cao jin
My previous commit 2e2aa316 removed internal flag msi_in_use, which exists in vmstate, use VMSTATE_UNUSED for migration compatibility. Reported-by: Amit Shah Suggested-by: Amit Shah Cc: Markus Armbruster Cc: Marcel Apfelbaum Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Amit Shah Signed-off-

[Qemu-devel] [Bug 1603636] Re: Guest has not initialized the display yet on ubuntu 16.10 PPC

2016-07-26 Thread T. Huth
If git bisect says something about "XX revisions left to test after this" then you're not done yet, you have to continue the git bisecting process until it is finished. And if you need the sdl2 patch additionally, you have to apply it manually after each step if necessary. I'm sorry, it's quite

[Qemu-devel] [Bug 1603636] Re: Guest has not initialized the display yet on ubuntu 16.10 PPC

2016-07-26 Thread luigiburdo
Hi T, Ok. I m sorry i was thinking only this was needed i will made the other git bisect and report Luigi -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1603636 Title: Guest has not initialized t

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Laurent Vivier
On 23/07/2016 08:30, David Gibson wrote: > On Fri, Jul 22, 2016 at 09:28:58AM +0200, Laurent Vivier wrote: >> >> >> On 22/07/2016 08:43, David Gibson wrote: >>> On Thu, Jul 21, 2016 at 06:47:56PM +0200, Laurent Vivier wrote: As userfaultfd syscall is available on powerpc, migration post

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Thomas Huth
On 26.07.2016 11:23, Laurent Vivier wrote: > > > On 23/07/2016 08:30, David Gibson wrote: >> On Fri, Jul 22, 2016 at 09:28:58AM +0200, Laurent Vivier wrote: >>> >>> >>> On 22/07/2016 08:43, David Gibson wrote: On Thu, Jul 21, 2016 at 06:47:56PM +0200, Laurent Vivier wrote: > As userfault

[Qemu-devel] R: [PATCH v2] Unbreak FreeBSD build after optionrom update.

2016-07-26 Thread Paolo Bonzini
> Update the build flags appropriately for FreeBSD and add the correct > LD_EMULATION type for the FreeBSD build case. > > Signed-off-by: Sean Bruno I posted the right fix a couple days ago, but didn't manage to send a pull request before leaving and I am on mobile until next Monday. Search t

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Laurent Vivier
On 26/07/2016 11:28, Thomas Huth wrote: > On 26.07.2016 11:23, Laurent Vivier wrote: >> >> >> On 23/07/2016 08:30, David Gibson wrote: >>> On Fri, Jul 22, 2016 at 09:28:58AM +0200, Laurent Vivier wrote: On 22/07/2016 08:43, David Gibson wrote: > On Thu, Jul 21, 2016 at 06:47:56

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Igor Mammedov
On Tue, 26 Jul 2016 10:41:38 +0530 Amit Shah wrote: > On (Wed) 20 Jul 2016 [12:08:32], Eduardo Habkost wrote: > > From: Igor Mammedov > > > > instance_id is generated by last_used_id + 1 for a given device type > > so for QEMU with 3 CPUs instance_id for APICs is a seti of [0, 1, 2] > > When CP

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Laurent Vivier
On 26/07/2016 11:39, Laurent Vivier wrote: > > > On 26/07/2016 11:28, Thomas Huth wrote: >> On 26.07.2016 11:23, Laurent Vivier wrote: >>> >>> >>> On 23/07/2016 08:30, David Gibson wrote: On Fri, Jul 22, 2016 at 09:28:58AM +0200, Laurent Vivier wrote: > > > On 22/07/2016 08:43,

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Dr. David Alan Gilbert
* Laurent Vivier (lviv...@redhat.com) wrote: > > > On 26/07/2016 11:39, Laurent Vivier wrote: > > > > > > On 26/07/2016 11:28, Thomas Huth wrote: > >> On 26.07.2016 11:23, Laurent Vivier wrote: > >>> > >>> > >>> On 23/07/2016 08:30, David Gibson wrote: > On Fri, Jul 22, 2016 at 09:28:58AM

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Laurent Vivier
On 26/07/2016 11:54, Dr. David Alan Gilbert wrote: > * Laurent Vivier (lviv...@redhat.com) wrote: >> >> >> On 26/07/2016 11:39, Laurent Vivier wrote: >>> >>> >>> On 26/07/2016 11:28, Thomas Huth wrote: On 26.07.2016 11:23, Laurent Vivier wrote: > > > On 23/07/2016 08:30, David Gi

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Thomas Huth
On 26.07.2016 11:53, Laurent Vivier wrote: > > > On 26/07/2016 11:39, Laurent Vivier wrote: >> >> >> On 26/07/2016 11:28, Thomas Huth wrote: >>> On 26.07.2016 11:23, Laurent Vivier wrote: On 23/07/2016 08:30, David Gibson wrote: > On Fri, Jul 22, 2016 at 09:28:58AM +0200, Laure

Re: [Qemu-devel] [PATCH] hw/mips_malta: Fix YAMON API print routine

2016-07-26 Thread Leon Alrae
On Fri, Jul 22, 2016 at 10:55:40AM +0100, Paul Burton wrote: > The print routine provided as part of the in-built bootloader had a bug > in that it attempted to use a jump instruction as part of a loop, but > the target has its upper bits zeroed leading to control flow > transferring to 0xb814

[Qemu-devel] [PATCH v2 1/1] Reorganize help output of '-display' option

2016-07-26 Thread Robert Ho
The '-display' help information is not very correct. This patch sort it a little. Also, in its help information, reveals what implicit display option will be chosen if no definition. Changelog: v2: --fix typo of 'display' --change some discription words Signed-off-by: Robert Ho --- qemu-optio

[Qemu-devel] [PATCH] imx: Use 'const char', not 'char const'

2016-07-26 Thread Peter Maydell
'char const' means the same thing as 'const char', but we use the former in only a handful of places and we use the latter over six thousand times. Switch the imx reg_name() functions to bring them in line with everything else. Signed-off-by: Peter Maydell --- Just a minor style nit I noticed. Th

Re: [Qemu-devel] [PULL for-2.7 0/3] qemu-ga patch queue for 2.7

2016-07-26 Thread Peter Maydell
On 25 July 2016 at 20:04, Michael Roth wrote: > The following changes since commit 2d2e632ad00d11867c6c5625605b1fbc022dd62f: > > Update version for v2.7.0-rc0 release (2016-07-22 15:32:42 +0100) > > are available in the git repository at: > > git://github.com/mdroth/qemu.git tags/qga-pull-2016

[Qemu-devel] [RFC PATCH v1 0/2] GICv3 live migration support

2016-07-26 Thread vijay . kilari
From: Vijaya Kumar K This series introduces support for GICv3 live migration with new VGIC implementation in 4.7-rc3 kernel. In this series, patch 2 & 3 of the previous implementation are ported. https://lists.nongnu.org/archive/html/qemu-devel/2015-10/msg05284.html Kernel patches which implemen

[Qemu-devel] [RFC PATCH v1 1/2] kernel: Add definitions for GICv3 attributes

2016-07-26 Thread vijay . kilari
From: Vijaya Kumar K This temporary patch adds kernel API definitions. Use proper header update procedure after these features are released. Signed-off-by: Pavel Fedin --- linux-headers/asm-arm64/kvm.h | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [RFC PATCH v1 2/2] hw/intc/arm_gicv3_kvm: Implement get/put functions

2016-07-26 Thread vijay . kilari
From: Vijaya Kumar K This actually implements pre_save and post_load methods for in-kernel vGICv3. Signed-off-by: Pavel Fedin Signed-off-by: Vijaya Kumar K [Vijay: - Adjusted macros to handle gicr variables - Used gicr_typer for affinity - Made all GICD/GICR registers access as 32-bit. - Al

Re: [Qemu-devel] [RFC PATCH v1 2/2] hw/intc/arm_gicv3_kvm: Implement get/put functions

2016-07-26 Thread Peter Maydell
On 26 July 2016 at 12:01, wrote: > From: Vijaya Kumar K > > This actually implements pre_save and post_load methods for in-kernel > vGICv3. > > Signed-off-by: Pavel Fedin > Signed-off-by: Vijaya Kumar K > [Vijay: - Adjusted macros to handle gicr variables > - Used gicr_typer for affinity > -

Re: [Qemu-devel] [PULL v2 27/30] mptsas: remove unnecessary internal msi state flag

2016-07-26 Thread Amit Shah
On (Tue) 26 Jul 2016 [15:29:36], Cao jin wrote: > Hi Amit > > I will take care of this. > BTW, did't see it in coverity scan outstanding defects, Do I missed or it is > checked by other static check tools? This is checked with the vmstate static checker -- scripts/vmstate-static-checker.py. The

Re: [Qemu-devel] [PATCH] target-mips: add 24KEc CPU definition

2016-07-26 Thread Leon Alrae
On Tue, Jul 26, 2016 at 12:42:45AM +0100, André Draszik wrote: > Define a new CPU definition supporting 24KEc cores, similar to > the existing 24Kc, but with added support for DSP instructions > and MIPS16e (and without FPU). > > Signed-off-by: André Draszik > --- > target-mips/translate_init.c

[Qemu-devel] [PATCH v2 1/1] block: improve error handling in raw_open

2016-07-26 Thread Halil Pasic
Make raw_open for POSIX more consistent in handling errors by setting the error object also when qemu_open fails. The error object was set generally set in case of errors, but I guess this case was overlooked. Do the same for win32. Signed-off-by: Halil Pasic Reviewed-by: Sascha Silbe Tested-by:

Re: [Qemu-devel] [PATCH] tcg: Merge GETPC and GETRA

2016-07-26 Thread Leon Alrae
On Tue, Jul 26, 2016 at 06:12:40AM +0530, Richard Henderson wrote: > 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

Re: [Qemu-devel] [PULL 0/5] ppc-for-2.7 queue 20160726

2016-07-26 Thread Peter Maydell
.git tags/ppc-for-2.7-20160726 > > for you to fetch changes up to 12bf2d33fe520f9cfd09f7bf9d46ae3202c3cb49: > > spapr: disintricate core-id from DT semantics (2016-07-25 15:43:41 +1000) > > > ppc patch queue 2016

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Amit Shah
On (Tue) 26 Jul 2016 [10:00:49], Igor Mammedov wrote: > On Tue, 26 Jul 2016 10:41:38 +0530 > Amit Shah wrote: > > > On (Wed) 20 Jul 2016 [12:08:32], Eduardo Habkost wrote: > > > From: Igor Mammedov > > > > > > instance_id is generated by last_used_id + 1 for a given device type > > > so for QEM

Re: [Qemu-devel] [PATCH v2 2/6] cadence_gem: Add the num-priority-queues property

2016-07-26 Thread Peter Maydell
On 26 July 2016 at 01:12, Alistair Francis wrote: > The Cadence GEM hardware supports N number priority queues, this patch is a > step towards that by adding the property to set the queues. At the moment > behaviour doesn't change as we only use queue 0. > > Signed-off-by: Alistair Francis > ---

Re: [Qemu-devel] [PATCH] mptsas: Fix a migration compatible issue

2016-07-26 Thread Amit Shah
On (Tue) 26 Jul 2016 [17:03:23], Cao jin wrote: > My previous commit 2e2aa316 removed internal flag msi_in_use, which > exists in vmstate, use VMSTATE_UNUSED for migration compatibility. > > Reported-by: Amit Shah > Suggested-by: Amit Shah > Cc: Markus Armbruster > Cc: Marcel Apfelbaum > Cc: P

[Qemu-devel] [PATCH v4 01/15] target-ppc: Introduce Power9 family

2016-07-26 Thread Nikunj A Dadhania
From: "Aneesh Kumar K.V" The patch adds CPU PVR definition for POWER9 and enables QEMU to launch guests/linux-user in TCG mode. Signed-off-by: Aneesh Kumar K.V [ Added POWER9 alias, POWER9 SPAPR core and dropped MMU defines ] Signed-off-by: Nikunj A Dadhania --- hw/ppc/spapr_cpu_core.c |

[Qemu-devel] [PATCH v4 03/15] target-ppc: adding addpcis instruction

2016-07-26 Thread Nikunj A Dadhania
ISA 3.0 instruction for adding immediate value shifted with next instruction address and return the result in the target register. Signed-off-by: Nikunj A Dadhania Reviewed-by: David Gibson --- target-ppc/translate.c | 26 ++ 1 file changed, 26 insertions(+) diff --git

[Qemu-devel] [PATCH v4 06/15] target-ppc: add modulo dword operations

2016-07-26 Thread Nikunj A Dadhania
Adding following instructions for ISA3.0 support modud: Modulo Unsigned Dword modsd: Modulo Signed Dword Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson opcode)],\ +cpu_gpr[rA(ctx->opcode)], cpu_gpr[rB(ctx->opcode)], \ +

[Qemu-devel] [PATCH v4 04/15] target-ppc: add cmprb instruction

2016-07-26 Thread Nikunj A Dadhania
ISA 3.0 Compare Ranged Byte instruction useful for isupper/islower/isaplha kind of operation. Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson --- target-ppc/translate.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/target-ppc/transla

[Qemu-devel] [PATCH v4 02/15] target-ppc: Introduce POWER ISA 3.0 flag

2016-07-26 Thread Nikunj A Dadhania
This flag will be used for POWER9 instructions. Signed-off-by: Nikunj A Dadhania Reviewed-by: David Gibson --- target-ppc/cpu.h| 5 - target-ppc/translate_init.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 5fce

[Qemu-devel] [PATCH v4 08/15] target-ppc: implement branch-less divd[o][.]

2016-07-26 Thread Nikunj A Dadhania
Similar to divw, implement branch-less divd. Signed-off-by: Nikunj A Dadhania --- target-ppc/translate.c | 48 ++-- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 69d9ae0..ba22e13 1

[Qemu-devel] [PATCH v4 10/15] target-ppc: add cnttzw[.] instruction

2016-07-26 Thread Nikunj A Dadhania
Add ISA3.0: Count trailing zeros word instruction. Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 5 + target-ppc/translate.c | 11 +++ 3 files changed, 17 insertions(+) diff --git a/target-ppc/helper.

[Qemu-devel] [PATCH v4 05/15] target-ppc: add modulo word operations

2016-07-26 Thread Nikunj A Dadhania
Adding following instructions: moduw: Modulo Unsigned Word modsw: Modulo Signed Word Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson --- target-ppc/translate.c | 48 1 file changed, 48 insertions(+) diff --git a/target-ppc/trans

[Qemu-devel] [PATCH v4 09/15] target-ppc: add cnttzd[.] instruction

2016-07-26 Thread Nikunj A Dadhania
From: Sandipan Das Add ISA3.0 Count trailing zeros double word Signed-off-by: Sandipan Das [ added ISA300 flag ] Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 5 + target-ppc/translate.c | 10 ++ 3

[Qemu-devel] [PATCH v4 14/15] target-ppc: add maddhd and maddhdu instruction

2016-07-26 Thread Nikunj A Dadhania
maddhd: Multiply-Add High Doubleword maddhdu: Multiply-Add High Doubleword Unsigned Above two instruction are dual form and differ by 1 bit (31st bit) Multiplies two 64-bit registers (RA * RB), adds third register(RC) to the result(quadword) and returns the higher dword in the target register(RT)

[Qemu-devel] [PATCH v4 15/15] target-ppc: introduce opc4 for Expanded Opcode

2016-07-26 Thread Nikunj A Dadhania
ISA 3.0 has introduced EO - Expanded Opcode. Introduce third level indirect opcode table and corresponding parsing routines. EO (11:12) Expanded opcode field Formats: XX1 EO (11:15) Expanded opcode field Formats: VX, X, XX2 Signed-off-by: Nikunj A Dadhania --- target-ppc/translate.c | 82

[Qemu-devel] Making cputlb.c operations safe for MTTCG

2016-07-26 Thread Alex Bennée
Hi, While I've been re-spinning the base patches I've brought forward some of the async work for cputlb done on the ARM enabling set. Thanks to Sergey's consolidation work we have a robust mechanism for halting all vCPUs to get work done if we need to. The cputlb changes are actually independent o

[Qemu-devel] [PATCH v4 11/15] target-ppc: add cmpeqb instruction

2016-07-26 Thread Nikunj A Dadhania
Search a byte in the stream of 8bytes provided in the register Suggested-by: Richard Henderson Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 22 ++ target-ppc/translate.c | 12 3 f

[Qemu-devel] [PATCH v4 07/15] target-ppc: implement branch-less divw[o][.]

2016-07-26 Thread Nikunj A Dadhania
While implementing modulo instructions figured out that the implementation uses many branches. Change the logic to achieve the branch-less code. Undefined value is set to dividend in case of invalid input. Signed-off-by: Nikunj A Dadhania --- target-ppc/translate.c | 48 +++--

[Qemu-devel] [PATCH v4 13/15] target-ppc: add maddld instruction

2016-07-26 Thread Nikunj A Dadhania
maddld: Multiply-Add Low Doubleword Multiplies two 64-bit registers (RA * RB), adds third register(RC) to the result(quadword) and returns the lower dword in the target register(RT). Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson --- target-ppc/translate.c | 14 ++

[Qemu-devel] [PATCH v4 12/15] target-ppc: add setb instruction

2016-07-26 Thread Nikunj A Dadhania
From: Vivek Andrew Sha The CR number is provided in the opcode as - BFA (11:13) Returns: -1 if bit 0 of CR field is set 1 if bit 1 of CR field is set 0 otherwise. Signed-off-by: Vivek Andrew Sha [ reworded commit, used 32bit ops as crf is 32bits ] Signed-off-by: Nikunj A Dadhania Revi

Re: [Qemu-devel] [PATCH v2 4/6] cadence_gem: Add queue support

2016-07-26 Thread Peter Maydell
On 26 July 2016 at 01:12, Alistair Francis wrote: > Signed-off-by: Alistair Francis > --- > > There is a indentation error in this patch in the gem_transmit function. > I have written it like that to make it easier to see the changes. It is > fixed in the next patch. > > V2: > - Use the new scre

Re: [Qemu-devel] [PATCH v2 3/6] cadence_gem: Add support for screening

2016-07-26 Thread Peter Maydell
On 26 July 2016 at 01:12, Alistair Francis wrote: > The Cadence GEM hardware allows incoming data to be 'screened' based on some > register values. Add support for these screens. > > Signed-off-by: Alistair Francis > --- > V2: > - Initial commit > > hw/net/cadence_gem.c | 151 > +++

[Qemu-devel] [PATCH] ppc: Fix fault PC reporting for lve*/stve* VMX instructions

2016-07-26 Thread Benjamin Herrenschmidt
We forgot to do gen_update_nip() for these like we do with other helpers. Fix this, but in a more efficient way by passing the RA to the accessors instead so the overhead is only taken on faults. Signed-off-by: Benjamin Herrenschmidt --- target-ppc/mem_helper.c | 21 +++-- 1 file

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Amit Shah
On (Tue) 26 Jul 2016 [11:41:33], Igor Mammedov wrote: > On Tue, 26 Jul 2016 10:41:38 +0530 > Amit Shah wrote: > > > On (Wed) 20 Jul 2016 [12:08:32], Eduardo Habkost wrote: > > > From: Igor Mammedov > > > > > > instance_id is generated by last_used_id + 1 for a given device type > > > so for QEM

Re: [Qemu-devel] [PATCH] tcg: Merge GETPC and GETRA

2016-07-26 Thread Benjamin Herrenschmidt
On Tue, 2016-07-26 at 06:12 +0530, Richard Henderson wrote: > 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 NU

Re: [Qemu-devel] [PATCH] vl: remove unnecessary duplicate call to tpm_cleanup

2016-07-26 Thread Michael Tokarev
16.06.2016 15:25, Paolo Bonzini wrote: > tpm_cleanup is called from main() and also registered with atexit from > tpm_init. The function only visits the tpm_backends linked list, and the > atexit registration happens right after tpm_init fills in the list from > -tpmdev options. Therefore, the di

Re: [Qemu-devel] [PATCH] pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP

2016-07-26 Thread Michael Tokarev
Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH] sparc: Use g_memdup() instead of g_new0() + memcpy()

2016-07-26 Thread Michael Tokarev
16.06.2016 20:33, Thomas Huth wrote: > There is no need to make sure that the memory is zeroed after the > allocation if we also immediatly fill the whole buffer afterwards > with memcpy(). Thus g_new0 should be g_new instead. But since we > are also doing a memcpy() here, we can also simply replac

Re: [Qemu-devel] [PATCH] trace-event: display "%d" instead of "0x%d"

2016-07-26 Thread Michael Tokarev
22.06.2016 18:34, Laurent Vivier wrote: > Display the slot number of mhp_pc_dimm_assigned_slot() > using "%d" without the "0x". Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH] linux-user, trivial: display "0x%x" instead of "0x%d"

2016-07-26 Thread Michael Tokarev
20.06.2016 12:51, Laurent Vivier wrote: > Display an exception number, generally defined as an hexadecimal > number (for instance, EXCP_HLT is 0x10001). Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH] Document that curses usually needs -k option too

2016-07-26 Thread Michael Tokarev
Applied to -trivial, thank you! /mjt

Re: [Qemu-devel] Confusing I/O throttling behavior with burst_length > 1 and max < avg

2016-07-26 Thread Alberto Garcia
On Thu, Jul 14, 2016 at 01:18:19PM +0100, Stefan Hajnoczi wrote: > The following throttling behavior was observed with bps=512000 > bps_max=51200 throttling.bps-total-max-length=2: > > READ: io=512KB, aggrb=50KB/s, minb=50KB/s, maxb=50KB/s, mint=10061msec, > maxt=10061msec > > If bps-total-ma

Re: [Qemu-devel] [PATCH for-2.6 0/2] Fix regression with the default naming of throttling groups

2016-07-26 Thread Alberto Garcia
On Fri, Jul 08, 2016 at 05:05:12PM +0300, Alberto Garcia wrote: > Hi, > > Stefan reported this, this is a regression caused by commit > efaa7c4eeb7490c6f37f3. > > I sent a separate series for the git master, this is the backport > for QEMU v2.6.0. ping Berto

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Laurent Vivier
On 26/07/2016 12:02, Thomas Huth wrote: > On 26.07.2016 11:53, Laurent Vivier wrote: >> >> >> On 26/07/2016 11:39, Laurent Vivier wrote: >>> >>> >>> On 26/07/2016 11:28, Thomas Huth wrote: On 26.07.2016 11:23, Laurent Vivier wrote: > > > On 23/07/2016 08:30, David Gibson wrote: >

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Igor Mammedov
On Tue, 26 Jul 2016 17:17:47 +0530 Amit Shah wrote: > On (Tue) 26 Jul 2016 [10:00:49], Igor Mammedov wrote: > > On Tue, 26 Jul 2016 10:41:38 +0530 > > Amit Shah wrote: > > > > > On (Wed) 20 Jul 2016 [12:08:32], Eduardo Habkost wrote: > > > > From: Igor Mammedov > > > > > > > > instance_id

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread Laurent Vivier
On 26/07/2016 14:53, Laurent Vivier wrote: > > > On 26/07/2016 12:02, Thomas Huth wrote: >> On 26.07.2016 11:53, Laurent Vivier wrote: >>> >>> >>> On 26/07/2016 11:39, Laurent Vivier wrote: On 26/07/2016 11:28, Thomas Huth wrote: > On 26.07.2016 11:23, Laurent Vivier wrote: >

Re: [Qemu-devel] [PATCH] qemu-img: fix error messages emitted by img_open()

2016-07-26 Thread Stefan Hajnoczi
On Mon, Jul 25, 2016 at 05:58:54PM +0200, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Thu, Jul 21, 2016 at 10:41:53AM +0200, Reda Sallahi wrote: > >> img_open_file() and img_open_opts() were printing error messages with a > >> duplicate part because of a wrong use of error_reportf

Re: [Qemu-devel] [PULL v2 27/30] mptsas: remove unnecessary internal msi state flag

2016-07-26 Thread Michael S. Tsirkin
On Tue, Jul 26, 2016 at 04:48:06PM +0530, Amit Shah wrote: > On (Tue) 26 Jul 2016 [15:29:36], Cao jin wrote: > > Hi Amit > > > > I will take care of this. > > BTW, did't see it in coverity scan outstanding defects, Do I missed or it is > > checked by other static check tools? > > This is checked

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Amit Shah
On (Tue) 26 Jul 2016 [14:58:39], Igor Mammedov wrote: > > This was flagged by a nightly run of the static checker when this > > series was pulled. On a 'before' tree, ie one w/o the patches, do > > this: > > > > qemu -dump-vmstate before.json > > > > and for after: > > > > qemu -dump-vmstate af

[Qemu-devel] [PATCH] iotest: fix python based IO tests

2016-07-26 Thread Daniel P. Berrange
The previous commit refactoring iotests.py: commit 66613974468fb6e1609fb3eabf55981b1ee436cf Author: Daniel P. Berrange Date: Wed Jul 20 14:23:10 2016 +0100 scripts: refactor the VM class in iotests for reuse was not properly tested and included a number of broken bits. - The 'even

Re: [Qemu-devel] [PATCH 4/4] block: Cater to iscsi with non-power-of-2 discard

2016-07-26 Thread Stefan Hajnoczi
On Thu, Jul 21, 2016 at 01:34:48PM -0600, Eric Blake wrote: > Dell Equallogic iSCSI SANs have a very unusual advertised geometry: > > $ iscsi-inq -e 1 -c $((0xb0)) iscsi://XXX/0 > wsnz:0 > maximum compare and write length:1 > optimal transfer length granularity:0 > maximum transfer length:0 > opti

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Igor Mammedov
On Tue, 26 Jul 2016 18:41:22 +0530 Amit Shah wrote: > On (Tue) 26 Jul 2016 [14:58:39], Igor Mammedov wrote: > > > This was flagged by a nightly run of the static checker when this > > > series was pulled. On a 'before' tree, ie one w/o the patches, do > > > this: > > > > > > qemu -dump-vmstate

[Qemu-devel] [PATCH] i2c: fix migration regression introduced by broadcast support

2016-07-26 Thread Igor Mammedov
QEMU fails migration with following error: qemu-system-x86_64: Missing section footer for i2c_bus qemu-system-x86_64: load of migration failed: Invalid argument when migrating from: qemu-system-x86_64-v2.6.0 -m 256M rhel72.img -M pc-i440fx-2.6 to qemu-system-x86_64-v2.7.0-rc0 -m 256M rhel72.i

Re: [Qemu-devel] [PATCH v2] test: port postcopy test to ppc64

2016-07-26 Thread David Gibson
On Tue, Jul 26, 2016 at 11:58:17AM +0200, Laurent Vivier wrote: > > > On 26/07/2016 11:54, Dr. David Alan Gilbert wrote: > > * Laurent Vivier (lviv...@redhat.com) wrote: > >> > >> > >> On 26/07/2016 11:39, Laurent Vivier wrote: > >>> > >>> > >>> On 26/07/2016 11:28, Thomas Huth wrote: > On 2

Re: [Qemu-devel] [PATCH] i2c: fix migration regression introduced by broadcast support

2016-07-26 Thread Michael S. Tsirkin
On Tue, Jul 26, 2016 at 03:55:30PM +0200, Igor Mammedov wrote: > QEMU fails migration with following error: > > qemu-system-x86_64: Missing section footer for i2c_bus > qemu-system-x86_64: load of migration failed: Invalid argument > > when migrating from: > qemu-system-x86_64-v2.6.0 -m 256M rh

[Qemu-devel] [PATCH] cputlb: make tlb_reset_dirty safe for MTTCG

2016-07-26 Thread Alex Bennée
The main use case for tlb_reset_dirty is to set the TLB_NOTDIRTY flags in TLB entries to force the slow-path on writes. This is used to mark page ranges containing code which has been translated so it can be invalidated if written to. To do this safely we need to ensure the TLB entries in question

Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id

2016-07-26 Thread Igor Mammedov
On Tue, 26 Jul 2016 18:41:22 +0530 Amit Shah wrote: > On (Tue) 26 Jul 2016 [14:58:39], Igor Mammedov wrote: > > > This was flagged by a nightly run of the static checker when this > > > series was pulled. On a 'before' tree, ie one w/o the patches, do > > > this: > > > > > > qemu -dump-vmstate

[Qemu-devel] [PATCH v5 0/8] Update the Netduino 2 Machine

2016-07-26 Thread Alistair Francis
This patchset continues with the Netduino 2 and STM32F205 SoC work. This patch series makes a small change to the STM32F2xx SoC to tidy up the code. Next a feature is added to the STM32F2xx timer to display the PWM duty cycle, when debugging is enabled. Then the STM32F2xx SPI and ADC devices are

[Qemu-devel] [PATCH v5 1/8] STM32F205: Remove the individual device variables

2016-07-26 Thread Alistair Francis
Cleanup the individual DeviceState and SysBusDevice variables to re-use the same variable for each device. Signed-off-by: Alistair Francis Reviewed-by: Peter Crosthwaite --- hw/arm/stm32f205_soc.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff

[Qemu-devel] [PATCH v5 3/8] STM32F2xx: Add the ADC device

2016-07-26 Thread Alistair Francis
Add the STM32F2xx ADC device. This device randomly generates values on each read. This also includes creating a hw/adc directory. Signed-off-by: Alistair Francis Reviewed-by: Peter Maydell --- V4: - Remove the rand() function - Add VMState - Small cleanups V2: - Address Peter C's comments

[Qemu-devel] [PATCH v5 8/8] MAINTAINERS: Add Alistair to the maintainers list

2016-07-26 Thread Alistair Francis
Add Alistair Francis as the maintainer for the Netduino 2 and SMM32F205 SoC. Signed-off-by: Alistair Francis Reviewed-by: Peter Crosthwaite --- MAINTAINERS | 15 +++ 1 file changed, 15 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d1439a8..e55be55 100644 --- a/MAINTAI

  1   2   3   4   >