[Qemu-devel] [PATCH v3 2/4] target-ppc: add vrldnmi and vrlwmi instructions

2016-10-29 Thread Nikunj A Dadhania
From: "Gautham R. Shenoy" vrldmi: Vector Rotate Left Dword then Mask Insert vrlwmi: Vector Rotate Left Word then Mask Insert Signed-off-by: Gautham R. Shenoy Signed-off-by: Bharata B Rao ( use extract[32,64] and

[Qemu-devel] [PATCH v3 4/4] target-ppc: add vprtyb[w/d/q] instructions

2016-10-29 Thread Nikunj A Dadhania
From: Ankit Kumar Add following POWER ISA 3.0 instructions. vprtybw: Vector Parity Byte Word vprtybd: Vector Parity Byte Double Word vprtybq: Vector Parity Byte Quad Word Signed-off-by: Ankit Kumar Signed-off-by: Nikunj A Dadhania

[Qemu-devel] [PATCH v3 0/4] POWER9 TCG enablements - part7

2016-10-29 Thread Nikunj A Dadhania
This series contains 7 new instructions for POWER9 ISA3.0 Vector Rotate Left Dword Vector Rotate Left Word Vector Parity Byte Changelog: v2: * added internal.h with MASK definition (David/Richard) * simplified vparity without recursion (Richard) v1: * Simplify extract routines

[Qemu-devel] [PATCH v3 1/4] bitops: fix rol/ror when shift is zero

2016-10-29 Thread Nikunj A Dadhania
All the variants for rol/ror have a bug in case where the shift == 0. For example rol32, would generate: return (word << 0) | (word >> 32); Which though works, would be flagged as a runtime error on clang's sanitizer. Suggested-by: Richard Henderson Signed-off-by: Nikunj

[Qemu-devel] [PATCH v3 3/4] target-ppc: add vrldnm and vrlwnm instructions

2016-10-29 Thread Nikunj A Dadhania
From: Bharata B Rao vrldnm: Vector Rotate Left Doubleword then AND with Mask vrlwnm: Vector Rotate Left Word then AND with Mask Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Reviewed-by: David

Re: [Qemu-devel] [PATCH v2 2/6] bitops: fix rol/ror when shift is zero

2016-10-29 Thread Nikunj A Dadhania
David Gibson writes: > [ Unknown signature status ] > On Wed, Oct 26, 2016 at 08:20:10AM -0700, Richard Henderson wrote: >> On 10/25/2016 11:26 PM, Nikunj A Dadhania wrote: >> > All the variants for rol/ror have a bug in case where the shift == 0. >> > For example

[Qemu-devel] helper_compute_fprf() purpose

2016-10-29 Thread Programmingkid
What is the purpose for the helper_compute_fprf() function in target-ppc/fpu_helper.c?

[Qemu-devel] [RFC 2/2] ARM: KVM: Enable in-kernel timers with user space gic

2016-10-29 Thread Alexander Graf
When running with KVM enabled, you can choose between emulating the gic in kernel or user space. If the kernel supports in-kernel virtualization of the interrupt controller, it will default to that. If not, if will default to user space emulation. Unfortunately when running in user mode gic

[Qemu-devel] [RFC 1/2] linux-headers: update

2016-10-29 Thread Alexander Graf
This patch updates the Linux headers to include the in-progress user space ARM timer patches. It is explicitly RFC, as the patches are not merged yet. --- linux-headers/asm-arm/kvm.h | 1 + linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 6 ++ 3 files changed, 8

Re: [Qemu-devel] [PATCH v10 01/19] vfio: Mediated device Core driver

2016-10-29 Thread Jike Song
On 10/29/2016 06:06 PM, Kirti Wankhede wrote: > > > On 10/29/2016 10:00 AM, Jike Song wrote: >> On 10/27/2016 05:29 AM, Kirti Wankhede wrote: >>> +int mdev_register_device(struct device *dev, const struct parent_ops *ops) >>> +{ >>> + int ret; >>> + struct parent_device *parent; >>> + >>> +

[Qemu-devel] [PATCH v2] 9pfs: limit xattr size in xattrcreate

2016-10-29 Thread Greg Kurz
We shouldn't allow guests to create extended attribute with arbitrary sizes. On linux hosts, the limit is XATTR_SIZE_MAX. Let's use it. Also, since the 9P protocol uses signed integers, we take care of not converting a negative value into an insanely great size. Signed-off-by: Greg Kurz

Re: [Qemu-devel] [PATCH v10 10/19] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-10-29 Thread Alex Williamson
On Sat, 29 Oct 2016 16:07:05 +0530 Kirti Wankhede wrote: > On 10/29/2016 2:03 AM, Alex Williamson wrote: > > On Sat, 29 Oct 2016 01:32:35 +0530 > > Kirti Wankhede wrote: > > > >> On 10/28/2016 6:10 PM, Alex Williamson wrote: > >>> On Fri, 28 Oct

Re: [Qemu-devel] [PATCH v3 5/8] qdev: Register static properties as class properties

2016-10-29 Thread Igor Mammedov
On Thu, 27 Oct 2016 14:37:28 -0200 Eduardo Habkost wrote: > On Thu, Oct 27, 2016 at 05:30:30PM +0200, Igor Mammedov wrote: > [...] > > > > "make V=1 check" fails for me with this patch applied: > > > > > > > > QTEST_QEMU_BINARY=aarch64-softmmu/qemu-system-aarch64 > > > >

Re: [Qemu-devel] [PATCH v1 1/1] block/gluster: fix port type in the QAPI options list

2016-10-29 Thread Jeff Cody
On Tue, Aug 09, 2016 at 03:18:14PM +0530, Prasanna Kumar Kalever wrote: > After introduction of qapi schema in gluster block driver code, the port > type is now string as per InetSocketAddress > > { 'struct': 'InetSocketAddress', > 'data': { > 'host': 'str', > 'port': 'str', >

Re: [Qemu-devel] [PATCH v2 1/1] block/gluster: improve defense over string to int conversion

2016-10-29 Thread Jeff Cody
On Wed, Aug 10, 2016 at 09:13:48AM +0200, Markus Armbruster wrote: > Jeff Cody writes: > > > On Tue, Aug 09, 2016 at 02:20:09PM +0530, Prasanna Kumar Kalever wrote: > >> using atoi() for converting string to int may be error prone in case if > >> string supplied in the argument

Re: [Qemu-devel] [PATCH v10 10/19] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-10-29 Thread Kirti Wankhede
On 10/29/2016 2:03 AM, Alex Williamson wrote: > On Sat, 29 Oct 2016 01:32:35 +0530 > Kirti Wankhede wrote: > >> On 10/28/2016 6:10 PM, Alex Williamson wrote: >>> On Fri, 28 Oct 2016 15:33:58 +0800 >>> Jike Song wrote: >>> ... > > +/*

Re: [Qemu-devel] [PATCH v10 01/19] vfio: Mediated device Core driver

2016-10-29 Thread Kirti Wankhede
On 10/29/2016 10:00 AM, Jike Song wrote: > On 10/27/2016 05:29 AM, Kirti Wankhede wrote: >> +int mdev_register_device(struct device *dev, const struct parent_ops *ops) >> +{ >> +int ret; >> +struct parent_device *parent; >> + >> +/* check for mandatory ops */ >> +if (!ops ||

Re: [Qemu-devel] [PATCH 1/2] target-m68k: add 64bit mull

2016-10-29 Thread Laurent Vivier
Le 29/10/2016 à 01:25, Richard Henderson a écrit : > On 10/28/2016 03:39 PM, Laurent Vivier wrote: >> +tcg_gen_movi_i32(QREG_CC_V, 0); >> +tcg_gen_mov_i32(QREG_CC_C, QREG_CC_V); > > movi CC, 0 Just to know, could you explain why it is better? > Otherwise, > > Reviewed-by:

[Qemu-devel] [PATCH] vl.c: move pidfile creation up

2016-10-29 Thread Michael Tokarev
With current code, pid file is open after various sockets, chardevs, fsdevs and the like. This causes interesting effects, for example when monitor is a unix-socket, and another qemu instance is already running, new qemu first "damages" the socket and next complain that it can't acquire the pid

[Qemu-devel] [PATCH v4] This patch adds support for a new block device type called "vxhs".

2016-10-29 Thread Ashish Mittal
Source code for the qnio library that this code loads can be downloaded from: https://github.com/MittalAshish/libqnio.git Sample command line using the JSON syntax: ./qemu-system-x86_64 -name instance-0008 -S -vnc 0.0.0.0:0 -k en-us -vga cirrus -device