[Qemu-devel] [PATCH 2/2] Add QEMU_NORETURN to function cpu_io_recompile

2012-04-06 Thread Stefan Weil
cpu_io_recompile terminates by calling either cpu_abort or cpu_resume_from_signal which both never return. Signed-off-by: Stefan Weil --- exec-all.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/exec-all.h b/exec-all.h index cd283dd..526e65c 100644 --- a/exec-all.h ++

[Qemu-devel] [PATCH 1/2] Add QEMU_NORETURN to function cpu_resume_from_signal

2012-04-06 Thread Stefan Weil
cpu_resume_from_signal terminates by calling longjmp. Signed-off-by: Stefan Weil --- exec-all.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/exec-all.h b/exec-all.h index 93a5b22..cd283dd 100644 --- a/exec-all.h +++ b/exec-all.h @@ -86,7 +86,7 @@ int cpu_gen_code(CPU

Re: [Qemu-devel] [RFC PATCH v1 1/4] SPI: initial support

2012-04-06 Thread Peter Crosthwaite
On Thu, Apr 5, 2012 at 5:18 PM, Peter Maydell wrote: > > I'm not sure what you intend the tristate masks to be used for? > If the sending device puts the line into high-impedance presumably > the receiving device is just going to read something random which > it's supposed to ignore, so the sender

[Qemu-devel] [PATCH V9 1/1] Guest stop notification

2012-04-06 Thread Raghavendra K T
From: Eric B Munson Often when a guest is stopped from the qemu console, it will report spurious soft lockup warnings on resume. There are kernel patches being discussed that will give the host the ability to tell the guest that it is being stopped and should ignore the soft lockup warning that

Re: [Qemu-devel] [PATCH V8 1/1] Guest stop notificationorry for rduplicate mail ndreas

2012-04-06 Thread Raghavendra K T
On 04/07/2012 02:39 AM, Andreas Färber wrote: Am 06.04.2012 15:01, schrieb Raghavendra K T: On 04/06/2012 03:19 PM, Raghavendra K T wrote: On 04/06/2012 02:29 PM, Andreas Färber wrote: Am 06.04.2012 09:21, schrieb Raghavendra K T: From: Eric B Munson Often when a guest is stopped from the qe

Re: [Qemu-devel] [PATCH V8 1/1] Guest stop notificationorry for rduplicate mail

2012-04-06 Thread Andreas Färber
Am 06.04.2012 15:01, schrieb Raghavendra K T: > On 04/06/2012 03:19 PM, Raghavendra K T wrote: >> On 04/06/2012 02:29 PM, Andreas Färber wrote: >>> Am 06.04.2012 09:21, schrieb Raghavendra K T: From: Eric B Munson Often when a guest is stopped from the qemu console, it will report >>

[Qemu-devel] [PATCH 15/17] arm-linux-user: fix elfload.c's AT_HWCAP to reflect cpu features.

2012-04-06 Thread riku . voipio
From: Benoit Canet The cpu capabilities passed by the elf loader in AT_HWCAP where a constant. Make AT_HWCAP reflect the emulated cpu features in order to give correct clues to eglibc. Riku Voipio: fixed to apply to current head Fix : [Bug 887516] [NEW] VFP support reported for the PXA270 Sig

[Qemu-devel] [PATCH 02/17] linux-user: target_argv is placed on ts->bprm->argv and can't be freed()

2012-04-06 Thread riku . voipio
From: Fabio Erculiani TaskState contains linux_bprm struct which encapsulates argv among other things. argv might be used around the code and is expected to contain valid data. Before this patch, ts->bprm->argv was NULL due to it being freed right after loader_exec(). Signed-off-by: Fabio Erculi

[Qemu-devel] [PATCH 05/17] linux-user: fix BLK ioctl arguments

2012-04-06 Thread riku . voipio
From: Alexander Graf Some BLK ioctls passed sizeof(x) into a macro that already did sizeof() on the passed in argument, rendering the size information inside the ioctl be the size of the host default integer type. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/syscall

[Qemu-devel] [PATCH 03/17] linux-user: implement device mapper ioctls

2012-04-06 Thread riku . voipio
From: Alexander Graf This patch implements all ioctls currently implemented by device mapper, enabling us to run dmsetup and kpartx inside of linux-user. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/ioctls.h| 32 ++ linux-user/syscall.c | 226 ++

[Qemu-devel] [PATCH 08/17] linux-user: fix fallocate

2012-04-06 Thread riku . voipio
From: Alexander Graf Fallocate gets off_t parameters passed in, so we should also read them out accordingly. Signed-off-by: Alexander Graf --- v1 -> v2: - unbreak 64-bit guests Signed-off-by: Riku Voipio --- linux-user/syscall.c |5 + 1 files changed, 5 insertions(+), 0 deletion

[Qemu-devel] [PATCH 12/17] linux-user/syscall.c: Fix indentation in prctl handling

2012-04-06 Thread riku . voipio
From: Peter Maydell Clean up the odd indentation of this switch statement before we double its size by adding new cases to it. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions

[Qemu-devel] [PATCH 16/17] elf.h: Update EF_ARM_ constants to newer ABI versions

2012-04-06 Thread riku . voipio
From: Peter Maydell Update the EF_ARM_* constants (for the ELF header e_flags field) to include the newer flags specified for later versions of the ABI. (This set of constants is from include/elf/arm.h from binutils-2.17 and so licensed under GPL-v2-or-later.) Signed-off-by: Peter Maydell Signe

[Qemu-devel] [PATCH 10/17] linux-user: resolve reserved_va vma downwards

2012-04-06 Thread riku . voipio
From: Peter Maydell After consulting with Paul Brook, we concluded that it's best to search the VMA space downwards, so that we don't even get the chance to conflict with the brk range. This patch resolves a bunch of allocation conflicts when using -R. Signed-off-by: Alexander Graf [minor chan

[Qemu-devel] [PATCH v3 1/2] w64: Fix data type of tb_next and other variables used for host addresses

2012-04-06 Thread Stefan Weil
QEMU host addresses must use uintptr_t to be portable for hosts with an unusual size of long (w64). tb_jmp_offset is an uint16_t value, therefore the local variable offset in function tb_set_jmp_target was changed from unsigned long to uint16_t. The type cast to long in function tb_add_jump now a

Re: [Qemu-devel] [PATCH v2 1/2] w64: Fix data type of tb_next and other variables used for host addresses

2012-04-06 Thread Stefan Weil
Am 29.03.2012 22:27, schrieb Blue Swirl: On Sat, Mar 24, 2012 at 21:25, Stefan Weil wrote: QEMU host addresses must use uintptr_t to be portable for hosts with an unusual size of long (w64). tb_jmp_offset is an uint16_t value, therefore the local variable offset in function tb_set_jmp_target w

[Qemu-devel] [PATCH 01/17] linux-user: improve fake /proc/self/stat making `ps` not segfault.

2012-04-06 Thread riku . voipio
From: Fabio Erculiani With the current fake /proc/self/stat implementation `ps` is segfaulting because it expects to read PID and argv[0] as first and second field respectively, with the latter being enclosed between backets. Reproducing is as easy as running: `ps` inside qemu-user chroot with /

[Qemu-devel] [PATCH 00/17] linux-user: pending patches

2012-04-06 Thread riku . voipio
From: Riku Voipio The following patches are to sent in the pull request for linux-user. As usual, the are also available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Riku Alexander Graf (8): linux-user: implement device mapper ioctls l

[Qemu-devel] [PATCH 06/17] linux-user: add BLKSSZGET ioctl wrapper

2012-04-06 Thread riku . voipio
From: Alexander Graf This patch adds an ioctl definition for BLKSSZGET. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/ioctls.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index fd8b7bb..5b70f92 10

[Qemu-devel] [PATCHv3] PPC: Fix interrupt MSR value for classic exception models.

2012-04-06 Thread Mark Cave-Ayland
Commit 41557447d30eeb944e42069513df13585f5e6c7f introduced a new method of calculating the MSR for the interrupt context. However this doesn't quite agree with the PowerISA 2.06B specification (pp. 811-814) since too many bits were being cleared. This patch corrects the calculation of the interrup

[Qemu-devel] [PATCH 07/17] linux-user: Add ioctl for BLKBSZGET

2012-04-06 Thread riku . voipio
From: Alexander Graf This patch adds the ioctl wrapper definition for BLKBSZGET. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/ioctls.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 5b70f92..e

[Qemu-devel] [PATCH 09/17] linux-user: take RESERVED_VA into account for g2h_valid()

2012-04-06 Thread riku . voipio
From: Alexander Graf When running with -R (RESERVED_VA > 0) all guest virtual addresses are within the [0..RESERVED_VA] range. Reflect this with g2h_valid() too so we can safely check for boundaries of our guest address space. This is required to have the /proc/self/maps code not show maps that

[Qemu-devel] [PATCH 13/17] linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME

2012-04-06 Thread riku . voipio
From: Peter Maydell Add support for the prctl options PR_GET_NAME and PR_SET_NAME, which take or return a name in a 16 byte buffer pointed to by arg2. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 24 1 files changed, 24 insertio

[Qemu-devel] [PATCH 14/17] linux-user/arm/syscall_nr.h: Add syscall number for ppoll

2012-04-06 Thread riku . voipio
From: Peter Maydell The list of ARM syscall numbers was missing the entry for ppoll, which meant we were accidentally not providing it. (This wasn't causing any practical issues beyond warnings about unimplemented syscalls, because glibc will fall back to another code path if the syscall isn't pr

[Qemu-devel] [PATCH 04/17] linux-user: add struct old_dev_t compat

2012-04-06 Thread riku . voipio
From: Alexander Graf The compat LOOP_SET_STATUS ioctl uses struct old_dev_t in its passed struct. That variable type is vastly different between different architectures. Implement wrapping around it so we can use it. This fixes running arm kpartx on an x86_64 host for me. Signed-off-by: Alexand

[Qemu-devel] [PATCH] configure: Fix wrong preprocessor statement

2012-04-06 Thread Stefan Weil
#abort is not a preprocessor statement. It aborts, but the preprocessor statement #error is more common to abort a compilation. Signed-off-by: Stefan Weil --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 4b3adc9..5d5b854 100755 -

[Qemu-devel] [PATCH 17/17] Userspace ARM BE8 support

2012-04-06 Thread riku . voipio
From: Paul Brook Add support for ARM BE8 userspace binaries. i.e. big-endian data and little-endian code. In principle LE8 mode is also possible, but AFAIK has never actually been implemented/used. System emulation doesn't have any useable big-endian board models, but should in principle work on

[Qemu-devel] [PATCH 11/17] linux-user: reserve 4GB of vmem for 32-on-64

2012-04-06 Thread riku . voipio
From: Alexander Graf When running 32-on-64 bit guests, we should always reserve as much virtual memory as we possibly can for the guest process, so it can never overlap with QEMU address space. Fortunately we already have the infrastructure for that. All that's missing is some sane default value

Re: [Qemu-devel] [PATCH v4 08/10] add mirroring to transaction

2012-04-06 Thread Paolo Bonzini
> have either a mandatory 'full':'bool' or an optional '*base':'str' > for choosing how much of the backing chain to be mirrored I think '*base': 'str' is too complicated to implement at this stage. Paolo

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/2] PPC: Fix interrupt MSR value within the PPC interrupt handler.

2012-04-06 Thread Mark Cave-Ayland
On 29/03/12 20:06, Scott Wood wrote: Hrm, yeah. I think what you ought to do is to use the new logic just for the "classic" exception models. Have the default branch remain the one that just masks ME. That's wrong, but it's the same wrong as we have already, and we can fix it later once we've

[Qemu-devel] [PATCH V3 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-04-06 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall --- hw/acpi_piix4.c | 112 +- 1 files changed, 93 insertions(+), 19 deletions(-) diff --git a/

[Qemu-devel] [PATCH 28/46] qemu-img: add image fragmentation statistics

2012-04-06 Thread Kevin Wolf
From: Dong Xu Wang Discussion can be found at: http://patchwork.ozlabs.org/patch/128730/ This patch add image fragmentation statistics while using qemu-img check. Signed-off-by: Dong Xu Wang Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block.h|7 +++ qemu-img.c |

[Qemu-devel] [PATCH V2 09/10] SD card: make SD card a child of host controller

2012-04-06 Thread Igor Mitsyanko
Only for host controllers implemented as QOM object. Signed-off-by: Igor Mitsyanko --- hw/milkymist-memcard.c |1 + hw/pl181.c |1 + hw/ssi-sd.c|1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/milkymist-memcard.c b/hw/milkymist-memcard.c

Re: [Qemu-devel] [PATCH 0/5] Spread the use of QEMU threading & locking API

2012-04-06 Thread Paolo Bonzini
Il 05/04/2012 15:00, Jan Kiszka ha scritto: >> > But QemuEvent takes away the best name for a useful concept (a >> > cross-platform implementation of Win32 events; you can see that in the > The concept is not lost, it perfectly fit this incarnation. Just the > special futex version for Linux is not

[Qemu-devel] [Bug 886621] Re: Mac OS X Lion: segmentation fault

2012-04-06 Thread Alan
Having exactly the same problem here... -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/886621 Title: Mac OS X Lion: segmentation fault Status in QEMU: New Bug description: /usr/local/xeos-buil

[Qemu-devel] [PATCH v2 2/2] softfloat: roundAndPackInt{32, 64}: Don't assume int32 is 32 bits

2012-04-06 Thread Peter Maydell
Fix code in roundAndPackInt32 that assumed that int32 was only 32 bits, by simply using int32_t instead. Fix the parallel bug in roundAndPackInt64 as well, although that one is only theoretical since it's unlikely that int64 will ever be more than 64 bits. Signed-off-by: Peter Maydell --- fpu/so

Re: [Qemu-devel] [PATCH] Support system reset in Exynos4210

2012-04-06 Thread Dmitry Solodkiy
Hi Dmitry, Suggest you first get internal specifications via official routes (I have no authority to distribute it) and then propose patches which wouldn't break existing exynos4210 model. Thanks, Dmitry Solodkiy, Emulator/Kernel PL, Mobile Group, Moscow R&D center, Samsung Ele

Re: [Qemu-devel] [PATCH v4 08/10] add mirroring to transaction

2012-04-06 Thread Eric Blake
On 03/06/2012 10:56 AM, Paolo Bonzini wrote: > With it comes a new image creation mode, "no-backing-file", that can > be used to stream an image so that the destination does not need the > original image's backing file(s). > > Both bdrv_append and blkmirror will set the backing_hd on the target, >

[Qemu-devel] [PATCH 35/46] qemu-iotests: qcow2.py

2012-04-06 Thread Kevin Wolf
This adds a tool that is meant to inspect and edit qcow2 files in a low-level way, that wouldn't be possible with qemu-img/io, for example by adding yet unknown extensions or flags. This way we can test whether qemu deals properly with future backwards compatible extensions. For now, let's start w

[Qemu-devel] [PATCH V3 3/8] hw/cirrus_vga.c: replace register_ioport*

2012-04-06 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall --- hw/cirrus_vga.c | 38 ++ 1 files changed, 22 insertions(+), 16 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirru

[Qemu-devel] [PATCH 26/46] block: set job->speed in block_set_speed

2012-04-06 Thread Kevin Wolf
From: Paolo Bonzini There is no need to do this in every implementation of set_speed (even though there is only one right now). Signed-off-by: Paolo Bonzini Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block.c|8 +++- block/stream.c |1 - 2 files changed, 7

Re: [Qemu-devel] [PATCH] memory: check address space when a listener is registered

2012-04-06 Thread Julien Grall
On 04/05/2012 11:10 AM, Avi Kivity wrote: On 04/04/2012 05:15 PM, Julien Grall wrote: This patch resolves a bug in memory listener registration. "range_add" callback was called on each section of the both address space (IO and memory space) even if it doesn't match the address space filter.

[Qemu-devel] [PATCH 08/46] ide: Add "model=s" qdev option

2012-04-06 Thread Kevin Wolf
From: Floris Bos Allow the user to override the default disk model name "QEMU HARDDISK". Some Linux distributions use the /dev/disk/by-id/scsi-SATA_name-of-disk- model_serial addressing scheme when refering to partitions in /etc/fstab and elsewhere. This causes problems when starting a disk imag

[Qemu-devel] [Bug 974958] [NEW] It dumps when following this tutorial on hello world os

2012-04-06 Thread Alan
Public bug reported: http://mikeos.berlios.de/write-your-own-os.html Following the steps, it works on ubuntu, but on osx, it ALWAYS dumps. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which

[Qemu-devel] [PATCH 1/3] virtio-scsi: prepare migration format for multiqueue

2012-04-06 Thread Paolo Bonzini
In order to restore requests correctly from a multitude of virtqueues, we need to store the id of the request queue that each request came from. Do this even for single-queue, by storing a hard-coded zero, to simplify future implementation of multiqueue. Signed-off-by: Paolo Bonzini --- hw/virt

[Qemu-devel] [PATCH v2 1/5] target-ppc: Drop cpu_ppc_close()

2012-04-06 Thread Andreas Färber
It is unused, so avoid QOM'ifying it unneededly. Signed-off-by: Andreas Färber --- target-ppc/cpu.h|1 - target-ppc/helper.c |6 -- 2 files changed, 0 insertions(+), 7 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index ca6f1cb..fc70644 100644 --- a/target-ppc/cp

[Qemu-devel] [PATCH 17/46] vdi: merge aio_read_cb and aio_write_cb into callers

2012-04-06 Thread Kevin Wolf
From: Paolo Bonzini Now inline the former AIO callbacks into vdi_co_readv and vdi_co_writev. While many cleanups are possible, the code now really looks synchronous. Acked-by: Stefan Weil Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block/vdi.c | 40 --

[Qemu-devel] [PATCH 36/46] qemu-iotests: Test unknown qcow2 header extensions

2012-04-06 Thread Kevin Wolf
The immportant thing here is that header extensions don't get silently dropped when the header is rewritten, e.g. during a rebase. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/031 | 72 + tests/qemu-iotests/031.out | 76

[Qemu-devel] [PULL 00/46] Block patches

2012-04-06 Thread Kevin Wolf
The following changes since commit 8f8d364f2447e58768132fc10f48a67af371ee38: Merge branch 's390-for-upstream' of git://repo.or.cz/qemu/agraf (2012-04-04 20:45:03 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Benoît Canet (7): block: Add ne

[Qemu-devel] [PATCH 0/3] virtio-scsi multiqueue

2012-04-06 Thread Paolo Bonzini
This simple patch series enables multiqueue support in virtio-scsi. Anthony, Michael, could you please ack patch 2? Paolo Bonzini (3): virtio-scsi: prepare migration format for multiqueue virtio: add virtio_queue_get_id virtio-scsi: add multiqueue capability hw/virtio-scsi.c | 26 +++

[Qemu-devel] Fiber switching and stack protection

2012-04-06 Thread Pavel Dovgaluk
Hello. Recently I tried to build qemu-1.0 with MinGW and start it with qcow file created with previous version of qemu. But after starting guest Windows loading process qemu had closed because of an exception. I figured out that this exception is "stack smashing" and it happened in qemu

[Qemu-devel] [PATCH v3 02/10] Switch POSIX compat AIO to QEMU abstractions

2012-04-06 Thread Jan Kiszka
Although there is nothing to wrap for non-POSIX here, redirecting thread and synchronization services to our core simplifies managements jobs like scheduling parameter adjustment. It also frees compat AIO from some duplicate code (/wrt qemu-thread). Signed-off-by: Jan Kiszka --- posix-aio-compat

[Qemu-devel] [PATCH 07/46] ide: IDENTIFY word 86 bit 14 is reserved

2012-04-06 Thread Kevin Wolf
Reserved bits should be cleared to zero. Signed-off-by: Kevin Wolf Reviewed-by: Stefan Hajnoczi --- hw/ide/core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 6f06d28..771811c 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -150

[Qemu-devel] [PATCH 23/46] block: disable I/O throttling on sync api

2012-04-06 Thread Kevin Wolf
From: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 8858be0..0344673 100644 --- a/bl

[Qemu-devel] [PATCH V3 1/8] isa: add isa_address_space_io

2012-04-06 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall --- hw/isa-bus.c |5 + hw/isa.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus

[Qemu-devel] [PATCH 19/46] vdi: leave bounce buffering to block layer

2012-04-06 Thread Kevin Wolf
From: Paolo Bonzini vdi.c really works as if it implemented bdrv_read and bdrv_write. However, because only vector I/O is supported by the asynchronous callbacks, it went through extra pain to bounce-buffer the I/O. This can be handled by the block layer now that the format is coroutine-based.

[Qemu-devel] [RFC PATCH v3 7/9] repagent: Fixes after remarks for Patch v2, mainly license and style

2012-04-06 Thread Ori Mamluk
Added qemu license to all files Changed int to bool for flags --- block/repagent/qemu-repagent.txt | 16 -- block/repagent/repagent.c| 39 ++--- block/repagent/repagent.h|7 +++-- block/repagent/repagent_client.c | 35

[Qemu-devel] [PATCH 3/3] virtio-scsi: add multiqueue capability

2012-04-06 Thread Paolo Bonzini
Adding multiqueue is as simple as creating more than one virtqueues, and saving the queue number for each request. Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi

[Qemu-devel] [PATCH v8 02/10] Add uleb encoding/decoding functions

2012-04-06 Thread Orit Wasserman
Implement Unsigned Little Endian Base 128. Signed-off-by: Orit Wasserman --- migration.h |4 savevm.c| 28 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/migration.h b/migration.h index 691b367..d798fac 100644 --- a/migration.h +++ b/m

[Qemu-devel] [PATCH v2 2/5] target-ppc: QOM'ify CPU

2012-04-06 Thread Andreas Färber
Embed CPUPPCState as first member of PowerPCCPU. Distinguish between "powerpc-cpu", "powerpc64-cpu" and "embedded-powerpc-cpu". Let CPUClass::reset() call cpu_state_reset() for now. Signed-off-by: Andreas Färber --- target-ppc/cpu-qom.h| 77 +++

[Qemu-devel] [PATCH v2 5/5] target-ppc: Add CPU finalizer

2012-04-06 Thread Andreas Färber
free() opcode tables. They are being malloc()'ed in create_new_table(). Resolves Jocelyn's TODO in former cpu_ppc_close(). Signed-off-by: Andreas Färber --- target-ppc/translate_init.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate_in

[Qemu-devel] [PATCH v2 3/5] target-ppc: QOM'ify CPU init

2012-04-06 Thread Andreas Färber
Move code from cpu_ppc_init() into an initfn. Signed-off-by: Andreas Färber --- target-ppc/helper.c | 10 +- target-ppc/translate_init.c | 20 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/target-ppc/helper.c b/target-ppc/helper.c index

[Qemu-devel] [PATCH v2 4/5] target-ppc: QOM'ify CPU reset

2012-04-06 Thread Andreas Färber
Move code from cpu_state_reset() into ppc_cpu_reset(). Reorder #include of helper_regs.h to use it in translate_init.c. Adjust whitespace and add braces. Signed-off-by: Andreas Färber --- target-ppc/helper.c | 45 +- target-ppc/translate.c

[Qemu-devel] [PATCH v8 08/10] Add migration capabilites

2012-04-06 Thread Orit Wasserman
Add migration capabiltes that can be queried by the management. The managment can query to source and the destination in order to verify both support some maigration capability (currently only XBZRLE). Signed-off-by: Orit Wasserman --- hmp.c| 18 ++ hmp.h

[Qemu-devel] [PATCH v2 0/5] QOM'ify Power Architecture CPU

2012-04-06 Thread Andreas Färber
Hello, This series follows up on my PowerPC QOM'ification patches from the qom-cpu-others.v1 RFC series and splits it into steps easier to review. The finalizer is actually filled with life now. Subclasses are postponed. David and Scott, please review and test. Available from: git://github.com/a

[Qemu-devel] [PATCH v2 0/5] QOM'ify Power Architecture CPU

2012-04-06 Thread Andreas Färber
Hello, This series follows up on my PowerPC QOM'ification patches from the qom-cpu-others.v1 RFC series and splits it into steps easier to review. The finalizer is actually filled with life now. Subclasses are postponed. David and Scott, please review and test. Available from: git://github.com/a

Re: [Qemu-devel] [PATCH] scsi: fix memory leak

2012-04-06 Thread Zhi Yong Wu
On Fri, Apr 6, 2012 at 9:48 PM, Paolo Bonzini wrote: > scsibus_get_dev_path is leaking id if it is not NULL.  Fix it. > > Reported-by: Laszlo Ersek > Signed-off-by: Paolo Bonzini > --- >  hw/scsi-bus.c |    7 +-- >  1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/hw/scsi-bus

[Qemu-devel] [PATCH 2/3] virtio: add virtio_queue_get_id

2012-04-06 Thread Paolo Bonzini
Serializing virtio-scsi requests needs a simple way to get from a VirtQueue to the number of the queue. The virtio_queue_get_id provides this. Cc: Anthony Liguori Cc: Michael S. Tsirkin Signed-off-by: Paolo Bonzini --- hw/virtio.c |7 +++ hw/virtio.h |1 + 2 files changed, 8 inser

[Qemu-devel] [PATCH] scsi: fix memory leak

2012-04-06 Thread Paolo Bonzini
scsibus_get_dev_path is leaking id if it is not NULL. Fix it. Reported-by: Laszlo Ersek Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index 8e76c5d..216b51f 100644 --- a/hw/scsi-bus.c +

[Qemu-devel] Flash memory emulation on QEMU [on u-boot]

2012-04-06 Thread jagan
Hi, I am new to this qemu setup. I have builed & used qemu-system-arm for u-boot. I was able to get the u-boot prompt, on versatilePB arch. My questions are -- Does Qemu already have flash memory emulation support? -- I need to test my u-boot on QEMU with NOR, NAND, SERIAL & SD flash memory emula

Re: [Qemu-devel] [PATCH V8 1/1] Guest stop notificationorry for rduplicate mail

2012-04-06 Thread Raghavendra K T
On 04/06/2012 03:19 PM, Raghavendra K T wrote: On 04/06/2012 02:29 PM, Andreas Färber wrote: Am 06.04.2012 09:21, schrieb Raghavendra K T: From: Eric B Munson Often when a guest is stopped from the qemu console, it will report spurious soft lockup warnings on resume. There are kernel patches b

[Qemu-devel] [PATCH] remove useless comments in dma

2012-04-06 Thread Wanpeng Li
This comment is useless, just removes it and makes the codes clear. Signed-off-by: Wanpeng Li --- dma.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/dma.h b/dma.h index 20e86d2..5bd1fc8 100644 --- a/dma.h +++ b/dma.h @@ -11,7 +11,6 @@ #define DMA_H #include -//#i

[Qemu-devel] [PATCH 02/46] tracetool: Forbid argument name 'next'

2012-04-06 Thread Kevin Wolf
It has happened more than once that patches that look perfectly sane and work with simpletrace broke systemtap because they use 'next' as an argument name for a tracing function. However, 'next' is a keyword for systemtap, so we shouldn't use it. Signed-off-by: Kevin Wolf --- scripts/tracetool |

[Qemu-devel] [PATCH V2 10/10] hw/sd.c: introduce SD card "image" property and allow SD hot-insert

2012-04-06 Thread Igor Mitsyanko
New SD card "image" property can be used to: - change image file attached to virtual SD card - hot-insert new image file into newly initialized BlockDriverState (this was not possible before). Example usage: ./qom-set /machine/milkymist/milkymist-memcard/card.image /home/me/mynewcard.img this wil

Re: [Qemu-devel] [PATCH v3 01/10] Introduce qemu_cond_timedwait for POSIX

2012-04-06 Thread Paolo Bonzini
Il 05/04/2012 14:30, malc ha scritto: >> > Would save that "* 1000". I just wondered why we do not use it elsewhere >> > in QEMU and was reluctant to risk some BSD breakage. >> > > It's probably worth mentioning that using anything other than > clock_gettime and CLOCK_MONOTONING (as well as setti

[Qemu-devel] [PATCH v3 01/10] Introduce qemu_cond_timedwait for POSIX

2012-04-06 Thread Jan Kiszka
First user will be POSIX compat aio. Windows use cases aren't in sight, so this remains a POSIX-only service for now. Signed-off-by: Jan Kiszka --- qemu-thread-posix.c | 23 +++ qemu-thread-posix.h |5 + 2 files changed, 28 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 1/1] Allow machines to configure the QEMU_VERSION that's exposed via hardware

2012-04-06 Thread Peter Maydell
On 5 April 2012 15:26, Crístian Viana wrote: > diff --git a/vl.c b/vl.c > index ae91a8a..7fea263 100644 > --- a/vl.c > +++ b/vl.c > @@ -1561,7 +1561,8 @@ static void main_loop(void) > >  static void version(void) >  { > -    printf("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION ", > Copyri

Re: [Qemu-devel] [PATCH 0/5] Spread the use of QEMU threading & locking API

2012-04-06 Thread Jan Kiszka
On 2012-04-05 14:48, Paolo Bonzini wrote: > Il 05/04/2012 14:04, Jan Kiszka ha scritto: >>> EventNotifier _is not_ yet another thread synchronization primitive. It >>> can be used across processes, across the user/kernel boundary, and the >>> main loop can wait on multiple instances. QemuThread s

[Qemu-devel] [PATCH V2 07/10] SD card: introduce "if-idx" property for SD card objects

2012-04-06 Thread Igor Mitsyanko
Rather then pass on a BlockDriverState pointer to SD init function, we now should set "if-idx" property of SD card object to a value corresponding to index of DriveInfo we want to attach to SD card. All users were converted to use this new approach to SD card initialization. Omap and PXA mmc ini

Re: [Qemu-devel] [PATCH v2 2/4] target-i386: QOM'ify CPU

2012-04-06 Thread Andreas Färber
Am 03.04.2012 02:05, schrieb Andreas Färber: > Embed CPUX86State as first member of X86CPU. > Drop cpu_x86_close() in favor of calling object_delete() directly. > > For now let CPUClass::reset() call cpu_state_reset(). > > Signed-off-by: Andreas Färber > --- > target-i386/cpu-qom.h | 71 > ++

Re: [Qemu-devel] [PATCH v2 0/4] QOM'ify x86 CPU, part 1

2012-04-06 Thread Andreas Färber
Am 03.04.2012 02:05, schrieb Andreas Färber: > Hello, > > This series strips down x86 CPU QOM'ification to the bare minimum, > leaving out subclasses for builtin or external CPU models. > It is ordered after the s390x conversion but is independent of it, again > due to alphabetical ordering, so th

[Qemu-devel] [PATCH 39/46] block stream: close unused files and update ->backing_hd

2012-04-06 Thread Kevin Wolf
From: Marcelo Tosatti Close the now unused images that were part of the previous backing file chain and adjust ->backing_hd, backing_filename and backing_format properly. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=801449 Signed-off-by: Marcelo Tosatti Reviewed-by: Stefan Hajnoczi Signe

[Qemu-devel] [PATCH v2 4/5] acpi_piix4: Re-define PCI hotplug eject register read

2012-04-06 Thread Alex Williamson
The PCI hotplug eject register has always returned 0, so let's redefine it as a hotplug feature register. The existing model of using separate up & down read-only registers and an eject via write to this register becomes the base implementation. As we make use of new interfaces we'll set bits her

Re: [Qemu-devel] [PATCH V8 1/1] Guest stop notification

2012-04-06 Thread Raghavendra K T
On 04/06/2012 02:29 PM, Andreas Färber wrote: Am 06.04.2012 09:21, schrieb Raghavendra K T: From: Eric B Munson Often when a guest is stopped from the qemu console, it will report spurious soft lockup warnings on resume. There are kernel patches being discussed that will give the host the abil

Re: [Qemu-devel] [PATCH V8 1/1] Guest stop notification

2012-04-06 Thread Andreas Färber
Am 06.04.2012 09:21, schrieb Raghavendra K T: > From: Eric B Munson > > Often when a guest is stopped from the qemu console, it will report spurious > soft lockup warnings on resume. There are kernel patches being discussed that > will give the host the ability to tell the guest that it is being

Re: [Qemu-devel] [PATCH 4/7] block: close unused image files at the end of streaming

2012-04-06 Thread Federico Simoncelli
- Original Message - > From: "Paolo Bonzini" > To: qemu-devel@nongnu.org > Cc: "Marcelo Tosatti" , "Federico Simoncelli" > > Sent: Thursday, April 5, 2012 5:42:58 PM > Subject: [PATCH 4/7] block: close unused image files at the end of streaming > > From: Marcelo Tosatti > > Close the

[Qemu-devel] [PATCH 24/46] block: cancel jobs when a device is ready to go away

2012-04-06 Thread Kevin Wolf
From: Paolo Bonzini We do not want jobs to keep a device busy for a possibly very long time, and management could become confused because they thought a device was not even there anymore. So, cancel long-running jobs as soon as their device is going to disappear. Signed-off-by: Paolo Bonzini R

[Qemu-devel] [PATCH 2/2 V2] coroutine: add qemu_coroutine_run() wrapper

2012-04-06 Thread Lai Jiangshan
Wrapper for qemu_coroutine_create()+qemu_coroutine_enter() Signed-off-by: Lai Jiangshan Reviewed-by: Paolo Bonzini --- block.c | 28 +++- hw/9pfs/virtio-9p.c |4 +--- nbd.c |2 +- qemu-coroutine.h| 12 qemu-io.c

[Qemu-devel] [PATCH 1/2 V2] coroutine: init unlock_bh during boot

2012-04-06 Thread Lai Jiangshan
use __attribute__((constructor)) to do the initialization. Signed-off-by: Lai Jiangshan Reviewed-by: Paolo Bonzini --- qemu-coroutine-lock.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qemu-coroutine-lock.c b/qemu-coroutine-lock.c index 26ad76b..03b999e 1006

[Qemu-devel] [PATCH 41/46] block: add a function to clear incoming live migration flags

2012-04-06 Thread Kevin Wolf
From: Benoît Canet This function will clear all BDRV_O_INCOMING flags. Signed-off-by: Benoit Canet Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block.c |9 + block.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index b

Re: [Qemu-devel] [PATCH] Support system reset in Exynos4210

2012-04-06 Thread Maksim Kozlov
04.04.2012 21:37, Dmitry Zhurikhin пишет: On 2012-04-04 20:16, Maksim Kozlov wrote: 04.04.2012 16:35, Dmitry Zhurikhin пишет: On 2012-04-04 15:55, Maksim Kozlov wrote: 04.04.2012 14:08, Dmitry Zhurikhin пишет: Reset the system when 1 is written to SWRESET register Signed-off-by: Dmitry Zhuri

[Qemu-devel] [PATCH V8 1/1] Guest stop notification

2012-04-06 Thread Raghavendra K T
From: Eric B Munson Often when a guest is stopped from the qemu console, it will report spurious soft lockup warnings on resume. There are kernel patches being discussed that will give the host the ability to tell the guest that it is being stopped and should ignore the soft lockup warning that