[Qemu-devel] [PATCH v3] trace: add workaround for SystemTap PR13296

2014-03-25 Thread Stefan Hajnoczi
From: Frank Ch. Eigler f...@redhat.com SystemTap sdt.h sometimes results in compiled probes without sufficient information to extract arguments. This can be solved in a slightly hacky way by encouraging the compiler to place arguments into registers. This patch fixes the

Re: [Qemu-devel] please release qemu version 1.7.1

2014-03-25 Thread Stefan Hajnoczi
On Mon, Mar 24, 2014 at 10:59:42PM +0100, Laszlo Ersek wrote: On 03/24/14 22:50, Andreas Färber wrote: Laszlo, Am 24.03.2014 20:23, schrieb Laszlo Ersek: http://wiki.qemu.org/Planning/1.7 Thank you. Laszlo Since you're not addressing anyone in particular who could create the

Re: [Qemu-devel] [PATCH] qemu-img: mandate argument to 'qemu-img check --repair'

2014-03-25 Thread Stefan Hajnoczi
On Tue, Mar 25, 2014 at 12:08:54AM +0530, Prasad Joshi wrote: qemu-img check --repair option accepts an argument. The argument to --repair switch can either be 'all' or 'leak'. Fix the long option to mandate argument with --repair switch. The patch fixes following segmentation fault Core

Re: [Qemu-devel] [PATCH] Fixed various typos

2014-03-25 Thread Stefan Hajnoczi
On Mon, Mar 24, 2014 at 04:30:17PM +0800, Deepak Kathayat wrote: Signed-off-by: Deepak Kathayat deepak.m...@gmail.com --- block/gluster.c |2 +- block/qcow.c |2 +- block/sheepdog.c |8 block/vdi.c |2 +- block/vhdx-log.c |2 +- slirp/tftp.c |

Re: [Qemu-devel] [PATCH] qcow2: Remove FIXME comment, already fixed

2014-03-25 Thread Stefan Hajnoczi
On Mon, Mar 24, 2014 at 02:06:15PM +0800, Deepak Kathayat wrote: Signed-off-by: Deepak Kathayat deepak.m...@gmail.com --- block/qcow2.h |1 - 1 file changed, 1 deletion(-) Thanks, applied to my block-next tree: https://github.com/stefanha/qemu/commits/block-next Stefan

Re: [Qemu-devel] [PATCH for-2.0 0/2] mirror: fix rate-limiting

2014-03-25 Thread Stefan Hajnoczi
On Fri, Mar 21, 2014 at 01:55:17PM +0100, Stefan Hajnoczi wrote: Rate-limiting is broken for drive-mirror because the calculations are performed using an inaccurate sector count and aio completion is waking up the sleeping coroutine early. These patches from Paolo and me fix the issue.

Re: [Qemu-devel] [PATCH] QEMU: ARM: boot: Load kernel at an Image friendly address

2014-03-25 Thread Peter Maydell
On 25 March 2014 03:34, Joel Fernandes jo...@ti.com wrote: Loading kernel at offset 0x1 works only for zImage, but not for Image, because the kernel expect the start of decompressed kernel (.head.text) to be at an address that's a distance that's 16MB aligned from PAGE_OFFSET +

[Qemu-devel] [PATCH v3] QemuOpt: add unit tests

2014-03-25 Thread Leandro Dorileo
Cover basic aspects and API usage for QemuOpt. The current implementation covers the API's planned to be changed by Chunyan Liu in his QEMUOptionParameter replacement/cleanup job. Other APIs should be covered in future improvements. Signed-off-by: Leandro Dorileo l...@dorileo.org Reviewed-by:

[Qemu-devel] [PATCH v3] QemuOpt: add unit tests

2014-03-25 Thread Leandro Dorileo
Cover basic aspects and API usage for QemuOpt. The current implementation covers the API's planned to be changed by Chunyan Liu in his QEMUOptionParameter replacement/cleanup job. Other APIs should be covered in future improvements. Signed-off-by: Leandro Dorileo l...@dorileo.org Reviewed-by:

[Qemu-devel] [PATCH v3] QemuOpt: add unit tests

2014-03-25 Thread Leandro Dorileo
Cover basic aspects and API usage for QemuOpt. The current implementation covers the API's planned to be changed by Chunyan Liu in his QEMUOptionParameter replacement/cleanup job. Other APIs should be covered in future improvements. Signed-off-by: Leandro Dorileo l...@dorileo.org Reviewed-by:

Re: [Qemu-devel] [PATCH] QEMU: ARM: boot: Load kernel at an Image friendly address

2014-03-25 Thread Joel Fernandes
On 03/25/2014 08:13 AM, Peter Maydell wrote: On 25 March 2014 03:34, Joel Fernandes jo...@ti.com wrote: Loading kernel at offset 0x1 works only for zImage, but not for Image, because the kernel expect the start of decompressed kernel (.head.text) to be at an address that's a distance

[Qemu-devel] [PATCH for-2.0] target-mips: fix MTHC1 and MFHC1 when FPU in FR=0 mode

2014-03-25 Thread Petar Jovanovic
From: Petar Jovanovic petar.jovano...@imgtec.com Previous implementation presumed that FPU registers are 64-bit and are working in 64-bit mode. This change first checks MIPS_HFLAG_F64 and if not set, it does load/store from the odd numbered register pair. Patch by Matthew Fortune. Signed-off-by:

[Qemu-devel] How to emulate a new device in qemu

2014-03-25 Thread Hafiz Shafiq
Brother I found you mail id from here http://blog.vmsplice.net/2011/03/qemu-internals-overall-architecture-and.html I have to understand how qemu emulate diferent devices ( in linux). Can you help me how to add a new device in qemu. ( how to emulate a new device ). I am a beginner in this world

[Qemu-devel] [PATCH 1/1] virtio-blk: Use a req pool instead of malloc/free

2014-03-25 Thread Li, Zhen-Hua
From: Li, ZhenHua zhen-h...@hp.com In virtio-blk module, when there is new request, new req structure will be created by malloc. Use a req pool instead of this, will increase performance; Increacement: about 5% to 10%. Signed-off-by: Li, ZhenHua zhen-h...@hp.com --- hw/block/virtio-blk.c |

Re: [Qemu-devel] aarch64: -device virtio-scsi-device, id=scsi: No 'virtio-bus' bus found for device 'virtio-scsi-device'

2014-03-25 Thread Paolo Bonzini
Il 25/03/2014 14:30, Richard W.M. Jones ha scritto: Does anyone have any thoughts on what I'm missing / doing wrong here? [00616ms] /home/remote/rjones/d/qemu/aarch64-softmmu/qemu-system-aarch64 \ -global virtio-blk-device.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \

Re: [Qemu-devel] aarch64: -device virtio-scsi-device, id=scsi: No 'virtio-bus' bus found for device 'virtio-scsi-device'

2014-03-25 Thread Peter Maydell
On 25 March 2014 13:53, Paolo Bonzini pbonz...@redhat.com wrote: Probably you're missing -M (such as -M virt)? Yes, default for qemu-system-aarch64 is integratorcp, which even stupider than having that be the default for qemu-system-arm. For 2.1 when the system emulation stuff actually lands I

Re: [Qemu-devel] please release qemu version 1.7.1

2014-03-25 Thread Michael Roth
Quoting Stefan Hajnoczi (2014-03-25 07:38:38) On Mon, Mar 24, 2014 at 10:59:42PM +0100, Laszlo Ersek wrote: On 03/24/14 22:50, Andreas Färber wrote: Laszlo, Am 24.03.2014 20:23, schrieb Laszlo Ersek: http://wiki.qemu.org/Planning/1.7 Thank you. Laszlo Since you're

Re: [Qemu-devel] please release qemu version 1.7.1

2014-03-25 Thread Anthony Liguori
On Tue, Mar 25, 2014 at 7:13 AM, Michael Roth mdr...@linux.vnet.ibm.com wrote: Quoting Stefan Hajnoczi (2014-03-25 07:38:38) On Mon, Mar 24, 2014 at 10:59:42PM +0100, Laszlo Ersek wrote: On 03/24/14 22:50, Andreas Färber wrote: Laszlo, Am 24.03.2014 20:23, schrieb Laszlo Ersek:

Re: [Qemu-devel] [PATCH] trace: teach lttng backend to use format strings

2014-03-25 Thread Alex Bennée
Stefan Hajnoczi stefa...@redhat.com writes: On Mon, Mar 24, 2014 at 05:04:54PM +, alex.ben...@linaro.org wrote: From: Alex Bennée alex.ben...@linaro.org This makes the UST backend pay attention to the format string arguments that are defined when defining payload data. With this you

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.7.1 Stable released

2014-03-25 Thread Michael Roth
Quoting Michael Roth (2014-03-25 09:44:01) Hi everyone, I am pleased to announce that the QEMU v1.7.1 stable release is now available at: http://wiki.qemu.org/download/qemu-1.7.1.tar.bz2 v1.7.1 is now tagged in the official qemu.git repository, and the stable-1.7 branch has been

Re: [Qemu-devel] [PATCH] QEMU: ARM: boot: Load kernel at an Image friendly address

2014-03-25 Thread Joel Fernandes
On Tue, Mar 25, 2014 at 7:29 AM, Christopher Covington c...@codeaurora.org wrote: Hi Joel, On 03/24/2014 11:34 PM, Joel Fernandes wrote: Loading kernel at offset 0x1 works only for zImage, but not for Image, because the kernel expect the start of decompressed kernel (.head.text) to be

[Qemu-devel] [PULL for-2.0 0/5] Block patches

2014-03-25 Thread Stefan Hajnoczi
The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140324' into staging (2014-03-24 19:25:09 +) are available in the git repository at: g...@github.com:stefanha/qemu.git

[Qemu-devel] aarch64: -device virtio-scsi-device, id=scsi: No 'virtio-bus' bus found for device 'virtio-scsi-device'

2014-03-25 Thread Richard W.M. Jones
Does anyone have any thoughts on what I'm missing / doing wrong here? [00616ms] /home/remote/rjones/d/qemu/aarch64-softmmu/qemu-system-aarch64 \ -global virtio-blk-device.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -machine accel=kvm:tcg \ -m

[Qemu-devel] [PATCH 0/5] remove QEMUMachine indirection from MachineClass

2014-03-25 Thread Marcel Apfelbaum
This is a continuation of 'QEMU Machine as QOM object' effort. The scope of this series is to allow machine QOM-ification of all machines gradually, by removing the need for QEMUMachine registration through vl.c . Now we will have 2 paths: 1. Non QOM-ified machines will be converted to QOM on

[Qemu-devel] [PATCH 1/5] hw/boards.h: add QEMUMachine's fields to MachineClass

2014-03-25 Thread Marcel Apfelbaum
In order to eliminate the QEMUMachine indirection, add its fields directly to MachineClass. Do not remove yet qemu_machine field because it is in use already by sparpr. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- include/hw/boards.h | 23 +++ 1 file changed, 23

[Qemu-devel] [PULL for-2.0 5/5] mirror: fix early wake from sleep due to aio

2014-03-25 Thread Stefan Hajnoczi
The mirror blockjob coroutine rate-limits itself by sleeping. The coroutine also performs I/O asynchronously so it's important that the aio callback doesn't wake the coroutine early as that breaks rate-limiting. Reported-by: Joaquim Barrera jbarr...@ac.upc.edu Signed-off-by: Stefan Hajnoczi

[Qemu-devel] [PULL for-2.0 4/5] mirror: fix throttling delay calculation

2014-03-25 Thread Stefan Hajnoczi
From: Paolo Bonzini pbonz...@redhat.com The throttling delay calculation was using an inaccurate sector count to calculate the time to sleep. This broke rate-limiting for the block mirror job. Move the delay calculation into mirror_iteration() where we know how many sectors were transferred.

[Qemu-devel] [PATCH 2/5] machine: remove QEMUMachine indirection from MachineClass

2014-03-25 Thread Marcel Apfelbaum
No need to go through qemu_machine field. Use MachineClass fields directly. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- device-hotplug.c | 2 +- qmp.c| 4 +-- vl.c | 103 --- 3 files changed, 63

[Qemu-devel] [PULL for-2.0 1/5] osdep: initialize glib threads in all QEMU tools

2014-03-25 Thread Stefan Hajnoczi
glib versions prior to 2.31.0 require an explicit g_thread_init() call to enable multi-threading. Failure to initialize threading causes glib to take single-threaded code paths without synchronization. For example, the g_slice allocator will crash due to race conditions. Fix this for all QEMU

[Qemu-devel] [PULL for-2.0 0/5] Block patches

2014-03-25 Thread Stefan Hajnoczi
The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140324' into staging (2014-03-24 19:25:09 +) are available in the git repository at: g...@github.com:stefanha/qemu.git

Re: [Qemu-devel] please release qemu version 1.7.1

2014-03-25 Thread Andreas Färber
Anthony, Am 25.03.2014 15:16, schrieb Anthony Liguori: On Tue, Mar 25, 2014 at 7:13 AM, Michael Roth mdr...@linux.vnet.ibm.com wrote: Quoting Stefan Hajnoczi (2014-03-25 07:38:38) On Mon, Mar 24, 2014 at 10:59:42PM +0100, Laszlo Ersek wrote: On 03/24/14 22:50, Andreas Färber wrote: Laszlo,

[Qemu-devel] [PATCH v3 for 2.0] virtio-net: add vlan receive state to RxFilterInfo

2014-03-25 Thread Amos Kong
Stefan Fritsch just fixed a virtio-net driver bug [1], virtio-net won't filter out VLAN-tagged packets if VIRTIO_NET_F_CTRL_VLAN isn't negotiated. This patch added a new field to @RxFilterInfo to indicate vlan receive state ('normal', 'none', 'all'). If VIRTIO_NET_F_CTRL_VLAN isn't negotiated,

[Qemu-devel] [PULL for-2.0 2/5] qemu-img: mandate argument to 'qemu-img check --repair'

2014-03-25 Thread Stefan Hajnoczi
From: Prasad Joshi prasadjoshi.li...@gmail.com qemu-img check --repair option accepts an argument. The argument to --repair switch can either be 'all' or 'leak'. Fix the long option to mandate argument with --repair switch. The patch fixes following segmentation fault Core was generated by

[Qemu-devel] [ANNOUNCE] QEMU 1.7.1 Stable released

2014-03-25 Thread Michael Roth
Hi everyone, I am pleased to announce that the QEMU v1.7.1 stable release is now available at: http://wiki.qemu.org/download/qemu-1.7.1.tar.bz2 v1.7.1 is now tagged in the official qemu.git repository, and the stable-1.7 branch has been updated accordingly:

Re: [Qemu-devel] [PULL for-2.0 0/5] Block patches

2014-03-25 Thread Peter Maydell
On 25 March 2014 15:24, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Mar 25, 2014 at 3:51 PM, Stefan Hajnoczi stefa...@redhat.com wrote: The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch

[Qemu-devel] [PATCH resend 2/3] xen: move Xen HVM files under hw/i386/xen

2014-03-25 Thread Wei Liu
Signed-off-by: Wei Liu wei.l...@citrix.com --- hw/i386/Makefile.objs |2 +- hw/i386/xen/Makefile.objs |1 + hw/i386/xen/xen_apic.c | 97 ++ hw/i386/xen/xen_platform.c | 450 hw/i386/xen/xen_pvdevice.c | 135 +

[Qemu-devel] [RFC PATCH v2 00/12] Reverse execution.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Hi everybody, This is the second version of this RFC (see the changes below). Those are the two first patch-set we have been worked on for reverse execution. The first series: icount: put icount variables into TimerState. migration: migrate

[Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechanism.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces the basic reverse-execution mechanism. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- Makefile.target | 1 + cpus.c | 6 + include/reverse-execution.h | 41 ++

[Qemu-devel] [RFC PATCH v2 02/12] migration: migrate icount fields.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes a bug where qemu_icount and qemu_icount_bias are not migrated. It adds a subsection timer/icount to vmstate_timers so icount is migrated only when needed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 28

[Qemu-devel] [RFC PATCH v2 04/12] icount: introduce icount timer.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 19 --- include/qemu/timer.h | 9 -

Re: [Qemu-devel] aarch64: -device virtio-scsi-device, id=scsi: No 'virtio-bus' bus found for device 'virtio-scsi-device'

2014-03-25 Thread Richard W.M. Jones
On Tue, Mar 25, 2014 at 02:53:19PM +0100, Paolo Bonzini wrote: Il 25/03/2014 14:30, Richard W.M. Jones ha scritto: Does anyone have any thoughts on what I'm missing / doing wrong here? [00616ms] /home/remote/rjones/d/qemu/aarch64-softmmu/qemu-system-aarch64 \ -global

[Qemu-devel] [RFC PATCH v2 03/12] migration: make qemu_savevm_state public.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- include/sysemu/sysemu.h | 1 + savevm.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [RFC PATCH v2 05/12] icount: check for icount clock deadline when cpu loop exits.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index

Re: [Qemu-devel] [PULL for-2.0 0/5] Block patches

2014-03-25 Thread Stefan Hajnoczi
On Tue, Mar 25, 2014 at 3:51 PM, Stefan Hajnoczi stefa...@redhat.com wrote: The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140324' into staging (2014-03-24 19:25:09 +) are available

Re: [Qemu-devel] [PATCH resend 0/3] QEMU/Xen: disentangle PV and HVM in QEMU

2014-03-25 Thread Wei Liu
On Tue, Mar 25, 2014 at 05:22:08PM +0100, Paolo Bonzini wrote: Il 25/03/2014 16:59, Wei Liu ha scritto: This small series disentangles Xen-specific files in QEMU. PV and HVM guests related files are moved to corresponding locations. Build system is updated to reflect those changes. This

[Qemu-devel] [PATCH] target-arm: add support for v8 SHA1 and SHA256 instructions

2014-03-25 Thread Ard Biesheuvel
This adds support for the SHA1 and SHA256 instructions that are available on some v8 implementations of Aarch32. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- target-arm/cpu.c | 2 + target-arm/cpu.h | 2 + target-arm/crypto_helper.c | 257

Re: [Qemu-devel] [PATCH resend 0/3] QEMU/Xen: disentangle PV and HVM in QEMU

2014-03-25 Thread Paolo Bonzini
Il 25/03/2014 16:59, Wei Liu ha scritto: This small series disentangles Xen-specific files in QEMU. PV and HVM guests related files are moved to corresponding locations. Build system is updated to reflect those changes. This series was sent back in Jan but fell through the crack. It is now

[Qemu-devel] [PULL for-2.0 1/1] net: netmap_poll must update both read/write poll state

2014-03-25 Thread Stefan Hajnoczi
From: Prasad Joshi prasadjoshi.li...@gmail.com Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- net/netmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netmap.c b/net/netmap.c index 8213304..0c1772b

[Qemu-devel] [RFC PATCH v2 01/12] icount: put icount variables into TimerState.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 29

Re: [Qemu-devel] [PATCH resend 0/3] QEMU/Xen: disentangle PV and HVM in QEMU

2014-03-25 Thread Stefano Stabellini
On Tue, 25 Mar 2014, Paolo Bonzini wrote: Il 25/03/2014 17:40, Stefano Stabellini ha scritto: Oops, sorry. I did this for first series but forgot about it when resending. Updated diff stat attached. Much better, thanks. The patches are fine by me. Paolo, if you are OK with

[Qemu-devel] [RFC PATCH v2 07/12] timer: add cpu_icount_to_ns function.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds cpu_icount_to_ns function which is needed for reverse execution. It returns the time for a specific instruction. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c

[Qemu-devel] [PULL for-2.0 0/1] Net patches

2014-03-25 Thread Stefan Hajnoczi
The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140324' into staging (2014-03-24 19:25:09 +) are available in the git repository at: git://github.com/stefanha/qemu.git

[Qemu-devel] [RFC PATCH v2 11/12] cexe: synchronize icount on the next event.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We don't want to warp on host clock as it is not deterministic for replay. So this patch warp icount on the next QEMU_VIRTUAL_CLOCK event if reverse execution is enabled. The normal behaviour is kept when reverse execution is disabled.

Re: [Qemu-devel] [PATCH] target-arm: add support for v8 SHA1 and SHA256 instructions

2014-03-25 Thread Andreas Färber
Am 25.03.2014 17:27, schrieb Ard Biesheuvel: This adds support for the SHA1 and SHA256 instructions that are available on some v8 implementations of Aarch32. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- target-arm/cpu.c | 2 + target-arm/cpu.h | 2 +

Re: [Qemu-devel] [PATCH v3 for 2.0] virtio-net: add vlan receive state to RxFilterInfo

2014-03-25 Thread Eric Blake
On 03/25/2014 09:40 AM, Amos Kong wrote: Stefan Fritsch just fixed a virtio-net driver bug [1], virtio-net won't filter out VLAN-tagged packets if VIRTIO_NET_F_CTRL_VLAN isn't negotiated. This patch added a new field to @RxFilterInfo to indicate vlan receive state ('normal', 'none', 'all').

Re: [Qemu-devel] [PATCH] target-arm: add support for v8 SHA1 and SHA256 instructions

2014-03-25 Thread Peter Maydell
On 25 March 2014 16:46, Andreas Färber afaer...@suse.de wrote: Am 25.03.2014 17:27, schrieb Ard Biesheuvel: @@ -630,6 +630,8 @@ enum arm_features { ARM_FEATURE_V8_AES, /* implements AES part of v8 Crypto Extensions */ ARM_FEATURE_CBAR, /* has cp15 CBAR */ ARM_FEATURE_CRC, /*

Re: [Qemu-devel] [PATCH] target-arm: add support for v8 SHA1 and SHA256 instructions

2014-03-25 Thread Peter Maydell
On 25 March 2014 17:18, Peter Maydell peter.mayd...@linaro.org wrote: On 25 March 2014 16:46, Andreas Färber afaer...@suse.de wrote: Am 25.03.2014 17:27, schrieb Ard Biesheuvel: @@ -630,6 +630,8 @@ enum arm_features { ARM_FEATURE_V8_AES, /* implements AES part of v8 Crypto Extensions */

[Qemu-devel] [RFC PATCH v2 10/12] cpu-exec: trigger a debug request when rexec stops.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index

Re: [Qemu-devel] [PATCH resend 0/3] QEMU/Xen: disentangle PV and HVM in QEMU

2014-03-25 Thread Stefano Stabellini
On Tue, 25 Mar 2014, Wei Liu wrote: On Tue, Mar 25, 2014 at 05:22:08PM +0100, Paolo Bonzini wrote: Il 25/03/2014 16:59, Wei Liu ha scritto: This small series disentangles Xen-specific files in QEMU. PV and HVM guests related files are moved to corresponding locations. Build system is

[Qemu-devel] [PULL for-2.0 3/5] Fixed various typos

2014-03-25 Thread Stefan Hajnoczi
From: Deepak Kathayat deepak.m...@gmail.com Signed-off-by: Deepak Kathayat deepak.m...@gmail.com Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/gluster.c | 2 +- block/qcow.c | 2 +- block/sheepdog.c | 8 block/vdi.c |

[Qemu-devel] [PATCH resend 0/3] QEMU/Xen: disentangle PV and HVM in QEMU

2014-03-25 Thread Wei Liu
This small series disentangles Xen-specific files in QEMU. PV and HVM guests related files are moved to corresponding locations. Build system is updated to reflect those changes. This series was sent back in Jan but fell through the crack. It is now rebased on current QEMU master and tested with

[Qemu-devel] [RFC PATCH v2 09/12] gdbstub: allow reverse execution in gdb stub.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows gdb to reverse step QEMU: reverse-stepi and reverse-cont commands are allowed. When step_backward is called, QEMU restores a snapshot before the actual instruction and stops (with a debug exit) when the previous instruction is reached.

[Qemu-devel] [PATCH resend 1/3] xen: move Xen PV machine files to hw/xenpv

2014-03-25 Thread Wei Liu
Signed-off-by: Wei Liu wei.l...@citrix.com --- hw/i386/Makefile.objs |2 +- hw/i386/xen_domainbuild.c | 299 hw/i386/xen_domainbuild.h | 13 -- hw/i386/xen_machine_pv.c | 109 hw/xenpv/Makefile.objs |2 +

Re: [Qemu-devel] [PATCH RFT for-2.0-rc1] make-release: Record SeaBIOS version

2014-03-25 Thread Andreas Färber
Am 20.03.2014 09:04, schrieb Gerd Hoffmann: +(cd roms/seabios git describe --tags --long --dirty .version) rm -rf .git roms/*/.git dtc/.git pixman/.git Looks good. Mimics what roms/seabios/scripts/buildversion.sh is doing in case .git is present. Reviewed-by: Gerd Hoffmann

[Qemu-devel] [RFC PATCH v2 06/12] icount: make icount extra computed on icount clock as well.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This takes icount clock in account for icount extra computation so icount clock's timers will be triggered at the exact time. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 10

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.7.1 Stable released

2014-03-25 Thread Laszlo Ersek
On 03/25/14 15:44, Michael Roth wrote: Hi everyone, I am pleased to announce that the QEMU v1.7.1 stable release is now available at: http://wiki.qemu.org/download/qemu-1.7.1.tar.bz2 v1.7.1 is now tagged in the official qemu.git repository, and the stable-1.7 branch has been updated

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.7.1 Stable released

2014-03-25 Thread Andreas Färber
Am 25.03.2014 15:44, schrieb Michael Roth: Hi everyone, I am pleased to announce that the QEMU v1.7.1 stable release is now available at: http://wiki.qemu.org/download/qemu-1.7.1.tar.bz2 Like v2.0.0-rc0 this is lacking a roms/seabios/.version file, i.e. the unpatched make-release script

[Qemu-devel] [PULL for-2.0 1/5] osdep: initialize glib threads in all QEMU tools

2014-03-25 Thread Stefan Hajnoczi
glib versions prior to 2.31.0 require an explicit g_thread_init() call to enable multi-threading. Failure to initialize threading causes glib to take single-threaded code paths without synchronization. For example, the g_slice allocator will crash due to race conditions. Fix this for all QEMU

Re: [Qemu-devel] [PATCH v23 00/32] replace QEMUOptionParameter with QemuOpts

2014-03-25 Thread Leandro Dorileo
On Fri, Mar 21, 2014 at 06:12:11PM +0800, Chunyan Liu wrote: This patch series is to replace QEMUOptionParameter with QemuOpts, so that only one Qemu Option structure is kept in QEMU code. --- Changes to v21: * Move find_desc_by_name and qemu_opt_del functions ahead in separate

Re: [Qemu-devel] [PATCH v4 5/7] allwinner-a10-pit: implement prescaler and source selection

2014-03-25 Thread Beniamino Galvani
On Tue, Mar 25, 2014 at 09:49:21AM +1000, Peter Crosthwaite wrote: On Fri, Mar 21, 2014 at 7:25 AM, Beniamino Galvani b.galv...@gmail.com wrote: This implements the prescaler and source fields of the timer control register. The source for each timer can be selected among 4 clock inputs

Re: [Qemu-devel] [PATCH v23 31/32] cleanup QEMUOptionParameter

2014-03-25 Thread Leandro Dorileo
On Fri, Mar 21, 2014 at 06:12:42PM +0800, Chunyan Liu wrote: Now that all backend drivers are using QemuOpts, remove all QEMUOptionParameter related codes. Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com Signed-off-by: Chunyan Liu cy...@suse.com --- block.c | 85

[Qemu-devel] [RFC PATCH v2 12/12] cexe: allow to enable reverse execution.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This creates QEMU options for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- qemu-options.hx | 9 + vl.c| 16 2 files changed, 25 insertions(+) diff --git a/qemu-options.hx

[Qemu-devel] [PATCH v5 0/7] Allwinner A10 fixes

2014-03-25 Thread Beniamino Galvani
This series introduces some fixes and missing features found while trying to run mainline Linux kernel on emulated Allwinner A10. The changes concern interrupt handling, timer and ethernet MAC. With these applied I'm able to boot Linux 3.14-rc2 using a NFS root:

[Qemu-devel] [PATCH v5 7/7] allwinner-emac: update irq status after writes to interrupt registers

2014-03-25 Thread Beniamino Galvani
The irq line status must be updated after writes to the INT_CTL and INT_STA registers. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/allwinner_emac.c |2 ++ 1 file changed, 2 insertions(+) diff --git

[Qemu-devel] [PATCH v5 1/7] allwinner-a10-pic: set vector address when an interrupt is pending

2014-03-25 Thread Beniamino Galvani
This patch implements proper updating of the vector register which should hold, according to the A10 user manual, the vector address for the interrupt currently active on the CPU IRQ input. Interrupt priority is not implemented at the moment and thus the first pending interrupt is returned.

[Qemu-devel] [PATCH v5 4/7] allwinner-a10-pit: use level triggered interrupts

2014-03-25 Thread Beniamino Galvani
Convert the interrupt generation logic to the use of level triggered interrupts. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/timer/allwinner-a10-pit.c | 15 ++- 1 file changed, 14 insertions(+), 1

[Qemu-devel] [PATCH v5 2/7] allwinner-a10-pic: fix behaviour of pending register

2014-03-25 Thread Beniamino Galvani
The pending register is read-only and the value returned upon a read reflects the state of irq input pins (interrupts are level triggered). This patch implements such behaviour. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Li Guang lig.f...@cn.fujitsu.com Reviewed-by: Peter

[Qemu-devel] [PATCH v5 3/7] allwinner-a10-pit: avoid generation of spurious interrupts

2014-03-25 Thread Beniamino Galvani
The model was generating interrupts for all enabled timers after the expiration of one of them. Avoid this by passing explicitly the timer index to the callback function. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Li Guang lig.f...@cn.fujitsu.com Reviewed-by: Peter

[Qemu-devel] [PATCH v5 5/7] allwinner-a10-pit: implement prescaler and source selection

2014-03-25 Thread Beniamino Galvani
This implements the prescaler and source fields of the timer control register. The source for each timer can be selected among 4 clock inputs whose frequencies are set through model properties. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Peter Crosthwaite

[Qemu-devel] [PATCH v5 6/7] allwinner-emac: set autonegotiation complete bit on link up

2014-03-25 Thread Beniamino Galvani
Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/allwinner_emac.c |4 ++-- include/hw/net/allwinner_emac.h |1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/net/allwinner_emac.c

[Qemu-devel] [PULL 0/2] vfio pull for QEMU 2.0

2014-03-25 Thread Alex Williamson
Peter Anthony, The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140324' into staging (2014-03-24 19:25:09 +) are available in the git repository at:

[Qemu-devel] [PATCH 4/5] hw/ppc: remove QEMUMachine indirection

2014-03-25 Thread Marcel Apfelbaum
No need for QEMUMachine anymore because its fields are passed to MachineClass. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- hw/ppc/spapr.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index

[Qemu-devel] [PATCH 5/5] vl.c: Remove QEMUMachine usage

2014-03-25 Thread Marcel Apfelbaum
All the references of QEMUMachine are already replaced by MachineClass. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- include/hw/boards.h | 7 +++ vl.c| 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/hw/boards.h b/include/hw/boards.h

Re: [Qemu-devel] [PULL for-2.0 0/1] Net patches

2014-03-25 Thread Peter Maydell
On 25 March 2014 16:34, Stefan Hajnoczi stefa...@redhat.com wrote: The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140324' into staging (2014-03-24 19:25:09 +) are available in the git

[Qemu-devel] [PULL 2/2] vfio: Cosmetic error reporting fixes

2014-03-25 Thread Alex Williamson
* Remove terminating newlines from hw_error() and error_report() calls * Fix cut-n-paste error in text (s/to/from/) Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[Qemu-devel] [PATCH 5/5] vl.c: Remove QEMUMachine usage

2014-03-25 Thread Marcel Apfelbaum
All the references of QEMUMachine are already replaced by MachineClass. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- include/hw/boards.h | 7 +++ vl.c| 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/hw/boards.h b/include/hw/boards.h

Re: [Qemu-devel] [PATCH 4/5] hw/ppc: remove QEMUMachine indirection

2014-03-25 Thread Paolo Bonzini
Il 25/03/2014 14:46, Marcel Apfelbaum ha scritto: +mc-name = pseries, +mc-desc = pSeries Logical Partition (PAPR compliant), +mc-is_default = 1, +mc-init = ppc_spapr_init, +mc-reset = ppc_spapr_reset, +mc-block_default_type = IF_SCSI, +mc-max_cpus = MAX_CPUS, +

[Qemu-devel] [PATCH 3/5] machine: replace QEMUMachine by MachineClass in accelerator configuration

2014-03-25 Thread Marcel Apfelbaum
This minimizes QEMUMachine usage, as part of machine QOM-ification. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- include/hw/xen/xen.h| 2 +- include/qemu/typedefs.h | 1 + include/sysemu/kvm.h| 2 +- include/sysemu/qtest.h | 2 +- kvm-all.c | 6 +++---

[Qemu-devel] [PATCH 4/5] hw/ppc: remove QEMUMachine indirection

2014-03-25 Thread Marcel Apfelbaum
No need for QEMUMachine anymore because its fields are passed to MachineClass. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- hw/ppc/spapr.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index

[Qemu-devel] [PATCH 1/5] hw/boards.h: add QEMUMachine's fields to MachineClass

2014-03-25 Thread Marcel Apfelbaum
In order to eliminate the QEMUMachine indirection, add its fields directly to MachineClass. Do not remove yet qemu_machine field because it is in use already by sparpr. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- include/hw/boards.h | 23 +++ 1 file changed, 23

[Qemu-devel] [PULL for-2.0 2/5] qemu-img: mandate argument to 'qemu-img check --repair'

2014-03-25 Thread Stefan Hajnoczi
From: Prasad Joshi prasadjoshi.li...@gmail.com qemu-img check --repair option accepts an argument. The argument to --repair switch can either be 'all' or 'leak'. Fix the long option to mandate argument with --repair switch. The patch fixes following segmentation fault Core was generated by

[Qemu-devel] [PULL for-2.0 3/5] Fixed various typos

2014-03-25 Thread Stefan Hajnoczi
From: Deepak Kathayat deepak.m...@gmail.com Signed-off-by: Deepak Kathayat deepak.m...@gmail.com Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/gluster.c | 2 +- block/qcow.c | 2 +- block/sheepdog.c | 8 block/vdi.c |

Re: [Qemu-devel] aarch64: -device virtio-scsi-device, id=scsi: No 'virtio-bus' bus found for device 'virtio-scsi-device'

2014-03-25 Thread Paolo Bonzini
Il 25/03/2014 15:04, Peter Maydell ha scritto: Yes, default for qemu-system-aarch64 is integratorcp, which even stupider than having that be the default for qemu-system-arm. For 2.1 when the system emulation stuff actually lands I think I'll just remove the default and force users to specify a

Re: [Qemu-devel] aarch64: -device virtio-scsi-device, id=scsi: No 'virtio-bus' bus found for device 'virtio-scsi-device'

2014-03-25 Thread Peter Maydell
On 25 March 2014 14:13, Paolo Bonzini pbonz...@redhat.com wrote: Il 25/03/2014 15:04, Peter Maydell ha scritto: Yes, default for qemu-system-aarch64 is integratorcp, which even stupider than having that be the default for qemu-system-arm. For 2.1 when the system emulation stuff actually

Re: [Qemu-devel] [PATCH v23 04/32] change opt-name and opt-str from (const char *) to (char *)

2014-03-25 Thread Leandro Dorileo
On Fri, Mar 21, 2014 at 06:12:15PM +0800, Chunyan Liu wrote: Signed-off-by: Chunyan Liu cy...@suse.com --- include/qemu/option_int.h | 4 ++-- qapi/opts-visitor.c | 10 +++--- util/qemu-option.c| 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PULL 1/2] vfio: Correction in vfio_rom_read when attempting rom loading

2014-03-25 Thread Alex Williamson
From: Bandan Das b...@redhat.com commit e638073c569e801ce9de added a flag to track whether a previous rom read had failed. Accidentally, the code ended up adding vfio_load_option_rom twice. (Thanks to Alex for spotting it) Signed-off-by: Bandan Das b...@redhat.com Signed-off-by: Alex Williamson

Re: [Qemu-devel] [PATCH v23 07/32] add qemu_opts_print_help to replace print_option_help

2014-03-25 Thread Leandro Dorileo
On Fri, Mar 21, 2014 at 06:12:18PM +0800, Chunyan Liu wrote: print_option_help takes QEMUOptionParameter as parameter, add qemu_opts_print_help to take QemuOptsList as parameter for later replace work. Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com Signed-off-by: Chunyan Liu

Re: [Qemu-devel] [V2 PATCH] target-ppc: Bug: VSX Convert to Integer Should Truncate

2014-03-25 Thread Peter Maydell
On 23 March 2014 21:52, Tom Musta tommu...@gmail.com wrote: The various VSX Convert to Integer instructions should truncate the mantissa. This fix forces the softfloat rounding mode to round to zero prior to performing the conversion. After the conversion is completed, the internal rounding

Re: [Qemu-devel] [PULL 0/2] vfio pull for QEMU 2.0

2014-03-25 Thread Peter Maydell
On 25 March 2014 18:30, Alex Williamson alex.william...@redhat.com wrote: Peter Anthony, The following changes since commit 839a5547574e57cce62f49bfc50fe1f04b00589a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140324' into staging (2014-03-24 19:25:09 +)

Re: [Qemu-devel] [PATCH v23 09/32] add qemu_opts_append to repalce append_option_parameters

2014-03-25 Thread Leandro Dorileo
On Fri, Mar 21, 2014 at 06:12:20PM +0800, Chunyan Liu wrote: For later merge .create_opts of drv and proto_drv in qemu-img commands. Signed-off-by: Chunyan Liu cy...@suse.com Reviewed-by: Leandro Dorileo l...@dorileo.org --- Changes: * Following Eric's suggestion, qemu_opts_append()

  1   2   >