Re: [Qemu-devel] mach-virt RAM start address

2013-10-04 Thread Peter Maydell
On 5 October 2013 14:20, Giridhar Maruthy wrote: > On 5 October 2013 10:19, Peter Maydell wrote: >> On 5 October 2013 13:41, Giridhar Maruthy >> wrote: >>> I am using mach-virt in qemu which boots correctly when RAM start >>> address is 0x800. But if I change the address to anything like >>

Re: [Qemu-devel] mach-virt RAM start address

2013-10-04 Thread Giridhar Maruthy
On 5 October 2013 10:19, Peter Maydell wrote: > On 5 October 2013 13:41, Giridhar Maruthy wrote: >> I am using mach-virt in qemu which boots correctly when RAM start >> address is 0x800. But if I change the address to anything like >> 0x900, the mach-virt machine just hangs, not even an e

Re: [Qemu-devel] mach-virt RAM start address

2013-10-04 Thread Peter Maydell
On 5 October 2013 13:41, Giridhar Maruthy wrote: > I am using mach-virt in qemu which boots correctly when RAM start > address is 0x800. But if I change the address to anything like > 0x900, the mach-virt machine just hangs, not even an error > message. The kernel automatically figures ou

[Qemu-devel] mach-virt RAM start address

2013-10-04 Thread Giridhar Maruthy
Hi, I am using mach-virt in qemu which boots correctly when RAM start address is 0x800. But if I change the address to anything like 0x900, the mach-virt machine just hangs, not even an error message. Do we have to mention the RAM start address anywhere else? diff --git a/hw/arm/virt.c b

Re: [Qemu-devel] [PATCH v2 0/2] KVM: s390: add floating irq controller

2013-10-04 Thread Alexander Graf
On 06.09.2013, at 15:30, Christian Borntraeger wrote: > On 06/09/13 14:19, Jens Freimann wrote:> This series adds a kvm_device that > acts as a irq controller for floating >> interrupts. As a first step it implements functionality to retrieve and >> inject >> interrupts for the purpose of migr

Re: [Qemu-devel] [PATCH v2 2/2] KVM: s390: add floating irq controller

2013-10-04 Thread Alexander Graf
On 06.09.2013, at 14:19, Jens Freimann wrote: > This patch adds a floating irq controller as a kvm_device. > It will be necessary for migration of floating interrupts as well > as for hardening the reset code by allowing user space to explicitly > remove all pending floating interrupts. > > Sign

Re: [Qemu-devel] [PATCH v2 1/2] KVM: s390: add and extend interrupt information data structs

2013-10-04 Thread Alexander Graf
On 06.09.2013, at 14:19, Jens Freimann wrote: > With the currently available struct kvm_s390_interrupt it is not possible to > inject every kind of interrupt as defined in the z/Architecture. Add > additional interruption parameters to the structures and move it to kvm.h > > Signed-off-by: Jens

Re: [Qemu-devel] [PATCH V9 00/11] Quorum block driver

2013-10-04 Thread Benoît Canet
Le Friday 04 Oct 2013 à 16:31:56 (+0200), Max Reitz a écrit : > On 2013-10-02 14:39, Benoît Canet wrote: > >It must be applied on top of "block: Add > >BlockDriver.bdrv_check_ext_snapshot." > > > >This patchset create a block driver implementing a quorum using total qemu > >disk > >images. Writes

[Qemu-devel] [RFC PATCH] vfio-pci: Disallow device from using NoSnoop transactions

2013-10-04 Thread Alex Williamson
NoSnoop is a PCIe attribute that allows devices to issue transactions that bypass cache. If devices are allowed to do this then the hypervisor must emulate instructions like WBINVD or else drivers in the guest have no way to synchronize RAM for the device. Instead of forcing WBINVD when a device

[Qemu-devel] [RFC PATCH v2 1/3] Fix configure script for LTTng 2.x

2013-10-04 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 23dbaaf..627054c 100755 --- a/configure +++ b/configure @@ -3287,15 +3287,14 @@ fi # For 'ust' backend, test if ust headers are present if test

[Qemu-devel] [RFC PATCH v2 2/3] Modified the tracetool framework for LTTng 2.x.

2013-10-04 Thread Mohamad Gebai
* A new format is required to generate definitions for ust tracepoints. Files ust_events_h.py and ust_events_c.py define common macros, while new function ust_events_h in events.py does the actual definition of each tracepoint. * ust.py generates the new interface for calling userspace tracep

[Qemu-devel] [PATCH 0/2] VFIO pull request fixes

2013-10-04 Thread Alex Williamson
Bugs found by Paolo and Alexey. I'll include these in my next pull request. Thanks, Alex --- Alex Williamson (2): vfio-pci: Add dummy PCI ROM write accessor vfio-pci: Fix endian issues in vfio_pci_size_rom() hw/misc/vfio.c | 10 -- 1 file changed, 8 insertions(+), 2 de

[Qemu-devel] [PATCH 2/2] vfio-pci: Fix endian issues in vfio_pci_size_rom()

2013-10-04 Thread Alex Williamson
VFIO is always little endian so do byte swapping of our mask on the way in and byte swapping of the size on the way out. Signed-off-by: Alex Williamson Reported-by: Alexey Kardashevskiy --- hw/misc/vfio.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/vfio.c

[Qemu-devel] [PATCH 1/2] vfio-pci: Add dummy PCI ROM write accessor

2013-10-04 Thread Alex Williamson
Just to be sure we don't jump off any NULL pointer cliffs. Signed-off-by: Alex Williamson Reported-by: Paolo Bonzini --- hw/misc/vfio.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 68e25bd..1fbc40b 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/v

[Qemu-devel] [RFC PATCH v2 0/3] Fix UST backend for LTTng 2.x

2013-10-04 Thread Mohamad Gebai
Version 2 * Fix tracepoint generation error in first version. * Avoid warnings and errors specific to LTTng ust 2.0. * If using LTTng ust 2.0, we can't avoid getting warnings because of the --warn-common option given to the linker. This is fixed in more recent versions of LTTng ust. Mohamad

[Qemu-devel] [RFC PATCH v2 3/3] Adapt Makefiles to the new LTTng ust interface.

2013-10-04 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile|5 + trace/Makefile.objs | 29 +++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 60fb87e..0c797c5 100644 --- a/Makefile

Re: [Qemu-devel] [PATCH for-1.6] isapc: disable kvmvapic

2013-10-04 Thread Paolo Bonzini
Il 04/10/2013 18:52, Andreas Färber ha scritto: > Am 04.10.2013 18:47, schrieb Paolo Bonzini: >> Il 26/08/2013 18:17, Michael S. Tsirkin ha scritto: >>> On Mon, Aug 26, 2013 at 05:17:07PM +0200, Andreas Färber wrote: Am 26.08.2013 17:01, schrieb Paolo Bonzini: > Il 26/08/2013 16:34, Andrea

Re: [Qemu-devel] [PATCH 3/4] Refactoring MonitorDef array

2013-10-04 Thread Andreas Färber
Am 04.10.2013 19:49, schrieb Peter Maydell: > On 5 October 2013 01:57, Fabien Chouteau wrote: > >> --- a/target-sparc/cpu-qom.h >> +++ b/target-sparc/cpu-qom.h >> @@ -21,7 +21,6 @@ >> #define QEMU_SPARC_CPU_QOM_H >> >> #include "qom/cpu.h" >> -#include "cpu.h" > > ...why have you deleted this

Re: [Qemu-devel] [PATCH 4/4] Add ARM registers definitions for Monitor commands

2013-10-04 Thread Peter Maydell
On 5 October 2013 01:57, Fabien Chouteau wrote: > > Signed-off-by: Fabien Chouteau > --- > target-arm/Makefile.objs |2 +- > target-arm/cpu.c |7 +++ > target-arm/monitor.c | 40 > 3 files changed, 48 insertions(+), 1 deletion(-)

Re: [Qemu-devel] [PATCH 3/4] Refactoring MonitorDef array

2013-10-04 Thread Peter Maydell
On 5 October 2013 01:57, Fabien Chouteau wrote: > --- a/target-i386/cpu-qom.h > +++ b/target-i386/cpu-qom.h > @@ -23,6 +23,7 @@ > #include "qom/cpu.h" > #include "cpu.h" > #include "qapi/error.h" > +#include "monitor/monitor_def.h" > #ifdef TARGET_X86_64 > #define TYPE_X86_CPU "x86_64-cpu" >

[Qemu-devel] [PATCH 3/4] Refactoring MonitorDef array

2013-10-04 Thread Fabien Chouteau
Everything has been moved to cpu specific directories (SPARC, PPC, i386). Signed-off-by: Fabien Chouteau --- include/monitor/monitor_def.h | 18 ++ include/qemu/typedefs.h |1 + include/qom/cpu.h |3 + monitor.c | 396 +

[Qemu-devel] [PATCH 0/4] Few minor improvements of monitor disas command (v4)

2013-10-04 Thread Fabien Chouteau
Another attempt. I think this is the best I can do to fulfil all comments. Fabien Chouteau (4): Fix coding style Improve Monitor disas with symbol lookup Refactoring MonitorDef array Add ARM registers definitions for Monitor commands disas.c | 19 +- include/monit

[Qemu-devel] [PATCH 2/4] Improve Monitor disas with symbol lookup

2013-10-04 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau --- disas.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/disas.c b/disas.c index 32407de..c83bf5b 100644 --- a/disas.c +++ b/disas.c @@ -507,7 +507,15 @@ void monitor_disas(Monitor *mon, CPUArchState *env, #endif for (i =

[Qemu-devel] [Bug 1235306] [NEW] Wrong memory viewer in 16 bit mode (Debugging BIOS OptionROM)

2013-10-04 Thread Leonid Myravjev
Public bug reported: Hi. I would like tracing on OptionROM program in gdb. I make loop on OptionROM kind: Label: nop nop nop nop jmp Label I build it for .286 (16 bit mode). I get LST file: 144 00CA Label proc far; CODE XREF: seg000:0003 145 00CA 90 nop 146 00

[Qemu-devel] [PATCH 1/4] Fix coding style

2013-10-04 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau --- disas.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/disas.c b/disas.c index 0203ef2..32407de 100644 --- a/disas.c +++ b/disas.c @@ -506,12 +506,13 @@ void monitor_disas(Monitor *mon, CPUArchState *env, return; #endif

[Qemu-devel] [PATCH 4/4] Add ARM registers definitions for Monitor commands

2013-10-04 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau --- target-arm/Makefile.objs |2 +- target-arm/cpu.c |7 +++ target-arm/monitor.c | 40 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 target-arm/monitor.c diff --git a/target

Re: [Qemu-devel] [PATCH for-1.6] isapc: disable kvmvapic

2013-10-04 Thread Andreas Färber
Am 04.10.2013 18:47, schrieb Paolo Bonzini: > Il 26/08/2013 18:17, Michael S. Tsirkin ha scritto: >> On Mon, Aug 26, 2013 at 05:17:07PM +0200, Andreas Färber wrote: >>> Am 26.08.2013 17:01, schrieb Paolo Bonzini: Il 26/08/2013 16:34, Andreas Färber ha scritto: > Am 26.08.2013 14:21, schrie

Re: [Qemu-devel] [PATCH for-1.6] isapc: disable kvmvapic

2013-10-04 Thread Paolo Bonzini
Il 26/08/2013 18:17, Michael S. Tsirkin ha scritto: > On Mon, Aug 26, 2013 at 05:17:07PM +0200, Andreas Färber wrote: >> Am 26.08.2013 17:01, schrieb Paolo Bonzini: >>> Il 26/08/2013 16:34, Andreas Färber ha scritto: Am 26.08.2013 14:21, schrieb Paolo Bonzini: > Il 13/08/2013 00:02, Paolo

Re: [Qemu-devel] [PATCH v8 18/26] i386: define pc guest info

2013-10-04 Thread Igor Mammedov
On Thu, 3 Oct 2013 18:05:35 +0300 "Michael S. Tsirkin" wrote: > This defines a structure that will be used to fill in acpi tables > where relevant properties are not yet available using QOM. > > Reviewed-by: Laszlo Ersek > Reviewed-by: Gerd Hoffmann > Tested-by: Gerd Hoffmann > Signed-off-by:

Re: [Qemu-devel] [PATCH v8 24/26] i386: ACPI table generation code from seabios

2013-10-04 Thread Igor Mammedov
On Thu, 3 Oct 2013 18:05:56 +0300 "Michael S. Tsirkin" wrote: [...] > +void acpi_setup(PcGuestInfo *guest_info) > +{ > +AcpiBuildTables tables; > +AcpiBuildState *build_state; > + > +if (!guest_info->fw_cfg) { > +ACPI_BUILD_DPRINTF(3, "Nooiling out fw cfg. Boiling out.\n"); s/

[Qemu-devel] [PULL v2][RESEND] char: fix segfault on chardev detach

2013-10-04 Thread Amit Shah
Hi Anthony, Please pull to receive a fix for a segfault in the char layer. The patches have been on the list for a week, and Gerd has reviewed them. (I'm overloading the virtio-serial git tree for this series, haven't gotten around to setting up a separate tree for char yet.) v2: I bungled up

Re: [Qemu-devel] [PATCH V9 11/11] quorum: Add quorum_open() and quorum_close().

2013-10-04 Thread Eric Blake
On 10/04/2013 09:14 AM, Max Reitz wrote: > On 2013-10-02 14:39, Benoît Canet wrote: >> Example of command line: >> -drive if=virtio,file.driver=quorum,\ >> file.children.0.file.filename=1.qcow2,\ >> file.children.1.file.filename=2.qcow2,\ >> file.children.2.file.filename=3.qcow2,\ >> file.vote_thre

Re: [Qemu-devel] [PATCH v11 0/8] Shared Library Module Support

2013-10-04 Thread Paolo Bonzini
Il 04/10/2013 16:48, Stefan Hajnoczi ha scritto: >> > >>> >> v11: >>> >> [04] Link DSO with -Wl,--enable-new-dtags -Wl,-rpath,'$$ORIGIN' >>> >> (Richard) >> > >> > I don't fully understand the portability issue with this flag yet, is this >> > OK >> > to keep or should be dropped? Any opinio

Re: [Qemu-devel] [PULL 3/6] vfio-pci: Lazy PCI option ROM loading

2013-10-04 Thread Alex Williamson
On Fri, 2013-10-04 at 22:13 +1000, Alexey Kardashevskiy wrote: > On 10/04/2013 01:39 AM, Alex Williamson wrote: > > During vfio-pci initfn, the device is not always in a state where the > > option ROM can be read. In the case of graphics cards, there's often > > no per function reset, which means

Re: [Qemu-devel] [PATCH V9 11/11] quorum: Add quorum_open() and quorum_close().

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.qcow2,\ file.children.1.file.filename=2.qcow2,\ file.children.2.file.filename=3.qcow2,\ file.vote_threshold=3 file.blkverify=on with file.vote_threshold=2 and t

Re: [Qemu-devel] [PATCH v11 0/8] Shared Library Module Support

2013-10-04 Thread Michael Tokarev
04.10.2013 18:48, Stefan Hajnoczi wrote: > On Thu, Sep 26, 2013 at 3:26 PM, Fam Zheng wrote: >> On Tue, 09/17 16:54, Fam Zheng wrote: >>> This series implements feature of shared object building as described in: >>> >>> http://wiki.qemu.org/Features/Modules >>> >>> The main idea behind modules is

Re: [Qemu-devel] [PATCH V9 10/11] quorum: Add quorum_co_flush().

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Makes a vote to select error if any. Voting on the error code seems a little over the top to me. ;) I mean, the idea's nice, but then you'd have to do the same for reads and writes, I think. Just doing this for flushes seems a little incoherent. Max

Re: [Qemu-devel] [PATCH V9 09/11] quorum: Add quorum_co_get_block_status.

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Signed-off-by: Benoit Canet --- block/quorum.c | 67 ++ 1 file changed, 67 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 223ad22..084d030 100644 --- a/block/quorum.c +++ b/bloc

Re: [Qemu-devel] [PATCH V9 07/11] quorum: Add quorum_getlength().

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Check that every bs file return the same length. *returns If not return -EIO to disable the quorum and I'd prefer "If not," (mind the comma) or "Otherwise," (comma optional). Max avoid length discrepancy. Signed-off-by: Benoit Canet --- block/qu

Re: [Qemu-devel] [PATCH V9 06/11] quorum: Add quorum mechanism.

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Use gnutls's SHA-256 to compare versions. Wouldn't CRC32 suffice? (I don't really oppose using SHA, but taking in gnutls as a dependency just for comparing several memory areas seems a bit much to me) Signed-off-by: Benoit Canet --- block/Makefile.

Re: [Qemu-devel] [PATCH v11 0/8] Shared Library Module Support

2013-10-04 Thread Stefan Hajnoczi
On Thu, Sep 26, 2013 at 3:26 PM, Fam Zheng wrote: > On Tue, 09/17 16:54, Fam Zheng wrote: >> This series implements feature of shared object building as described in: >> >> http://wiki.qemu.org/Features/Modules >> >> The main idea behind modules is to isolate dependencies on third party >> librari

Re: [Qemu-devel] [PATCH V9 05/11] quorum: Add quorum_aio_readv.

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Signed-off-by: Benoit Canet --- block/quorum.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/block/quorum.c b/block/quorum.c index b49e3c6..f0fc0e9 100644 --- a/block/quorum.c +++ b/block/q

Re: [Qemu-devel] [PATCH V9 03/11] quorum: Add quorum_aio_writev and its dependencies.

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Signed-off-by: Benoit Canet --- block/quorum.c | 123 + 1 file changed, 123 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 9557e61..b49e3c6 100644 --- a/block/quorum.c +++ b/blo

Re: [Qemu-devel] [PATCH V9 02/11] quorum: Create BDRVQuorumState and BlkDriver and do init.

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Signed-off-by: Benoit Canet --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 76a1fbb..9557e61 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -15,6 +15,16 @@

Re: [Qemu-devel] [PATCH V9 01/11] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: Signed-off-by: Benoit Canet --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644 block/quorum.c diff --git a/block/Makefile.objs b/block

Re: [Qemu-devel] [PATCH V9 00/11] Quorum block driver

2013-10-04 Thread Max Reitz
On 2013-10-02 14:39, Benoît Canet wrote: It must be applied on top of "block: Add BlockDriver.bdrv_check_ext_snapshot." This patchset create a block driver implementing a quorum using total qemu disk images. Writes are mirrored on the $total files. For the reading part the $total files are read

Re: [Qemu-devel] [Nbd] Hibernate and qemu-nbd

2013-10-04 Thread Mark Trumpold
On 9/26/13 10:18 PM, "Stefan Hajnoczi" wrote: > >Try the qemu-nbd --persistent option. That should prevent it from >shutting down when nbd-client is disconnected. > >Stefan > Hi Stefan, Sorry for the delay.. I tried the following per your suggestion: 920 qemu-nbd --persistent -p 2000 /r

Re: [Qemu-devel] [Qemu-ppc] [RFC] QEMU/KVM PowerPC: virtio and guest endianness

2013-10-04 Thread Alexander Graf
On 04.10.2013, at 16:08, Greg Kurz wrote: > Answering to both Paul and Alex. > > On Fri, 4 Oct 2013 13:54:25 +0200 > Alexander Graf wrote: > >> >> On 04.10.2013, at 13:53, Paul Mackerras wrote: >>> >>> I don't mind particularly whether H_SET_MODE for the endianness >>> setting gets handled i

Re: [Qemu-devel] [Qemu-ppc] [RFC] QEMU/KVM PowerPC: virtio and guest endianness

2013-10-04 Thread Greg Kurz
Answering to both Paul and Alex. On Fri, 4 Oct 2013 13:54:25 +0200 Alexander Graf wrote: > > On 04.10.2013, at 13:53, Paul Mackerras wrote: > > > > I don't mind particularly whether H_SET_MODE for the endianness > > setting gets handled in the kernel or in QEMU, but I don't think it > > should

[Qemu-devel] [PATCH 13/13] Add xxsldwi

2013-10-04 Thread Tom Musta
This patch adds the VSX Shift Left Double by Word Immediate (xxsldwi) instruction. Signed-off-by: Tom Musta --- target-ppc/translate.c | 62 1 files changed, 62 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/t

[Qemu-devel] [PATCH 10/13] Add xxmrgh/xxmrgl

2013-10-04 Thread Tom Musta
This patch adds the VSX Merge High Word and VSX Merge Low Word instructions. Signed-off-by: Tom Musta --- target-ppc/translate.c | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c i

[Qemu-devel] [PATCH 09/13] Add Power7 VSX Logical Instructions

2013-10-04 Thread Tom Musta
This patch adds the VSX logical instructions that are defined by the Version 2.06 Power ISA (aka Power7): - xxland - xxlandc - xxlor - xxlxor - xxlnor Signed-off-by: Tom Musta --- target-ppc/translate.c | 29 + 1 files changed, 29 insertions(+), 0 d

[Qemu-devel] [PATCH 05/13] Add stxsdx

2013-10-04 Thread Tom Musta
This patch adds the Store VSX Scalar Doubleword Indexed (stxsdx) instruction. Signed-off-by: Tom Musta --- target-ppc/translate.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 465c991..a4e3a0a 100644

[Qemu-devel] [PATCH 04/13] Add lxvw4x

2013-10-04 Thread Tom Musta
This patch adds the Load VSX Vector Word*4 Indexed (lxvw4x) instruction. Signed-off-by: Tom Musta --- target-ppc/translate.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index f25e699..465

[Qemu-devel] [PATCH 08/13] Add VSX Vector Move Instructions

2013-10-04 Thread Tom Musta
This patch adds the vector move instructions: - xvabsdp - Vector Absolute Value Double-Precision - xvnabsdp - Vector Negative Absolute Value Double-Precision - xvnegdp - Vector Negate Double-Precision - xvcpsgndp - Vector Copy Sign Double-Precision - xvabssp - Vector Absolute Value Sing

[Qemu-devel] [PATCH 06/13] Add stxvw4x

2013-10-04 Thread Tom Musta
This patch adds the Store VSX Vector Word*4 Indexed (stxvw4x) instruction. Signed-off-by: Tom Musta --- target-ppc/translate.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index a4e3a0a..7d71

[Qemu-devel] [PATCH 02/13] Add lxsdx

2013-10-04 Thread Tom Musta
This patch adds the Load VSX Scalar Doubleowrd Indexed (lxsdx) instruction. The lower 8 bytes of the target register are undefined; this implementation leaves those bytes unaltered. Signed-off-by: Tom Musta --- target-ppc/translate.c | 16 1 files changed, 16 insertions(+),

[Qemu-devel] [PATCH 11/13] Add xxsel

2013-10-04 Thread Tom Musta
This patch adds the VSX Select (xxsel) instruction. The xxsel instruction has four VSR operands. Thus the xC instruction decoder is added. The xxsel instruction is massively overloaded in the opcode table since only bits 26 and 27 are opcode bits. This overloading is done in matrix fashion wit

[Qemu-devel] [PATCH 03/13] Add lxvdsx

2013-10-04 Thread Tom Musta
This patch adds the Load VSX Vector Doubleword & Splat Indexed (lxvdsx) instruction. Signed-off-by: Tom Musta --- target-ppc/translate.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 4f2d647..f25e69

[Qemu-devel] [PATCH 01/13] Abandon GEN_VSX_* macros

2013-10-04 Thread Tom Musta
Abandon GEN_VSX_* macros This patch eliminates the GEN_VSX_LXVNX/GEN_VSX_STXVNX macros which did not provide significant value above the general GEN_HANDLER_E macro. Signed-off-by: Tom Musta --- target-ppc/translate.c | 12 ++-- 1 files changed, 2 insertions(+), 10 deletions(-) diff

[Qemu-devel] [PATCH 12/13] Add xxspltw

2013-10-04 Thread Tom Musta
This patch adds the VSX Splat Word (xxsplatw) instruction. This is the first instruction to use the UIM immediate field and consequently a decoder is also added. Signed-off-by: Tom Musta --- target-ppc/translate.c | 50 1 files changed, 50 i

[Qemu-devel] [PATCH 00/13] Stage 2 VSX Support

2013-10-04 Thread Tom Musta
This patch series continues adding support for the PowerPC Vector Scalar Extension (VSX). Patches are relative to the Stage 1 delivery (see http://lists.nongnu.org/archive/html/qemu-ppc/2013-09/msg00231.html). This series adds the following: a) all remaining load and store instructions defin

[Qemu-devel] [PATCH 07/13] Add VSX Scalar Move Instructions

2013-10-04 Thread Tom Musta
This patch adds the VSX scalar move instructions: - xsabsdp (Scalar Absolute Value Double-Precision) - xsnabspd (Scalar Negative Absolute Value Double-Precision) - xsnegdp (Scalar Negate Double-Precision) - xscpsgndp (Scalar Copy Sign Double-Precision) A common generator macro (VSX_SCALA

Re: [Qemu-devel] [Qemu-ppc] [RFC] QEMU/KVM PowerPC: virtio and guest endianness

2013-10-04 Thread Greg Kurz
On Fri, 4 Oct 2013 13:43:38 +0200 Alexander Graf wrote: > CC'ing qemu-devel - please use qemu-ppc@ only as a tag, every mail > needs to go to qemu-devel as well. > Sure I will. > On 03.10.2013, at 16:29, Greg Kurz wrote: > [...] > > I have searched for an appropriate place to add the polling a

Re: [Qemu-devel] [PATCH 2/2] q35: add cpu hotplug support

2013-10-04 Thread Igor Mammedov
On Wed, 21 Aug 2013 13:01:32 +0200 Gerd Hoffmann wrote: > Hi, > > > +#define ICH9_PROC_BASE 0xaf00 > > +#define ICH9_PROC_LEN 32 > > No, please don't. It makes it impossible to assign the 0xa000 -> 0xafff > I/O port window to a PCI bridge. Please lets stop occupy random io > ports above 0x1

Re: [Qemu-devel] Using TRIM to shrink qcow2 images

2013-10-04 Thread Paolo Bonzini
Il 04/10/2013 09:07, Alexey Kardashevskiy ha scritto: > On 10/04/2013 05:05 PM, Paolo Bonzini wrote: >> Il 04/10/2013 08:22, Alexey Kardashevskiy ha scritto: >>> >>> btw I tried "discard=on" as you described (with if=virtio) and received >>> an error: >>> [root@localhost ~]# fstrim -v / >>> fstrim:

[Qemu-devel] [PATCH 1/5] tcg-aarch64: Update to helper_ret_*_mmu routines

2013-10-04 Thread Claudio Fontana
Hello Richard, > A minimal update to use the new helpers with the return address argument. > > Cc: Claudio Fontana > Signed-off-by: Richard Henderson > --- > include/exec/exec-all.h | 18 -- > tcg/aarch64/tcg-target.c | 28 > 2 files changed, 16 ins

Re: [Qemu-devel] [PULL 3/6] vfio-pci: Lazy PCI option ROM loading

2013-10-04 Thread Alexey Kardashevskiy
On 10/04/2013 01:39 AM, Alex Williamson wrote: > During vfio-pci initfn, the device is not always in a state where the > option ROM can be read. In the case of graphics cards, there's often > no per function reset, which means we have host driver state affecting > whether the option ROM is usable.

Re: [Qemu-devel] [RFC] QEMU/KVM PowerPC: virtio and guest endianness

2013-10-04 Thread Alexander Graf
CC'ing qemu-devel - please use qemu-ppc@ only as a tag, every mail needs to go to qemu-devel as well. On 03.10.2013, at 16:29, Greg Kurz wrote: > Hi, > > There have been some work on the topic lately but no agreement has > been reached yet. I want to consolidate the facts in a single thread of

[Qemu-devel] [PATCH] spice: replace use of deprecated API

2013-10-04 Thread Marc-André Lureau
hose API are deprecated since 0.11, and qemu depends on 0.12 already. --- hw/display/qxl.c | 16 ui/spice-core.c| 15 +++ ui/spice-display.c | 10 +- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/hw/display/qxl.c b/hw/display/qxl.c inde

Re: [Qemu-devel] [PATCH uq/master] kvmvapic: Prevent reading beyond the end of guest RAM

2013-10-04 Thread Gleb Natapov
On Mon, Sep 30, 2013 at 12:35:13PM +0200, Jan Kiszka wrote: > rom_state_paddr is guest provided (caller address of outw(VAPIC_PORT) + > writen 16-bit value) and can be influenced to point beyond the end of > the host memory backing the guest's RAM. Make sure we do not use this > pointer to actually

Re: [Qemu-devel] [PATCH V13 10/13] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node

2013-10-04 Thread Paolo Bonzini
Il 04/10/2013 02:04, Marcelo Tosatti ha scritto: >>> > > This QMP command allows user set guest node's memory policy >>> > > through the QMP protocol. The qmp-shell command is like: >>> > > set-mem-policy nodeid=0 policy=membind relative=true host-nodes=0-1 >>> > > >>> > > Reviewed-by: Luiz Ca

Re: [Qemu-devel] [PATCH] block: use correct filename

2013-10-04 Thread Max Reitz
On 2013-10-02 19:31, Dunrong Huang wrote: The content filename point to may be erased by qemu_opts_absorb_qdict() in raw_open_common() in drv->bdrv_file_open() So it's better to use bs->filename. Signed-off-by: Dunrong Huang --- block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[Qemu-devel] CPU Benchmark qemu-kvm 1.2.0 Win XP vs. Win 7

2013-10-04 Thread Erik Rull
Hi all, when testing my first Windows 7 guest, I noticed, that the IRQ load / kernel time within the guest is quite high when having network access. I use the virtio drivers - the same version as in the Windows XP guests. There the kernel load is nearly only 50% of the Win7 load. Why? The pro

Re: [Qemu-devel] [PATCH] coroutine: add ./configure --disable-coroutine-pool

2013-10-04 Thread Stefan Hajnoczi
On Wed, Oct 02, 2013 at 11:15:56PM +0200, Stefan Weil wrote: > Am 02.10.2013 10:54, schrieb Stefan Hajnoczi: > > This is an interesting backtrace. The 'current' thread-local variable > > from coroutine-win32.c is NULL or doesn't have a caller assigned. > > > > Please post 'thread apply all bt' so

Re: [Qemu-devel] [PATCH] cpu-exec(): also reload CPUClass *cc after longjmp return

2013-10-04 Thread Jan Kiszka
On 2013-10-03 18:05, Peter Maydell wrote: > On 3 October 2013 23:09, Juergen Lock wrote: >> Local variable CPUClass *cc needs to be reloaded after return from longjmp >> too. (This fixes the mips-softmmu crash observed on FreeBSD when qemu is >> built with clang.) >> >> Signed-off-by: Juergen Loc

Re: [Qemu-devel] Using TRIM to shrink qcow2 images

2013-10-04 Thread Alexey Kardashevskiy
On 10/04/2013 05:05 PM, Paolo Bonzini wrote: > Il 04/10/2013 08:22, Alexey Kardashevskiy ha scritto: >> >> btw I tried "discard=on" as you described (with if=virtio) and received >> an error: >> [root@localhost ~]# fstrim -v / >> fstrim: /: FITRIM ioctl failed: Operation not supported >> >> In my c

Re: [Qemu-devel] Using TRIM to shrink qcow2 images

2013-10-04 Thread Paolo Bonzini
Il 04/10/2013 08:22, Alexey Kardashevskiy ha scritto: > > btw I tried "discard=on" as you described (with if=virtio) and received > an error: > [root@localhost ~]# fstrim -v / > fstrim: /: FITRIM ioctl failed: Operation not supported > > In my case if=virtio means virtio-blk. If I use virtio-scsi