Re: [Qemu-devel] [PATCH 2.1 11/28] qmp: improve error reporting for -object and object-add

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 04:07, Hu Tao ha scritto: There is already an accepted version de580dafade551. Paolo, I found that your numa tree is behind current master about 99 commits. I'd like to take over this series if you have no time on it. Sure, I rebased it and pushed it again (not tested the rebase

Re: [Qemu-devel] [PATCH] mempath: add option to specify minimum huge page size

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 01:40, Marcelo Tosatti ha scritto: Failing initialization in case hugepage path has hugepage smaller than specified. Signed-off-by: Marcelo Tosatti Why is this needed? Isn't it just operator error? Perhaps libvirt could add an attribute to its XML element, and could use it

Re: [Qemu-devel] [PATCH v15 05/14] block: Add bdrv_set_backing_hd()

2014-03-06 Thread Fam Zheng
On Wed, 02/26 17:35, Jeff Cody wrote: > On Sun, Feb 23, 2014 at 09:54:46AM +0800, Fam Zheng wrote: > > This is the common but non-trivial steps to assign or change the > > backing_hd of BDS. > > > > Signed-off-by: Fam Zheng > > --- > > block.c | 46 +

Re: [Qemu-devel] [PATCH v15 03/14] block: Replace in_use with operation blocker

2014-03-06 Thread Fam Zheng
On Thu, 02/27 13:12, Markus Armbruster wrote: > Fam Zheng writes: > > > This drops BlockDriverState.in_use with op_blockers: > > > > - Call bdrv_op_block_all in place of bdrv_set_in_use(bs, 1). > > - Call bdrv_op_unblock_all in place of bdrv_set_in_use(bs, 0). > > - Check bdrv_op_is_blocked

Re: [Qemu-devel] [PATCH 2.1 16/28] memory: reorganize file-based allocation

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 07:09, Hu Tao ha scritto: On Tue, Mar 04, 2014 at 03:00:44PM +0100, Paolo Bonzini wrote: Split the internal interface in exec.c to a separate function, and push the check on mem_path up to memory_region_init_ram. Signed-off-by: Paolo Bonzini --- exec.c | 105 +++

Re: [Qemu-devel] [PATCH 2.1 15/28] numa: add -numa node, memdev= option

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 06:33, Hu Tao ha scritto: On Tue, Mar 04, 2014 at 03:00:43PM +0100, Paolo Bonzini wrote: This option provides the infrastructure for binding guest NUMA nodes to host NUMA nodes. For example: -object memory-ram,size=1024M,policy=membind,host-nodes=0,id=ram-node0 \ -numa node,nod

Re: [Qemu-devel] [PATCH] virtio-scsi: actually honor sense_size from configuration space

2014-03-06 Thread Fam Zheng
On Thu, 03/06 11:27, Paolo Bonzini wrote: > We were always truncating the sense size to 96 bytes. > > Signed-off-by: Paolo Bonzini > --- > hw/scsi/virtio-scsi.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c > index 6610

Re: [Qemu-devel] [PATCH 2.1 09/28] vl: redo -object parsing

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 03:56, Hu Tao ha scritto: -obj = object_new(type); -if (qemu_opt_foreach(opts, object_set_property, obj, 1) < 0) { -object_unref(obj); -return -1; +qdict_del(pdict, "qom-type"); +visit_type_str(opts_get_visitor(ov), &type, "qom-type", &err); +if (

Re: [Qemu-devel] pcie

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 04:31, Serge Hallyn ha scritto: Hi, At https://bugs.launchpad.net/bugs/1284793 it was found that commit a66e657e: "pci/pcie: convert PCIE hotplug to use hotplug-handler API" seems to break vga passthrough. Reverting that commit (plus one more to reintroduce a needed definition) fi

Re: [Qemu-devel] [PATCH] build: Fix installation of target-dependent files

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 02:19, Lluís Vilanova ha scritto: Lluís Vilanova writes: Lluís Vilanova writes: Pass all the relevant sub-directory make variables. Ping. Ping^2 Thanks, Lluis Signed-off-by: Lluís Vilanova --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [Qemu-devel] [PULL 007/130] KVM: Split QEMUMachine typedef into separate header

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 00:32, Alexander Graf ha scritto: Older gcc versions (such as the one in SLES11) get confused when you declare a typedef on the same struct twice. To work around that limitation, let's extract the QEMUMachine typedef into a separate header file that is guarded by preprocessor dupli

Re: [Qemu-devel] [PATCH 2.1 22/28] hostmem: separate allocation from UserCreatable complete method

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:50PM +0100, Paolo Bonzini wrote: > This allows the superclass to set various policies on the memory > region that the subclass creates. > > Suggested-by: Igor Mammedov > Signed-off-by: Paolo Bonzini > --- > backends/hostmem-file.c | 9 - > backends/hostme

[Qemu-devel] [PATCH V3] virtio-net: calculate proper msix vectors on init

2014-03-06 Thread Jason Wang
Currently, the default msix vectors for virtio-net-pci is 3 which is obvious not suitable for multiqueue guest, so we depends on the user or management tools to pass a correct vectors parameter. In fact, we can simplifying this by calculate the number of vectors on init. Consider we have N queues,

Re: [Qemu-devel] [PATCH 2.1 21/28] hostmem: add file-based HostMemoryBackend

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:49PM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > backends/Makefile.objs | 1 + > backends/hostmem-file.c | 108 > > 2 files changed, 109 insertions(+) > create mode 100644 backends/hostmem-f

Re: [Qemu-devel] [PATCH 2.1 16/28] memory: reorganize file-based allocation

2014-03-06 Thread Hu Tao
On Fri, Mar 07, 2014 at 02:09:25PM +0800, Hu Tao wrote: > On Tue, Mar 04, 2014 at 03:00:44PM +0100, Paolo Bonzini wrote: > > Split the internal interface in exec.c to a separate function, and > > push the check on mem_path up to memory_region_init_ram. > > > > Signed-off-by: Paolo Bonzini > > ---

Re: [Qemu-devel] [PATCH v4 2/2] query-command-line-options: query all the options in qemu-options.hx

2014-03-06 Thread Amos Kong
On Thu, Mar 06, 2014 at 02:23:15PM -0700, Eric Blake wrote: > On 03/05/2014 07:36 PM, Amos Kong wrote: > > vm_config_groups[] only contains part of the options which have > > argument, and all options which have no argument aren't added > > to vm_config_groups[]. Current query-command-line-options

Re: [Qemu-devel] [PATCH 2.1 16/28] memory: reorganize file-based allocation

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:44PM +0100, Paolo Bonzini wrote: > Split the internal interface in exec.c to a separate function, and > push the check on mem_path up to memory_region_init_ram. > > Signed-off-by: Paolo Bonzini > --- > exec.c | 105 > +--

[Qemu-devel] [PATCH v5 2/2] query-command-line-options: query all the options in qemu-options.hx

2014-03-06 Thread Amos Kong
vm_config_groups[] only contains part of the options which have parameters, and all options which have no parameter aren't added to vm_config_groups[]. Current query-command-line-options only checks options from vm_config_groups[], so some options will be lost. We have macro in qemu-options.hx to

[Qemu-devel] [PATCH v5 1/2] qmp: rename query_option_descs() to get_param_infolist()

2014-03-06 Thread Amos Kong
Signed-off-by: Amos Kong Reviewed-by: Eric Blake --- util/qemu-config.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/qemu-config.c b/util/qemu-config.c index f610101..d2facfd 100644 --- a/util/qemu-config.c +++ b/util/qemu-config.c @@ -39,7 +39,7 @@ QemuOptsLi

[Qemu-devel] [PATCH v5 0/2] fix query-command-line-options

2014-03-06 Thread Amos Kong
This patchset fixed some issues of query-command-line-options: * some new options that haven't argument can't be queried. (eg: -enable-fips) * some legacy options that have argument can't be queried. (eg: -vnc display) More discussion: http://marc.info/?l=qemu-devel&m=139081830416684&w=2 V2: r

Re: [Qemu-devel] [PATCH 2.1 15/28] numa: add -numa node, memdev= option

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:43PM +0100, Paolo Bonzini wrote: > This option provides the infrastructure for binding guest NUMA nodes > to host NUMA nodes. For example: > > -object memory-ram,size=1024M,policy=membind,host-nodes=0,id=ram-node0 \ > -numa node,nodeid=0,cpus=0,memdev=ram-node0 \ >

Re: [Qemu-devel] [PATCH v3 3/3] hw/boards: converted current_machine to be an instance of MachineCLass

2014-03-06 Thread Marcel Apfelbaum
On Fri, 2014-03-07 at 12:16 +1100, Alexey Kardashevskiy wrote: > On 03/07/2014 10:44 AM, Andreas Färber wrote: > > Am 05.03.2014 18:30, schrieb Marcel Apfelbaum: > >> In order to allow attaching machine options to a machine instance, > >> current_machine is converted into MachineState. > >> As a fi

Re: [Qemu-devel] [PATCH v3 3/3] hw/boards: converted current_machine to be an instance of MachineCLass

2014-03-06 Thread Marcel Apfelbaum
On Fri, 2014-03-07 at 00:44 +0100, Andreas Färber wrote: > Am 05.03.2014 18:30, schrieb Marcel Apfelbaum: > > In order to allow attaching machine options to a machine instance, > > current_machine is converted into MachineState. > > As a first step of deprecating QEMUMachine, some of the functions

Re: [Qemu-devel] [PATCH target-arm v9 1/1] target-arm: Implements the ARM PMCCNTR register

2014-03-06 Thread Alistair Francis
Ping On Fri, Feb 28, 2014 at 9:15 AM, Alistair Francis wrote: > This patch implements the ARM PMCCNTR register including > the disable and reset components of the PMCR register. > > Signed-off-by: Alistair Francis > --- > V9: Completely #ifndef out the PMCR and PMCCNTR registers. Also use > CONF

[Qemu-devel] [PATCH v4 2/3] spapr-hcall: fix little-endian resource handling in H_SET_MODE

2014-03-06 Thread Alexey Kardashevskiy
This changes resource code definitions to ones used in the host kernel. This fixes H_SET_MODE_RESOURCE_LE (switch between big endian and little endian) to sync registers from KVM before changing LPCR value. This adds a set_spr() helper to update an SPR in a CPU's context to avoid possible races a

[Qemu-devel] [PATCH v4 0/3] spapr: fix H_SET_MODE

2014-03-06 Thread Alexey Kardashevskiy
This fixes H_SET_MODE. Changes: v4: * rebased on top of current ppc-next. * changed PPC2_ISA207S flag value Alexey Kardashevskiy (3): target-ppc: introduce powerisa-207-server flag spapr-hcall: fix little-endian resource handling in H_SET_MODE spapr-hcall: add address-translation-mode-on-in

[Qemu-devel] [PATCH v4 3/3] spapr-hcall: add address-translation-mode-on-interrupt resource in H_SET_MODE

2014-03-06 Thread Alexey Kardashevskiy
This adds handling of the RESOURCE_ADDR_TRANS_MODE resource from the H_SET_MODE, for POWER8 (PowerISA 2.07) only. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_hcall.c | 26 ++ target-ppc/cpu.h | 2 ++ 2 files changed, 28 insertions(+) diff --git a/hw/ppc/spa

[Qemu-devel] [PATCH v4 1/3] target-ppc: introduce powerisa-207-server flag

2014-03-06 Thread Alexey Kardashevskiy
This flag will be used to decide whether to emulate some bits of H_SET_MODE hypercall because some are POWER8-only. While we are here, add 2.05 flag to POWER8 family too. POWER7/7+ already have it. Signed-off-by: Alexey Kardashevskiy --- target-ppc/cpu.h| 2 ++ target-ppc/translate_

Re: [Qemu-devel] [PATCH] mempath: add option to specify minimum huge page size

2014-03-06 Thread Eric Blake
On 03/06/2014 05:40 PM, Marcelo Tosatti wrote: > > Failing initialization in case hugepage path has > hugepage smaller than specified. > > Signed-off-by: Marcelo Tosatti > > diff --git a/exec.c b/exec.c > index b69fd29..c95a0f3 100644 > --- a/exec.c > +++ b/exec.c > }; > > +static QemuOpts

Re: [Qemu-devel] [PATCH v4 00/21] AArch64 system emulation (boots a kernel!)

2014-03-06 Thread Xuebing Wang
On 03/07/2014 03:32 AM, Peter Maydell wrote: This is v4 of the AArch64 system emulation patches, and it's an important milestone -- this is enough to boot a Linux kernel. Does this boot an aarch64 kernel with tcg on x86 host? -- Thanks, Xuebing Wang

Re: [Qemu-devel] [PATCH v3 0/3] spapr: fix H_SET_MODE

2014-03-06 Thread Alexey Kardashevskiy
On 02/14/2014 08:30 PM, Alexey Kardashevskiy wrote: > On 02/11/2014 11:16 PM, Alexey Kardashevskiy wrote: >> On 02/11/2014 11:12 PM, Alexander Graf wrote: >>> On 02/11/2014 08:44 AM, Alexey Kardashevskiy wrote: On 01/22/2014 04:43 PM, Alexey Kardashevskiy wrote: > This fixes H_SET_MODE. >>

Re: [Qemu-devel] [PATCH 2.1 14/28] add memdev backend infrastructure

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:42PM +0100, Paolo Bonzini wrote: > From: Igor Mammedov > > Provides framework for splitting host RAM allocation/ > policies into a separate backend that could be used > by devices. > > Initially only legacy RAM backend is provided, which > uses memory_region_init_ra

[Qemu-devel] pcie

2014-03-06 Thread Serge Hallyn
Hi, At https://bugs.launchpad.net/bugs/1284793 it was found that commit a66e657e: "pci/pcie: convert PCIE hotplug to use hotplug-handler API" seems to break vga passthrough. Reverting that commit (plus one more to reintroduce a needed definition) fixed it. Do you have any idea what would have br

Re: [Qemu-devel] [PATCH 2.1 13/28] numa: introduce memory_region_allocate_system_memory

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:41PM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > hw/i386/pc.c| 4 +--- > include/hw/boards.h | 4 > include/sysemu/sysemu.h | 1 + > numa.c | 11 +++ > 4 files changed, 17 insertions(+), 3 deleti

Re: [Qemu-devel] [PATCH 2.1 12/28] pc: pass QEMUMachineInitArgs to pc_memory_init

2014-03-06 Thread Hu Tao
Reviewed-by: Hu Tao On Tue, Mar 04, 2014 at 03:00:40PM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > hw/i386/pc.c | 11 +-- > hw/i386/pc_piix.c| 8 +++- > hw/i386/pc_q35.c | 4 +--- > include/hw/i386/pc.h | 7 +++ > 4 files changed, 12 ins

Re: [Qemu-devel] [PATCH 2.1 11/28] qmp: improve error reporting for -object and object-add

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:39PM +0100, Paolo Bonzini wrote: > Use QERR_INVALID_PARAMETER_VALUE for consistency, and avoid an assertion > failure if the class name is incorrect. > > Signed-off-by: Paolo Bonzini > --- > qmp.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > d

Re: [Qemu-devel] [PATCH 2.1 09/28] vl: redo -object parsing

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:37PM +0100, Paolo Bonzini wrote: > Follow the lines of the HMP implementation, using OptsVisitor > to parse the options. This gives access to OptsVisitor's > rich parsing of integer lists. > > Signed-off-by: Paolo Bonzini > --- > vl.c | 87 > ++

[Qemu-devel] [PULL 002/130] target-ppc: fix LPCR SPR number

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy PowerISA defines LPCR SPR number as 318=0x13E but QEMU uses the value of 316. This fixes the definition of LPCR SPR. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Alexander Graf --- target-ppc/cpu.h| 2 +- target-ppc/translate_init.c | 2 +- 2 file

[Qemu-devel] [PULL 060/130] target-ppc: Add ISA 2.06 stbcx. and sthcx. Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the byte and halfword variants of the Store Conditional instructions. A common macro is introduced and the existing implementations of stwcx. and stdcx. are refactored to use this macro. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Al

[Qemu-devel] [PULL 031/130] target-ppc: Add VSX Floating Point to Floating Point Conversion Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the VSX instructions that convert between floating point formats: xscvdpsp, xscvspdp, xvcvdpsp, xvcvspdp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 46 +++

[Qemu-devel] [PULL 037/130] target-ppc: VSX Stage 4: Refactor stxsdx

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch refactors the stxsdx instruction. Reusable code is extracted into a macro which will be used in subsequent patches in this series. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/translate.c | 27 +++

Re: [Qemu-devel] [PATCH v3 3/3] hw/boards: converted current_machine to be an instance of MachineCLass

2014-03-06 Thread Andreas Färber
Am 05.03.2014 18:30, schrieb Marcel Apfelbaum: > In order to allow attaching machine options to a machine instance, > current_machine is converted into MachineState. > As a first step of deprecating QEMUMachine, some of the functions > were modified to return MachineCLass. > > Signed-off-by: Marce

[Qemu-devel] [PULL 065/130] target-ppc: Add Flag for Power ISA V2.06 Floating Point Test Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds a flag for Floating Point Test instructions that were introduced in Power ISA V2.06B. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/cpu.h| 4 +++- target-ppc/translate_init.c | 9 ++--- 2 f

[Qemu-devel] [PULL 079/130] qdev: Keep global allocation counter per bus

2014-03-06 Thread Alexander Graf
When we have 2 separate qdev devices that both create a qbus of the same type without specifying a bus name or device name, we end up with two buses of the same name, such as ide.0 on the Mac machines: dev: macio-ide, id "" bus: ide.0 type IDE dev: macio-ide, id "" bus: ide.0

[Qemu-devel] [PULL 064/130] target-ppc: Fix and enable fri[mnpz]

2014-03-06 Thread Alexander Graf
From: Tom Musta The fri* series of instructions was introduced prior to ISA 2.06 and is supported on Power7 and Power8 hardware. However, the instruction is still considered illegal in the P7 and P8 QEMU emulation models. This patch enables these instructions for the P7 and P8 machines. Also, t

[Qemu-devel] [PULL 119/130] spapr-vlan: flush queue whenever can_receive can go from false to true

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy When the guests adds buffers to receive queue, the network device should flush its queue of pending packets. This is done with qemu_flush_queued_packets. This adds a call to qemu_flush_queued_packets() which wakes up the main loop and let QEMU update the network device

[Qemu-devel] [PULL 104/130] target-ppc: Altivec 2.07: Vector Min/Max Doubleword Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Vector Minimum and Maximum Doubleword instructions that are introduced in Power ISA Version 2.07. Signed-off-by: Tom Musta Signed-off-by: Alexander Graf --- target-ppc/helper.h | 4 target-ppc/int_helper.c | 2 ++ target-ppc/translate.c | 8 ++

[Qemu-devel] [PULL 019/130] target-ppc: Add VSX ISA2.06 xadd/xsub Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the floating point addition and subtraction instructions defined by V2.06 of the PowerPC ISA: xssubdp, xvsubdp and xvsubsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 50 +

[Qemu-devel] [PULL 020/130] target-ppc: Add VSX ISA2.06 xmul Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the VSX floating point multiply instructions defined by V2.06 of the PowerPC ISA: xsmuldp, xvmuldp, xvmulsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 47

Re: [Qemu-devel] [PATCH 2.1 07/28] qemu-option: introduce qemu_find_opts_singleton

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:35PM +0100, Paolo Bonzini wrote: > Reviewed-by: Laszlo Ersek > Signed-off-by: Paolo Bonzini > --- > include/qemu/config-file.h | 2 ++ > util/qemu-config.c | 14 ++ > vl.c | 11 +-- > 3 files changed, 17 insertions(

[Qemu-devel] [PATCH] linux-user: implement F_[GS]ETOWN_EX

2014-03-06 Thread Andreas Schwab
F_[GS]ETOWN is replaced by F_[GS]ETOWN_EX inside the glibc fcntl wrapper. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 10 ++ linux-user/syscall_defs.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 2f573b8..51

[Qemu-devel] [PULL 106/130] target-ppc: Altivec 2.07: Unpack Signed Word Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Unpack Signed Word instructions introduced in Power ISA Version 2.07: - Vector Unpack High Signed Word (vupkusw) - Vector Unpack Low Signed Word (vupklsw) Signed-off-by: Tom Musta Signed-off-by: Alexander Graf --- target-ppc/helper.h | 2 ++ target

[Qemu-devel] [PULL 014/130] spapr-pci: enable adding PHB via -device

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy Recent changes introduced cannot_instantiate_with_device_add_yet and removed capability of adding yet another PCI host bridge via command line for SPAPR platform (POWERPC64 server). This brings the capability back and puts SPAPR PHB into "bridge" category. This is not

[Qemu-devel] [PULL 124/130] target-ppc: Fix htab_mask calculation

2014-03-06 Thread Alexander Graf
From: "Aneesh Kumar K.V" Correctly update the htab_mask using the return value of KVM_PPC_ALLOCATE_HTAB ioctl. Also we don't update sdr1 on GET_SREGS for HV. We check for external htab and if found true, we don't need to update sdr1 Signed-off-by: Aneesh Kumar K.V [ fixed pte group offset compu

[Qemu-devel] [PULL 102/130] target-ppc: Altivec 2.07: Add Vector Count Leading Zeroes

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Vector Count Leading Zeroes instructions introduced in Power ISA Version 2.07 - vclzb, vclzh, vclzw and vclzd. Signed-off-by: Tom Musta Signed-off-by: Alexander Graf --- target-ppc/helper.h | 5 + target-ppc/int_helper.c | 29 ++

[Qemu-devel] [PULL 080/130] target-ppc: add extended opcodes for dcbt/dcbtst

2014-03-06 Thread Alexander Graf
From: Cédric Le Goater The latest glibc provides a memrchr routine using an extended opcode of the 'dcbt' instruction : 000a7cc0 : a7cc0: 11 00 4c 3c addis r2,r12,17 a7cc4: b8 f8 42 38 addir2,r2,-1864 a7cc8: 14 2a e3 7c add r7,r3,r5 a7c

[Qemu-devel] [PULL 004/130] target-ppc: fix SPR_CTRL/SPR_UCTRL register numbers

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy Assuming that "U" in SPR_UCTRL is for "user", there is inconsistency with 970 user manuals/P5-bookIV/PowerISA204 which define the number as: priviledged # spr5-9 spr0-4 name mtspr mfspr len cat 136 00100 01000 CTRL -no32 S 152 0010

Re: [Qemu-devel] [PATCH 3/4] linux-user: set minimum kernel version to2.6.322

2014-03-06 Thread Riku Voipio
On 4 March 2014 13:41, Peter Maydell wrote: > On 4 March 2014 11:32, Alex Bennée wrote: > > Is the effect of this to report system uname or minimum whichever is higher? > > That's what this patch does. The old configure stuff which > this patchset removed made it report "always that version", > I

[Qemu-devel] [PULL 022/130] target-ppc: Add VSX ISA2.06 xre Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the VSX floating point reciprocal estimate instructions defined by V2.06 of the PowerPC ISA: xsredp, xvredp, xvresp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 35

[Qemu-devel] [PULL 078/130] target-ppc: Update external_htab even when HTAB is managed by kernel

2014-03-06 Thread Alexander Graf
From: "Aneesh Kumar K.V" We will use this in later patches to make sure we use the right load functions when copying hpte entries. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Alexander Graf --- hw/ppc/spapr.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/pp

[Qemu-devel] [PULL 067/130] target-ppc: Add ISA 2.06 ftsqrt

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Floating Point Test for Square Root instruction which was introduced in Power ISA 2.06. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 31 +++ target-ppc/helpe

[Qemu-devel] [PULL 052/130] target-ppc: Add ISA2.06 bpermd Instruction

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Bit Permute Doubleword (bpermd) instruction, which was introduced in Power ISA 2.06 as part of the base 64-bit architecture. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/cpu.h| 4 +++- ta

[Qemu-devel] [PULL 120/130] target-ppc/translate.c: Use ULL suffix for 64 bit constants

2014-03-06 Thread Alexander Graf
From: Peter Maydell 64 bit constants need the "ULL" suffix, not just "UL", because on 32 bit platforms 'long' is not large enough and this will cause a compiler warning. Signed-off-by: Peter Maydell Reviewed-by: Stefan Weil Signed-off-by: Alexander Graf --- target-ppc/translate.c | 4 ++-- 1

[Qemu-devel] [PULL 070/130] PPC: KVM: store SLB slot number

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy When ppc_store_slb() is called from kvm_arch_get_registers(), it stores a SLB in CPUPPCState::slb[slot]. However it drops the slot number from ESID so when kvm_arch_put_registers() puts SLBs back to KVM, they do not have correct "index" field anymore. This broke migrati

[Qemu-devel] [PULL 098/130] target-ppc: Altivec 2.07: Add/Subtract Unsigned Doubleword Modulo

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds two Altivec unsigned doublword modulo instructions that are introduced in Power ISA Version V2.07: - vaddudm : Vector Add Unsigned Doubleword Modulo - vsubudm : Vector Subtrace Unsigned Doubleword Modulo Signed-off-by: Tom Musta Signed-off-by: Alexander Graf

[Qemu-devel] [PULL 100/130] target-ppc: Altivec 2.07: Multiply Even/Odd Word Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Multilpy Even/Odd Word instructions that are introduced in Power ISA Version 2.07: - Vector Multiply Even Unsigned Word (vmuleuw) - Vector Multiply Even Signed Word (vmulesw) - Vector Multiply Odd Unsigned Word (vmulouw) - Vector Multiply Odd Signed Wo

[Qemu-devel] [PULL 021/130] target-ppc: Add VSX ISA2.06 xdiv Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the VSX floating point divide instructions defined by V2.06 of the PowerPC ISA: xsdivdp, xvdivdp, xvdivsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 49 ++

Re: [Qemu-devel] [libvirt] Looking for project ideas and mentors for Google Summer of Code 2014

2014-03-06 Thread Christian Benvenuti (benve)
> -Original Message- > From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] > On Behalf Of Stefan Hajnoczi > Sent: Friday, February 14, 2014 7:58 AM > To: Cedric Bosdonnat > Cc: Jan Kiszka; qemu-devel; kvm; libvir-l...@redhat.com; Kevin Wolf; Peter > Maydell; Peter Crosthwaite

[Qemu-devel] [PULL 051/130] target-ppc: Scalar Non-Signalling Conversions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the non-signalling scalar conversion instructions: - VSX Scalar Convert Single Precision to Double Precision Non-Signalling (xscvspdpn) - VSX Scalar Convert Double Precision to Single Precision Non-Signalling (xscvdpspn) Signed-off-by: Tom Musta Revi

[Qemu-devel] [PULL 003/130] target-ppc: remove powerpc 970gx

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy The 970GX definition was added in 2007 and it made sense then but this version has never been released to the markets and it does not exist in the real world so there is no point in emulating it. This removes 970GX. Signed-off-by: Alexey Kardashevskiy Signed-off-by:

[Qemu-devel] [PULL 087/130] target-ppc: Load Quadword

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Book I (user space) Load Quadword (lq) instruction. This instruction was introduced into Book I in Power ISA V2.07. Previous versions of the architecture supported this as a privileged instruction. Previous versions of the architecture also did not support Lit

[Qemu-devel] [PULL 112/130] target-ppc: Altivec 2.07: Doubleword Compares

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Vector Compare Doubleword instructions introduced by Power ISA Version 2.07: - Vector Compare Equal to Unsigned Doubleword (vcmpequd) - Vector Compare Greater Than Signed Doubleword (vcmpgtsd) - Vector Compare Greater Than Unsigned Doubleword (vcmpgtud)

Re: [Qemu-devel] [PATCH 4/5] block/raw-posix: Strip protocol prefix on creation

2014-03-06 Thread Eric Blake
On 03/06/2014 03:25 PM, Max Reitz wrote: > The hdev_create() implementation in block/raw-posix.c is used by the > "host_device", "host_cdrom" and "host_floppy" protocol block drivers > together. Thus, it any of the associated prefixes may occur and exactly s/it // > one should be stripped, if it

[Qemu-devel] [PULL 00/130] ppc patch queue 2014-03-05

2014-03-06 Thread Alexander Graf
Hi Blue / Aurelien / Anthony / Peter, This is my current patch queue for ppc. Please pull. This pull request includes: - VSX emulation support - book3s pr/hv selection - some bug fixes - qdev stable numbering - eTSEC emulation Alex The following changes since commit f55ea6297cc022

[Qemu-devel] [PULL 071/130] virtex_ml507: Add support for loading initrd images

2014-03-06 Thread Alexander Graf
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias [agraf: fix up stray quotes and newlines in strings] Signed-off-by: Alexander Graf --- hw/ppc/virtex_ml507.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/hw/ppc/virtex_ml507.c b

[Qemu-devel] [PULL 039/130] target-ppc: VSX Stage 4: Add xsaddsp and xssubsp

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the VSX Scalar Add Single-Precision (xsaddsp) and VSX Scalar Subtract Single-Precision (xssubsp) instructions. The existing VSX_ADD_SUB macro is modified to support the rounding of the (intermediate) result to single-precision. Signed-off-by: Tom Musta Reviewed-

Re: [Qemu-devel] [PATCH] pseries: Update SLOF firmware image to 20140204

2014-03-06 Thread Alexey Kardashevskiy
On 02/21/2014 07:24 PM, Alexander Graf wrote: > > On 21.02.2014, at 07:09, Alexey Kardashevskiy wrote: > >> On 02/10/2014 05:52 PM, Alexey Kardashevskiy wrote: >>> The changelog is: version: update to 20140204 virtio-9p: disable unused structure Make "boot net:dhcp" boot from IPv4

[Qemu-devel] [PULL 072/130] PPC: KVM: suppress warnings about not supported SPRs

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy PR KVM lacks support of many SPRs in set/get one register API but it does really break PR KVM. So convert them to switchable traces for now. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Alexander Graf --- target-ppc/kvm.c | 7 +++ trace-events | 2 ++

[Qemu-devel] [PULL 025/130] target-ppc: Add VSX ISA2.06 xtdiv Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the VSX floating point test for software divide instructions defined by V2.06 of the PowerPC ISA: xstdivdp, xvtdivdp, and xvtdivsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 67 +

[Qemu-devel] [PULL 016/130] target-ppc: disable unsupported modes for SPR_CTRL/SPR_UCTRL

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy The Figure 17 "SPR encodings" of the PowerISA 2.07 describes CTRL SPR as: priviledged # spr5-9 spr0-4 name mtspr mfspr len cat 136 00100 01000 CTRL -no32 S 152 00100 11000 CTRL yes-32 S According to this chart, the hyp

[Qemu-devel] [PULL 092/130] target-ppc: Altivec 2.07: Update AVR Structure

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch updates the ppc_avr_t data structure to include elements for signed 64-bit integers and (conditionally) unsigned 128 bit integers. These elements will be in instructions models later on in this patch series. Signed-off-by: Tom Musta Signed-off-by: Alexander Graf ---

[Qemu-devel] [PULL 006/130] target-ppc: remove unsupported SPRs from 970 and P5+

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy SPR_750FX_HID2 and L2CR are not defined in 970* user manuals nor POWER5 bookIV nor PowerISA 2.04, the numbers assigned to them are not defined either so remove them. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |

[Qemu-devel] [PULL 103/130] target-ppc: Altivec 2.07: Vector Population Count Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Vector Population Count instructions introduced in Power ISA Version 2.07: vpopcntb, vpopcnth, vpopcntw and vpopcntd. Signed-off-by: Tom Musta Signed-off-by: Alexander Graf --- target-ppc/helper.h | 4 target-ppc/int_helper.c | 14 ++

[Qemu-devel] [PULL 081/130] target-ppc: Fix xxpermdi When T==A or T==B

2014-03-06 Thread Alexander Graf
From: Tom Musta The existing implementation of xxpermdi is defective if the target VSR is also a source VSR. This patch fixes the defect in this case but also preserves the simpler, two TCG operation implementation when the target is not once of the two sources. Signed-off-by: Tom Musta Signed

[Qemu-devel] [PULL 049/130] target-ppc: Floating Merge Word Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Floating Merge Even Word (fmrgew) and Floating Merge Odd Word (fmrgow) instructions. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/translate.c | 28 1 file changed, 28 inse

Re: [Qemu-devel] [PATCH] build: Fix installation of target-dependent files

2014-03-06 Thread Lluís Vilanova
Lluís Vilanova writes: > Lluís Vilanova writes: >> Pass all the relevant sub-directory make variables. > Ping. Ping^2 > Thanks, > Lluis >> Signed-off-by: Lluís Vilanova >> --- >> Makefile |2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> diff --git a/Makefile b/Makefile >> in

[Qemu-devel] [PULL 056/130] target-ppc: Add ISA 2.06 divweu[o] Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch addes the Unsigned Divide Word Extended instructions which were introduced in Power ISA 2.06B. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 31 +++

Re: [Qemu-devel] [PATCH v3 3/3] hw/boards: converted current_machine to be an instance of MachineCLass

2014-03-06 Thread Alexey Kardashevskiy
On 03/07/2014 10:44 AM, Andreas Färber wrote: > Am 05.03.2014 18:30, schrieb Marcel Apfelbaum: >> In order to allow attaching machine options to a machine instance, >> current_machine is converted into MachineState. >> As a first step of deprecating QEMUMachine, some of the functions >> were modifi

[Qemu-devel] [PULL 061/130] target-ppc: Add Flag for ISA V2.06 Floating Point Conversion

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds a flag for the floating point conversion instructions introduced in Power ISA 2.06B. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/cpu.h| 5 - target-ppc/translate_init.c | 6 +++--- 2 file

[Qemu-devel] [PULL 099/130] target-ppc: Altivec 2.07: Change VMUL_DO to Support 64-bit Integers

2014-03-06 Thread Alexander Graf
From: Tom Musta This VMUL_DO macro provides support for the various vmule* and vmulo* instructions. These instructions multiply vector elements, producing products that are one size larger; e.g. vmuleub multiplies unsigned 8-bit elements and produces a 16 bit unsigned element. The existing macr

Re: [Qemu-devel] [RFC PATCH V2 0/5] add direct support of event in qapi schema

2014-03-06 Thread Wenchao Xia
于 2014/3/7 3:58, Luiz Capitulino 写道: On Thu, 06 Mar 2014 11:14:01 -0700 Eric Blake wrote: On 01/06/2014 04:18 PM, Luiz Capitulino wrote: On Fri, 3 Jan 2014 07:10:29 +0800 Wenchao Xia wrote: This series add support for tag/keyword 'event' in qapi-schema. A new file was created to store som

Re: [Qemu-devel] [PATCH V9 07/10] qapi script: support enum type as discriminator in union

2014-03-06 Thread Wenchao Xia
于 2014/3/6 21:03, Luiz Capitulino 写道: On Thu, 06 Mar 2014 19:54:33 +0800 Wenchao Xia wrote: 于 2014/3/6 16:25, Markus Armbruster 写道: Wenchao Xia writes: By default, any union will automatically generate a enum type as "[UnionName]Kind" in C code, and it is duplicated when the discriminator

[Qemu-devel] [PULL 041/130] target-ppc: VSX Stage 4: Add xsdivsp

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the VSX Scalar Divide Single Precision (xsdivsp) instruction. The existing VSX_DIV macro is modified to support rounding of the intermediate double precision result to single precision. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alex

[Qemu-devel] [PATCH 07/10] qapi script: support enum type as discriminator in union

2014-03-06 Thread Wenchao Xia
By default, any union will automatically generate a enum type as "[UnionName]Kind" in C code, and it is duplicated when the discriminator is specified as a pre-defined enum type in schema. After this patch, the pre-defined enum type will be really used as the switch case condition in generated C co

[Qemu-devel] [PULL 077/130] spapr: print more detailed error message on failed load_elf()

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy This makes use of new error codes which load_elf() can return and prints more informative error message. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Alexander Graf --- hw/ppc/spapr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw

[Qemu-devel] [PULL 109/130] target-ppc: Altivec 2.07: Vector Doubleword Rotate and Shift Instructions

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the vector doublword rotate and shift instructions introduced in Power ISA Version 2.07: - Vector Rotate Left Doubleword instruction (vrld) - Vector Shift Left Doubleword (vsld) - Vector Shift Right Doubleword (vsrd) - Vector Shift Right Algegbraic Doublew

[Qemu-devel] [PULL 084/130] target-ppc: Add bctar Instruction

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Branch Conditional to Address Register (bctar) instruction. Signed-off-by: Tom Musta Signed-off-by: Alexander Graf --- target-ppc/translate.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/target-ppc/translate.c b/target-ppc

[Qemu-devel] [PULL 005/130] target-ppc: remove embedded MMU SPRs from 970, P5+/7/7+/8

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy PowerISA 2.04+ puts MMUCFG and MMUCSR0 SPRs to "E" (embedded) category so remove it from POWER7/8 class as it is "S" (server) category. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 46 ---

[Qemu-devel] [PULL 066/130] target-ppc: Add ISA 2.06 ftdiv Instruction

2014-03-06 Thread Alexander Graf
From: Tom Musta This patch adds the Floating Point Test for Divide instruction which was introduced in Power ISA 2.06B. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 56 - ta

[Qemu-devel] [PULL 076/130] elf-loader: add more return codes

2014-03-06 Thread Alexander Graf
From: Alexey Kardashevskiy The existing load_elf() just returns -1 if it fails to load ELF. However it could be smarter than this and tell more about the failure such as wrong endianness or incompatible platform. This adds additional return codes for wrong architecture, wrong endianness and if t

  1   2   3   4   >