[Qemu-devel] drive-mirror remove detect-zeroes drive property

2014-10-09 Thread Alexandre DERUMIER
Hi, It seem that drive-mirror block job, remove the detect-zeroes drive property on the target drive qemu -device virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5 -drive file=/source.raw,if=none,id=drive-scsi2,cache=writeback,discard=on,aio=native,detect-zeroes=unmap # info block d

[Qemu-devel] [PATCH] linux-user: Fix fault address truncation AArch64

2014-10-09 Thread Amanieu d'Antras
On AArch64 the si_addr field of siginfo_t is truncated to 32 bits because the fault address passes through an uint32_t variable. This is fixed by changing the variable to uint64_t. Signed-off-by: Amanieu d'Antras --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[Qemu-devel] [PATCH V5 8/8] acpi/cpu-hotplug: introduce helper function to keep bit setting in one place

2014-10-09 Thread Gu Zheng
Introduce helper function acpi_set_cpu_present_bit() to simplify acpi_cpu_plug_cb and acpi_cpu_hotplug_init, so that we can keep bit setting in one place. Signed-off-by: Gu Zheng --- v5: -rename acpi_set_local_sts to acpi_set_cpu_present_bit for better readability. hw/acpi/cpu_hotplug.c | 2

[Qemu-devel] [PATCH V5 7/8] cpu-hotplug: rename function for better readability

2014-10-09 Thread Gu Zheng
Rename: AcpiCpuHotplug_init --> acpi_cpu_hotplug_init AcpiCpuHotplug_ops --> acpi_cpu_hotplug_ops for better readability, just cleanup. Signed-off-by: Gu Zheng --- hw/acpi/cpu_hotplug.c |4 ++-- hw/acpi/ich9.c|4 ++-- hw/acpi/piix4.c |4 ++-- inc

[Qemu-devel] [PATCH V5 6/8] qom/cpu: remove the unused CPU hot-plug notifier

2014-10-09 Thread Gu Zheng
Remove the unused CPU hot-plug notifier. Signed-off-by: Gu Zheng --- v5: -delete the caller of notifier_list_notify() in this patch. include/sysemu/sysemu.h |3 --- qom/cpu.c | 10 -- 2 files changed, 0 insertions(+), 13 deletions(-) diff --git a/include/sysemu/sys

[Qemu-devel] [PATCH V5 5/8] pc: Update rtc_cmos in pc_cpu_plug

2014-10-09 Thread Gu Zheng
Update rtc_cmos in pc_cpu_plug() directly, instead of the notifier. Signed-off-by: Gu Zheng --- v5: -move CPU hot-plug notifier cleanup hunk into Patch 6/8. v4: -Make link property in PCMachine rather than the global variables. -Split out the removal of unused notifier into separate patch.

[Qemu-devel] [PATCH V5 4/8] pc: add cpu hotplug handler to PC_MACHINE

2014-10-09 Thread Gu Zheng
Add cpu hotplug handler to PC_MACHINE, which will perform the acpi cpu hotplug callback via hotplug_handler API. Signed-off-by: Gu Zheng --- v5: -split the check out of acpi_dev block. v3: -deal with start up cpus in a more neat way as Igor suggested. v2: -just rebase. hw/i386/pc.c | 28 ++

[Qemu-devel] [PATCH V5 3/8] acpi:piix4: convert cpu hotplug to hotplug_handler API

2014-10-09 Thread Gu Zheng
Convert notifier based hotplug to hotplug_handler API, and remove the unused AcpiCpuHotplug_add(). Signed-off-by: Gu Zheng --- v5: -drop 'handle' from the comment and subject. v2: -remove the unused AcpiCpuHotplug_add(). hw/acpi/cpu_hotplug.c | 14 ++ hw/acpi/piix4.c

[Qemu-devel] [PATCH V5 2/8] acpi:ich9: convert cpu hotplug to hotplug_handler API

2014-10-09 Thread Gu Zheng
Convert notifier based hotplug to hotplug_handler API. Signed-off-by: Gu Zheng --- v5: -drop 'handle' from the comment and subject. hw/acpi/ich9.c | 13 ++--- include/hw/acpi/ich9.h |1 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/

[Qemu-devel] [PATCH V5 1/8] acpi/cpu: add cpu hotplug callback function to match hotplug_handler API

2014-10-09 Thread Gu Zheng
Add cpu hotplug callback function (acpi_cpu_plug_cb) to match hotplug_handler API. Signed-off-by: Gu Zheng --- v4: -convert CPUState *cpu to DeviceState *dev like it's done for other handlers and do cast to CPU inside. v2: -add errp argument to catch error. -return error instead of aborting

[Qemu-devel] [PATCH V5 0/8] cpu/acpi: convert cpu hot plug to hotplug_handler API

2014-10-09 Thread Gu Zheng
Previously we use cpu_added_notifiers to register cpu hotplug notifier callback which is not able to pass/handle errors, so we switch it to unified hotplug handler API which allows to pass errors and would allow to cancel device_add in case of error. Thanks very much for Igor's review and suggestio

Re: [Qemu-devel] [question] is it possible that big-endian l1 table offset referenced by other I/O while updating l1 table offset in qcow2_update_snapshot_refcount?

2014-10-09 Thread Zhang Haoyu
>> Hi, >> I encounter a problem that after deleting snapshot, the qcow2 image size is >> very larger than that it should be displayed by ls command, >> but the virtual disk size is okay via qemu-img info. >> I suspect that during updating l1 table offset, other I/O job reference the >> big-endia

Re: [Qemu-devel] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-09 Thread Chen Gang
On 10/9/14 22:34, Peter Maydell wrote: > On 9 October 2014 15:00, Chen Gang wrote: >> The related variables are useless, need be removed, or can not pass >> microblaze building, after fix it, can build microblaze, successfully. >> >> The related configuration: >> >> ./configure --target-list="arm

Re: [Qemu-devel] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-09 Thread Chen Gang
On 10/9/14 22:54, Eric Blake wrote: > On 10/09/2014 08:00 AM, Chen Gang wrote: > > That's a very long subject line. Try to keep subjects around 60 > characters or so ('git shortlog -30' can give you an idea of reasonable > subjects). OK, thanks, I shall notice about it next (also let 'git shortl

Re: [Qemu-devel] [PATCH 1/1] target-i386: prevent users from setting threads>1 for AMD CPUs

2014-10-09 Thread Eduardo Habkost
On Thu, Oct 09, 2014 at 11:08:03PM +0200, Paolo Bonzini wrote: > Il 09/10/2014 22:22, Wei Huang ha scritto: > > > > Given that back-ward compatibility is a concern, will the following work? > > > > 1. Instead of bailing out, print a warning message (e.g. to log file via > > error_report) in QEMU.

Re: [Qemu-devel] [PATCH] linux-user: Let user specify random seed

2014-10-09 Thread Eric Blake
On 10/09/2014 01:12 PM, Magnus Reftel wrote: > This patch introduces the -seed command line option and the > QEMU_RAND_SEED environment variable for setting the random seed, which > is used for the AT_RANDOM ELF aux entry. > > Signed-off-by: Magnus Reftel > --- > linux-user/elfload.c | 1 - > l

Re: [Qemu-devel] [PATCH 1/1] target-i386: prevent users from setting threads>1 for AMD CPUs

2014-10-09 Thread Paolo Bonzini
Il 09/10/2014 22:22, Wei Huang ha scritto: > > Given that back-ward compatibility is a concern, will the following work? > > 1. Instead of bailing out, print a warning message (e.g. to log file via > error_report) in QEMU. > 2. [optional] Eduardo Habkost suggested that we can create a new machine

Re: [Qemu-devel] [PATCH] rbd: Add support for bdrv_invalidate_cache

2014-10-09 Thread Josh Durgin
[adding block maintainers to cc] On 10/09/2014 11:44 AM, adamcr...@gmail.com wrote: From: Adam Crume This fixes Ceph issue 2467. Signed-off-by: Adam Crume --- block/rbd.c | 16 1 file changed, 16 insertions(+) diff --git a/block/rbd.c b/block/rbd.c index 96947e3..d88ba

Re: [Qemu-devel] Fullscreen Bug with GTK

2014-10-09 Thread Cedric Sodhi
On Thu, Oct 09, 2014 at 01:30:00PM -0400, Cole Robinson wrote: > On 10/06/2014 07:24 AM, Peter Maydell wrote: > > On 6 October 2014 11:28, Gerd Hoffmann wrote: > >> On Mo, 2014-10-06 at 12:14 +0200, Cedric Sodhi wrote: > >>> The reporter explicitly mentioned that removing the Menu disables the > >

[Qemu-devel] [PATCH] rbd: Add support for bdrv_invalidate_cache

2014-10-09 Thread adamcrume
From: Adam Crume This fixes Ceph issue 2467. Signed-off-by: Adam Crume --- block/rbd.c | 16 1 file changed, 16 insertions(+) diff --git a/block/rbd.c b/block/rbd.c index 96947e3..d88ba70 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -887,6 +887,19 @@ static BlockDriverAIOC

Re: [Qemu-devel] [PATCH 1/1] target-i386: prevent users from setting threads>1 for AMD CPUs

2014-10-09 Thread Wei Huang
On 10/08/2014 02:47 AM, Paolo Bonzini wrote: Il 08/10/2014 02:41, Wei Huang ha scritto: I am OK with either way. The key question is: should QEMU presents CPUIDs strictly as specified by the command line or QEMU can tweak a little bit on behalf of end-users? For instance, if end-users say "-sm

Re: [Qemu-devel] [PATCH v2] linux-user: Let user specify random seed

2014-10-09 Thread Tom Musta
On 10/9/2014 3:36 AM, Magnus Reftel wrote: > This patch introduces the -seed command line option and the > QEMU_RAND_SEED environment variable for setting the random seed, which > is used for the AT_RANDOM ELF aux entry. > > This is an updated version of the patch, addressing review comments > fro

[Qemu-devel] [PATCH] linux-user: Let user specify random seed

2014-10-09 Thread Magnus Reftel
This patch introduces the -seed command line option and the QEMU_RAND_SEED environment variable for setting the random seed, which is used for the AT_RANDOM ELF aux entry. Signed-off-by: Magnus Reftel --- linux-user/elfload.c | 1 - linux-user/main.c| 20 2 files change

[Qemu-devel] [PATCH v3] linux-user: Let user specify random seed

2014-10-09 Thread Magnus Reftel
This patch introduces the -seed command line option and the QEMU_RAND_SEED environment variable for setting the random seed, which is used for the AT_RANDOM ELF aux entry.

Re: [Qemu-devel] [PATCH] linux-user: Let user specify random seed

2014-10-09 Thread Magnus Reftel
Hi, Thank you for your patience! I will send a third version. On Thu, Oct 9, 2014 at 5:27 PM, Eric Blake wrote: > On 10/09/2014 02:36 AM, Magnus Reftel wrote: >> +char* end; > Style: we prefer: > char *end; Done. >> +if (end==arg || *end!='\0' || seed > UINT_MAX) { > Style: spaces arou

Re: [Qemu-devel] latest rc: virtio-blk hangs forever after migration

2014-10-09 Thread Eduardo Habkost
On Mon, Aug 04, 2014 at 06:30:09PM +0200, Marcin Gibuła wrote: > W dniu 2014-07-31 13:27, Marcin Gibuła pisze: > >>>Can you dump *env before and after the call to kvm_arch_get_registers? > >> > >>Yes, but it seems they are equal - I used memcmp() to compare them. Is > >>there any other side effect

Re: [Qemu-devel] [PATCH v2 0/2] raw-posix: Fix raw_co_get_block_status()

2014-10-09 Thread Benoît Canet
On Wed, Oct 08, 2014 at 09:43:19PM +0200, Max Reitz wrote: > On 22.09.2014 17:36, Max Reitz wrote: > >raw_co_get_block_status() should return 0 and set *pnum to 0 after the > >EOF; currently it does this merely by accident, so implement it > >directly. Also, nb_sectors should be clamped against the

[Qemu-devel] [QUESTION] Licence for xilinx device emulation

2014-10-09 Thread Pierre Mallard
Hi, I did an emulation of Xilinx Mailbox, which is a device used for inter processor communication. I was wondering whether I can post a patch to this mailing list that contain this emulation regarding Xilinx Intellectual Property (I use for example registers mapping found in Xilinx mailbox driver

Re: [Qemu-devel] [PATCH 3/3] qemu-sockets: Add error to non-blocking connect handler

2014-10-09 Thread Corey Minyard
On 10/09/2014 05:07 AM, Paolo Bonzini wrote: >> +error_setg_errno(&err, errno, "Error connecting to socket"); >> > closesocket(s->fd); >> > s->fd = rc; >> > } > This is missing above this hunk: > > diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c > index e6a9644

[Qemu-devel] [Bug 1294898] Re: gtk: menubar visible in fullscreen mode with gtk3

2014-10-09 Thread Cole Robinson
Mailing list discussion: https://lists.gnu.org/archive/html/qemu-devel/2014-10/msg00510.html When Gerd made the comment quoted above, he hadn't read the full report. If someone wants to flesh out my patch bits and send it to qemu-devel it will be easier to follow up there. -- You received this

Re: [Qemu-devel] [PULL 0/8] s390x patches for 2.2

2014-10-09 Thread Cornelia Huck
On Thu, 9 Oct 2014 18:23:07 +0100 Peter Maydell wrote: > On 9 October 2014 18:18, Cornelia Huck wrote: > > > > Weird, s390x-linux-user seems to build for me on s390x (just tried > > again). > > > > I guess you build on !s390x, though :) I'll look into this. > > You seem to be building the migra

Re: [Qemu-devel] [PULL 7/8] s390x/migration: migrate CPU state

2014-10-09 Thread Cornelia Huck
On Thu, 9 Oct 2014 17:28:57 +0100 Peter Maydell wrote: > On 9 October 2014 14:36, Cornelia Huck wrote: > > From: Thomas Huth > > > > This patch provides the cpu save information for dumps and later life > > migration and enables migration of the CPU state. The code is based on > > earlier work

Re: [Qemu-devel] Fullscreen Bug with GTK

2014-10-09 Thread Cole Robinson
On 10/06/2014 07:24 AM, Peter Maydell wrote: > On 6 October 2014 11:28, Gerd Hoffmann wrote: >> On Mo, 2014-10-06 at 12:14 +0200, Cedric Sodhi wrote: >>> The reporter explicitly mentioned that removing the Menu disables the >>> Accels and therefore he has provided a patch which attaches the Accels

Re: [Qemu-devel] [PULL 0/8] s390x patches for 2.2

2014-10-09 Thread Peter Maydell
On 9 October 2014 18:18, Cornelia Huck wrote: > > Weird, s390x-linux-user seems to build for me on s390x (just tried > again). > > I guess you build on !s390x, though :) I'll look into this. You seem to be building the migration stuff into the linux-user targets, when it should be in softmmu only

Re: [Qemu-devel] [PULL 0/8] s390x patches for 2.2

2014-10-09 Thread Cornelia Huck
r-20141006-2' into staging (2014-10-07 > > 10:41:48 +0100) > > > > are available in the git repository at: > > > > > > git://github.com/cohuck/qemu.git tags/s390x-20141009 > > > > for you to fetch changes up to 2adf6bbb8ad7e53f602d10b2b30d22cd83

Re: [Qemu-devel] [PATCH] hw/arm/virt: mark timer in fdt as v8-compatible

2014-10-09 Thread Peter Maydell
On 9 October 2014 18:00, Peter Maydell wrote: > On 26 September 2014 14:09, wrote: >> From: Claudio Fontana >> >> check if the first cpu is an armv8 cpu, and if so, put >> arm,armv8-timer in the compatible string list. >> >> Note that due to this check, this patch moves the creation >> of the t

Re: [Qemu-devel] [PATCH] hw/arm/virt: mark timer in fdt as v8-compatible

2014-10-09 Thread Peter Maydell
On 26 September 2014 14:09, wrote: > From: Claudio Fontana > > check if the first cpu is an armv8 cpu, and if so, put > arm,armv8-timer in the compatible string list. > > Note that due to this check, this patch moves the creation > of the timer fdt node to after the cpu creation loop. > > Signed

Re: [Qemu-devel] [PULL 7/8] s390x/migration: migrate CPU state

2014-10-09 Thread Peter Maydell
On 9 October 2014 14:36, Cornelia Huck wrote: > From: Thomas Huth > > This patch provides the cpu save information for dumps and later life > migration and enables migration of the CPU state. The code is based on > earlier work from Christian Borntraeger and Jason Herne. > > Signed-off-by: Thomas

Re: [Qemu-devel] [PULL 0/8] s390x patches for 2.2

2014-10-09 Thread Peter Maydell
ble in the git repository at: > > > git://github.com/cohuck/qemu.git tags/s390x-20141009 > > for you to fetch changes up to 2adf6bbb8ad7e53f602d10b2b30d22cd831f79a6: > > s390x/virtio-ccw: fix vhost-scsi intialization (2014-10-09 14:22:47 +0200) > > ---

Re: [Qemu-devel] qemu is missing monitor

2014-10-09 Thread Peter Maydell
On 9 October 2014 14:37, Jiri Slaby wrote: > Hi guys, > > qemu in opensuse latest (factory) does not have monitor. Despite > libvte-devel is installed, it is not detected by qemu. The problem is > that configure looks for vte-2.90, but we have vte-2.91 in factory. The > attached patch fixes that f

Re: [Qemu-devel] [PULL v3 00/28] Changes for 2014-10-09

2014-10-09 Thread Peter Maydell
On 9 October 2014 14:40, Paolo Bonzini wrote: > The following changes since commit 1831e150606a221898bf46ffaf0453e9952cbbc4: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2014-09-30 16:45:35 +0100) > > are available in the git repository at: > > > git://

[Qemu-devel] qemu is missing monitor

2014-10-09 Thread Jiri Slaby
Hi guys, qemu in opensuse latest (factory) does not have monitor. Despite libvte-devel is installed, it is not detected by qemu. The problem is that configure looks for vte-2.90, but we have vte-2.91 in factory. The attached patch fixes that for factory, but it's dirty, of course. Any better idea

qemu-devel@nongnu.org

2014-10-09 Thread Jiri Gaisler
I am a bit against the merge of AHB and APB initialization into the same function. A grlib system can have any number of AHB and APB buses, so there really should be a separate init routine per bus as in the original patch. Jiri. On 10/09/2014 01:05 PM, Fabien Chouteau wrote: > From: Jiri Gaisle

Re: [Qemu-devel] [PATCH] linux-user: Let user specify random seed

2014-10-09 Thread Eric Blake
On 10/09/2014 02:36 AM, Magnus Reftel wrote: > This patch introduces the -seed command line option and the > QEMU_RAND_SEED environment variable for setting the random seed, which > is used for the AT_RANDOM ELF aux entry. > > Signed-off-by: Magnus Reftel > --- > > +static void handle_arg_rand

Re: [Qemu-devel] [PATCH 1/1] hmp: Remove "info pcmcia"

2014-10-09 Thread Markus Armbruster
Peter Maydell writes: > On 9 October 2014 15:41, Andreas Färber wrote: >> Am 09.10.2014 um 15:47 schrieb Luiz Capitulino: >>> On Wed, 01 Oct 2014 10:54:44 +0200 >>> Markus Armbruster wrote: >>> Ping? Markus Armbruster writes: > This command lists PCMCIA sockets and card

Re: [Qemu-devel] [PATCH 1/1] hmp: Remove "info pcmcia"

2014-10-09 Thread Peter Maydell
On 9 October 2014 15:41, Andreas Färber wrote: > Am 09.10.2014 um 15:47 schrieb Luiz Capitulino: >> On Wed, 01 Oct 2014 10:54:44 +0200 >> Markus Armbruster wrote: >> >>> Ping? >>> >>> Markus Armbruster writes: >>> This command lists PCMCIA sockets and cards. Only a few ARM boards have

Re: [Qemu-devel] [question] is it posssible that big-endian l1 table offset referenced by other I/O while updating l1 table offset in qcow2_update_snapshot_refcount?

2014-10-09 Thread Eric Blake
On 10/09/2014 05:17 AM, Zhang Haoyu wrote: > Hi, > I encounter a problem that after deleting snaptshot, the qcow2 image size is > very larger than that it should be displayed by ls command, > but the virtual disk size is okay via qemu-img info. > I suspect that during updating l1 table offset, ot

Re: [Qemu-devel] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-09 Thread Eric Blake
On 10/09/2014 08:00 AM, Chen Gang wrote: That's a very long subject line. Try to keep subjects around 60 characters or so ('git shortlog -30' can give you an idea of reasonable subjects). Also, s/varialbe/variable/ in the subject. > The related variables are useless, need be removed, or can not

Re: [Qemu-devel] [PATCH 1/1] hmp: Remove "info pcmcia"

2014-10-09 Thread Andreas Färber
Am 09.10.2014 um 15:47 schrieb Luiz Capitulino: > On Wed, 01 Oct 2014 10:54:44 +0200 > Markus Armbruster wrote: > >> Ping? >> >> Markus Armbruster writes: >> >>> This command lists PCMCIA sockets and cards. Only a few ARM boards >>> have sockets (akita, borzoi, connex, mainstone, spitz, terrier

Re: [Qemu-devel] [PATCH] hw/arm/virt: mark timer in fdt as v8-compatible

2014-10-09 Thread Claudio Fontana
Hello Peter, are you ok with this one? Thanks, Claudio On 26 September 2014 15:09, wrote: > From: Claudio Fontana > > check if the first cpu is an armv8 cpu, and if so, put > arm,armv8-timer in the compatible string list. > > Note that due to this check, this patch moves the creation > of th

Re: [Qemu-devel] [PATCH 1/1] hmp: Remove "info pcmcia"

2014-10-09 Thread Luiz Capitulino
On Wed, 01 Oct 2014 10:54:44 +0200 Markus Armbruster wrote: > Ping? > > Markus Armbruster writes: > > > This command lists PCMCIA sockets and cards. Only a few ARM boards > > have sockets (akita, borzoi, connex, mainstone, spitz, terrier, tosa, > > verdex, z2), the only card is the DSCM-1

Re: [Qemu-devel] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-09 Thread Peter Maydell
On 9 October 2014 15:00, Chen Gang wrote: > The related variables are useless, need be removed, or can not pass > microblaze building, after fix it, can build microblaze, successfully. > > The related configuration: > > ./configure --target-list="arm-softmmu,microblazeel-softmmu" --enable-fdt >

[Qemu-devel] [PATCH v5 2/7] target-arm: do not set do_interrupt handlers for ARM and AArch64 user modes

2014-10-09 Thread Peter Maydell
From: Rob Herring User mode emulation should never get interrupts and thus should not use the system emulation exception handler function. Remove the reference, and '#ifndef USER_MODE_ONLY' the function itself as well, so that we can add system mode only functionality to it. Signed-off-by: Rob H

[Qemu-devel] [PATCH v5 3/7] target-arm: add missing PSCI constants needed for PSCI emulation

2014-10-09 Thread Peter Maydell
From: Ard Biesheuvel This adds some PSCI function IDs and symbolic return codes that are needed to implement PSCI emulation in TCG mode. Reviewed-by: Peter Maydell Signed-off-by: Ard Biesheuvel Signed-off-by: Peter Maydell --- target-arm/kvm-consts.h | 40

[Qemu-devel] [PATCH v5 6/7] target-arm: add emulation of PSCI calls for system emulation

2014-10-09 Thread Peter Maydell
From: Rob Herring Add support for handling PSCI calls in system emulation. Both version 0.1 and 0.2 of the PSCI spec are supported. Platforms can enable support by setting the "psci-conduit" QOM property on the cpus to SMC or HVC emulation and having a PSCI binding in their dtb. Signed-off-by: R

[Qemu-devel] [PATCH v5 5/7] target-arm: Add support for A32 and T32 HVC and SMC insns

2014-10-09 Thread Peter Maydell
Add support for HVC and SMC instructions to the A32 and T32 decoder. Using these for real exceptions to EL2 or EL3 is currently not supported (the do_interrupt routine does not handle them) but we require the instruction support to implement PSCI. Signed-off-by: Peter Maydell --- target-arm/inte

[Qemu-devel] [PATCH v5 1/7] target-arm: add powered off cpu state

2014-10-09 Thread Peter Maydell
From: Rob Herring Add tracking of cpu power state in order to support powering off of cores in system emuluation. The initial state is determined by the start-powered-off QOM property. Signed-off-by: Rob Herring Reviewed-by: Peter Maydell Signed-off-by: Ard Biesheuvel Signed-off-by: Peter May

[Qemu-devel] [PATCH v5 7/7] arm/virt: enable PSCI emulation support for system emulation

2014-10-09 Thread Peter Maydell
From: Rob Herring Now that we have PSCI emulation, enable it for the virt platform. This simplifies the virt machine a bit now that PSCI no longer needs to be a KVM only feature. Signed-off-by: Rob Herring Signed-off-by: Ard Biesheuvel Signed-off-by: Peter Maydell --- hw/arm/virt.c | 82

[Qemu-devel] [PATCH v5 0/7] ARM: add PSCI 0.2 support in TCG mode

2014-10-09 Thread Peter Maydell
This series adds PSCI support to ARM and AArch64 system emulation when running in TCG mode. It's an update of the patchsent Ard sent out earlier in September which in turn is based on work by Rob Herring. Changes v5->v6: * minor rebasing * redid the way that PSCI is plumbed into SMC/HVC handling

[Qemu-devel] [PATCH v5 4/7] target-arm: Handle SMC/HVC undef-if-no-ELx in pre_* helpers

2014-10-09 Thread Peter Maydell
SMC must UNDEF if EL3 is not implemented; similarly HVC UNDEFs if EL2 is not implemented. Move the handling of this from translate-a64.c into the pre_smc and pre_hvc helper functions. This is necessary because use of these instructions for PSCI takes precedence over this UNDEF case, and we can't te

Re: [Qemu-devel] [PATCH v8 0/2] Return error reasons to caller when calling qmp_dump_guest_memory

2014-10-09 Thread Luiz Capitulino
On Thu, 9 Oct 2014 14:13:09 +0800 zhanghailiang wrote: > In original code, Function dump_error ignores its second parameter which > contains > error reason, it is better to return the error message to the caller. > > Here we use error_setg to return the error info to caller. > And at the same t

[Qemu-devel] [RFC][PATCH v2x prototype 1/1] xen-hvm.c: Add support for Xen access to vmport

2014-10-09 Thread Don Slutz
This adds synchronisation of the 6 vcpu registers (only 32bits of them) that vmport.c needs between Xen and QEMU. This is to avoid a 2nd and 3rd exchange between QEMU and Xen to fetch and put these 6 vcpu registers used by the code in vmport.c and vmmouse.c Add new array to XenIOState that allows

Re: [Qemu-devel] [PATCH] virtio-balloon: Tweak recent fix for integer overflow

2014-10-09 Thread Luiz Capitulino
On Wed, 1 Oct 2014 18:43:44 +0200 Markus Armbruster wrote: > Commit 1f9296b avoids "other kinds of overflow" by limiting the > polling interval to UINT_MAX. The computations to protect are done in > 64 bits. This is indeed safe when unsigned is 32 bits, as it commonly > is. It isn't when unsi

[Qemu-devel] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-09 Thread Chen Gang
The related variables are useless, need be removed, or can not pass microblaze building, after fix it, can build microblaze, successfully. The related configuration: ./configure --target-list="arm-softmmu,microblazeel-softmmu" --enable-fdt --disable-kvm The related compiling error: CXX

[Qemu-devel] [PULL v3 22/28] accel: Create accel object when initializing machine

2014-10-09 Thread Paolo Bonzini
From: Eduardo Habkost Create an actual TYPE_ACCEL object when initializing a machine. This will allow accelerator classes to implement some initialization on instance_init, and to save state on the TYPE_ACCEL object. Reviewed-by: Paolo Bonzini Signed-off-by: Eduardo Habkost Signed-off-by: Paol

[Qemu-devel] [PULL v3 00/28] Changes for 2014-10-09

2014-10-09 Thread Paolo Bonzini
The following changes since commit 1831e150606a221898bf46ffaf0453e9952cbbc4: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-09-30 16:45:35 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fet

[Qemu-devel] [PULL 8/8] s390x/virtio-ccw: fix vhost-scsi intialization

2014-10-09 Thread Cornelia Huck
The vhost-scsi-ccw backend is of type VHostSCSICcw, not VirtIOSCSICcw. This fixes a segfault when invoking qemu-system-s390x -device vhost-scsi-ccw,? Reviewed-by: Thomas Huth Tested-by: Christian Borntraeger Signed-off-by: Cornelia Huck --- hw/s390x/virtio-ccw.c |2 +- 1 file changed

[Qemu-devel] [PULL 1/8] linux-headers: update to 3.17-rc7

2014-10-09 Thread Cornelia Huck
From: Jens Freimann Sync headers with 3.17-rc7 Acked-by: Paolo Bonzini Signed-off-by: Jens Freimann Signed-off-by: Cornelia Huck --- linux-headers/asm-mips/kvm_para.h |6 +- linux-headers/asm-powerpc/kvm.h |2 ++ linux-headers/asm-x86/kvm.h |3 +++ linux-headers/linux

[Qemu-devel] [PULL 7/8] s390x/migration: migrate CPU state

2014-10-09 Thread Cornelia Huck
From: Thomas Huth This patch provides the cpu save information for dumps and later life migration and enables migration of the CPU state. The code is based on earlier work from Christian Borntraeger and Jason Herne. Signed-off-by: Thomas Huth Signed-off-by: David Hildenbrand [provide cpu_post_

[Qemu-devel] [PULL 4/8] s390x/kvm: propagate s390 cpu state to kvm

2014-10-09 Thread Cornelia Huck
From: David Hildenbrand Let QEMU propagate the cpu state to kvm. If kvm doesn't yet support it, it is silently ignored as kvm will still handle the cpu state itself in that case. The state is not synced back, thus kvm won't have a chance to actively modify the cpu state. To do so, control has to

[Qemu-devel] [PULL 3/8] s390x/kvm: proper use of the cpu states OPERATING and STOPPED

2014-10-09 Thread Cornelia Huck
From: David Hildenbrand This patch makes sure that halting a cpu and stopping a cpu are two different things. Stopping a cpu will also set the cpu halted - this is needed for common infrastructure to work (note that the stop and stopped flag cannot be used for our purpose because they are already

[Qemu-devel] [PULL 0/8] s390x patches for 2.2

2014-10-09 Thread Cornelia Huck
The following changes since commit b6011bd8a57c1eda81a857d21adeb9b66e58b1b0: Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20141006-2' into staging (2014-10-07 10:41:48 +0100) are available in the git repository at: git://github.com/cohuck/qemu.git tags/s390

[Qemu-devel] [PULL 5/8] s390x/kvm: reuse kvm_s390_reset_vcpu() to get rid of ifdefs

2014-10-09 Thread Cornelia Huck
From: David Hildenbrand This patch reuses kvm_s390_reset_vcpu() to get rid of some CONFIG_KVM and CONFIG_USER_ONLY ifdefs in cpu.c. In order to get rid of CONFIG_USER_ONLY, kvm_s390_reset_vcpu() has to provide a dummy implementation - the two definitions are moved to the proper section in cpu.h.

[Qemu-devel] [PULL 6/8] s390x/kvm: synchronize the cpu state after SIGP (INITIAL) CPU RESET

2014-10-09 Thread Cornelia Huck
From: David Hildenbrand We need to synchronize registers after a reset has been performed. The current code does that in qemu_system_reset(), load_normal_reset() and modified_clear_reset() for all vcpus. After SIGP (INITIAL) CPU RESET, this needs to be done for the targeted vcpu as well, so let's

[Qemu-devel] [PULL 2/8] s390x/kvm: introduce proper states for s390 cpus

2014-10-09 Thread Cornelia Huck
From: David Hildenbrand Until now, when a s390 cpu was stopped or halted, the number of running CPUs was tracked in a global variable. This was problematic for migration, so Jason came up with a per-cpu running state. As it turns out, we want to track the full logical state of a target vcpu, so w

Re: [Qemu-devel] [PULL v2 00/28] Changes for 2014-10-29

2014-10-09 Thread Peter Maydell
On 9 October 2014 12:40, Paolo Bonzini wrote: > The following changes since commit 1831e150606a221898bf46ffaf0453e9952cbbc4: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2014-09-30 16:45:35 +0100) > > are available in the git repository at: > > > git://

Re: [Qemu-devel] [PATCH v2 1/1] virtio: serial: expose a 'guest_writable' callback for users

2014-10-09 Thread Peter Maydell
On 9 October 2014 13:17, Amit Shah wrote: > On (Thu) 09 Oct 2014 [13:18:16], Markus Armbruster wrote: >> The code should work, but whether it makes sense is hard to judge for >> virtio noobs like me without a user of guest_writable. The conditional >> guarding vsc->guest_writable(port) in particu

[Qemu-devel] [PATCH] arm_gic: remove unused parameter.

2014-10-09 Thread fred . konrad
From: KONRAD Frederic This removes num_irq parameter from gic_init_irqs_and_distributor as it is not used. Signed-off-by: KONRAD Frederic --- hw/intc/arm_gic.c | 4 ++-- hw/intc/armv7m_nvic.c | 2 +- hw/intc/gic_internal.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --

Re: [Qemu-devel] NBD TLS support in QEMU

2014-10-09 Thread Paolo Bonzini
Il 08/10/2014 20:16, Wouter Verhelst ha scritto: > @@ -242,10 +242,13 @@ Option types > * NBD_OPT_EXPORT_NAME (1) >Choose the export which the client would like to use, and end option >haggling. Data: name of the export, free-form UTF8 text (subject to >limitations by server implementa

[Qemu-devel] [PATCH v4] pc-dimm/numa: Fix stat of memory size in node when hotplug memory

2014-10-09 Thread zhanghailiang
When do memory hotplug, if there is numa node, we should add the memory size to the corresponding node memory size. For now, it mainly affects the result of hmp command "info numa". Signed-off-by: zhanghailiang --- v4: - s/pc_dimm_stat_node_mem/numa_stat_memory_devices/ (Igor Mammedov) - rewrit

[Qemu-devel] [Bug 1354167] Re: On VM restart: Could not open 'poppy.qcow2': Could not read snapshots: File too large

2014-10-09 Thread Rob Schultz
I had the exact same issue with a VM after upgrading the host from 12.04 to 14.04. Thank you Todd for the workaround. It would have been more work than I cared for to reassemble that machine (even if it was just a test machine). I'm not sure what the status of this bug is? Is this something that

Re: [Qemu-devel] [PATCH v2 1/1] virtio: serial: expose a 'guest_writable' callback for users

2014-10-09 Thread Amit Shah
On (Thu) 09 Oct 2014 [13:18:16], Markus Armbruster wrote: > Amit Shah writes: > > > Users of virtio-serial may want to know when a port becomes writable. A > > port can stop accepting writes if the guest port is open but not being > > read from. In this case, data gets queued up in the virtqueu

Re: [Qemu-devel] [PATCH v11 00/34] modify boot order of guest, and take effect after rebooting

2014-10-09 Thread Gonglei
> Subject: Re: [Qemu-devel] [PATCH v11 00/34] modify boot order of guest, and > take effect after rebooting > > On Thu, 09 Oct 2014 11:47:12 +0200 > Gerd Hoffmann wrote: > > > On Mi, 2014-10-08 at 19:00 +0800, Gonglei wrote: > > > On 2014/10/7 16:00, Gonglei (Arei) wrote: > > > > > > > From: Gon

Re: [Qemu-devel] [PATCH v11 17/34] net: remove bootindex property from qdev to qom

2014-10-09 Thread Gonglei
> Subject: Re: [Qemu-devel] [PATCH v11 17/34] net: remove bootindex property > from qdev to qom > > Il 07/10/2014 10:00, arei.gong...@huawei.com ha scritto: > > From: Gonglei > > > > Remove bootindex form qdev property to qom, things will > > continue to work just fine, and we can use qom feature

Re: [Qemu-devel] [PATCH v5 0/5] add description field in ObjectProperty and PropertyInfo struct

2014-10-09 Thread Gonglei
Andreas, ping? Best regards, -Gonglei > -Original Message- > From: qemu-devel-bounces+arei.gonglei=hotmail@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=hotmail@nongnu.org] On > Behalf Of Gonglei > Sent: Wednesday, October 08, 2014 6:46 PM > To: Paolo Bonzini > Cc: Huangwei

[Qemu-devel] [PULL v2 21/28] accel: Pass MachineState object to accel init functions

2014-10-09 Thread Paolo Bonzini
From: Eduardo Habkost Most of the machine options and machine state information is in the MachineState object, not on the MachineClass. This will allow init functions to use the MachineState object directly instead of qemu_get_machine_opts() or the current_machine global. Reviewed-by: Paolo Bonz

[Qemu-devel] [PULL v2 00/28] Changes for 2014-10-29

2014-10-09 Thread Paolo Bonzini
The following changes since commit 1831e150606a221898bf46ffaf0453e9952cbbc4: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-09-30 16:45:35 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fet

Re: [Qemu-devel] [PATCH 0/8] pending s390x patches for 2.2

2014-10-09 Thread Christian Borntraeger
Am 07.10.2014 12:58, schrieb Cornelia Huck: > Here's what I currently have on > > git://github.com/cohuck/qemu s390-next > > A headers update, cpu state handling in qemu and migration, and a > vhost-scsi-ccw bugfix. The gdb patch needs further discussion. > > I plan to send a pull request later

[Qemu-devel] [question] is it posssible that big-endian l1 table offset referenced by other I/O while updating l1 table offset in qcow2_update_snapshot_refcount?

2014-10-09 Thread Zhang Haoyu
Hi, I encounter a problem that after deleting snaptshot, the qcow2 image size is very larger than that it should be displayed by ls command, but the virtual disk size is okay via qemu-img info. I suspect that during updating l1 table offset, other I/O job reference the big-endian l1 table offset

Re: [Qemu-devel] [PATCH v2 1/1] virtio: serial: expose a 'guest_writable' callback for users

2014-10-09 Thread Markus Armbruster
Amit Shah writes: > Users of virtio-serial may want to know when a port becomes writable. A > port can stop accepting writes if the guest port is open but not being > read from. In this case, data gets queued up in the virtqueue, and > after the vq is full, writes to the port do not succeed. >

Re: [Qemu-devel] [PATCH v11 00/34] modify boot order of guest, and take effect after rebooting

2014-10-09 Thread Paolo Bonzini
Il 09/10/2014 11:47, Gerd Hoffmann ha scritto: > On Mi, 2014-10-08 at 19:00 +0800, Gonglei wrote: >> On 2014/10/7 16:00, Gonglei (Arei) wrote: >> >>> From: Gonglei >>> >>> Changes since v10: >>> 1. add handler for virtio-blk-pci/s390/ccw in PATCH 28. >>> 2. add especial bootidnex setter/getter f

Re: [Qemu-devel] [PATCH v11 17/34] net: remove bootindex property from qdev to qom

2014-10-09 Thread Paolo Bonzini
Il 07/10/2014 10:00, arei.gong...@huawei.com ha scritto: > From: Gonglei > > Remove bootindex form qdev property to qom, things will > continue to work just fine, and we can use qom features > which are not supported by qdev property. > > Signed-off-by: Gonglei > Reviewed-by: Gerd Hoffmann > -

Re: [Qemu-devel] [PATCH v11 07/34] bootindex: add a setter/getter functions wrapper for bootindex property

2014-10-09 Thread Paolo Bonzini
Il 07/10/2014 10:00, arei.gong...@huawei.com ha scritto: > From: Gonglei > > when we remove bootindex form qdev.property to qom.property, > we can use those functions set/get bootindex property for all > correlative devices. Meanwhile set the initial value of > bootindex to -1. > > Signed-off-by

Re: [Qemu-devel] [PATCH v11 04/34] fw_cfg: add fw_cfg_machine_reset function

2014-10-09 Thread Paolo Bonzini
Il 07/10/2014 10:00, arei.gong...@huawei.com ha scritto: > From: Gonglei > > We must assure that the changed bootindex can take effect > when guest is rebooted. So we introduce fw_cfg_machine_reset(), > which change the fw_cfg file's bootindex data using the new > global fw_boot_order list. > >

Re: [Qemu-devel] [PATCH v11 00/34] modify boot order of guest, and take effect after rebooting

2014-10-09 Thread Andreas Färber
Am 09.10.2014 um 12:09 schrieb Gonglei: > On 2014/10/9 17:47, Gerd Hoffmann wrote: > >> On Mi, 2014-10-08 at 19:00 +0800, Gonglei wrote: >>> On 2014/10/7 16:00, Gonglei (Arei) wrote: >>> From: Gonglei Changes since v10: 1. add handler for virtio-blk-pci/s390/ccw in PATCH 28.

Re: [Qemu-devel] [PATCH v11 00/34] modify boot order of guest, and take effect after rebooting

2014-10-09 Thread Michael Mueller
On Thu, 09 Oct 2014 11:47:12 +0200 Gerd Hoffmann wrote: > On Mi, 2014-10-08 at 19:00 +0800, Gonglei wrote: > > On 2014/10/7 16:00, Gonglei (Arei) wrote: > > > > > From: Gonglei > > > > > > Changes since v10: > > > 1. add handler for virtio-blk-pci/s390/ccw in PATCH 28. > > > 2. add especial

qemu-devel@nongnu.org

2014-10-09 Thread Fabien Chouteau
From: Jiri Gaisler AMBA plug&play is used by kernels to probe available devices (Timers, UART, etc...). This is a static declaration of devices implemented in QEMU. In the future, a more advanced version could compute those information directly from the device tree. Signed-off-by: Fabien Choutea

Re: [Qemu-devel] [PULL 00/28] Changes for 2014-10-09

2014-10-09 Thread Paolo Bonzini
Il 09/10/2014 12:55, Peter Maydell ha scritto: > (No, I don't know why the gcc for w32 complains about > repeat identical typedefs and none of my other gcc do.) Just an older version. It comes up at least half a month. Will send v2. Paolo

Re: [Qemu-devel] [PULL 00/28] Changes for 2014-10-09

2014-10-09 Thread Peter Maydell
On 9 October 2014 11:10, Paolo Bonzini wrote: > The following changes since commit 1831e150606a221898bf46ffaf0453e9952cbbc4: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2014-09-30 16:45:35 +0100) > > are available in the git repository at: > > > git://

[Qemu-devel] [PULL 13/28] accel: Make AccelClass.available() optional

2014-10-09 Thread Paolo Bonzini
From: Eduardo Habkost When we move accel classes outside accel.c, the available() function won't be necessary anymore, because the classes will be registered only if the accelerator code is really enabled at build time. Reviewed-by: Paolo Bonzini Signed-off-by: Eduardo Habkost Signed-off-by: P

  1   2   >