Re: [Qemu-devel] [PATCH RFC 2/4] check if we have space left for hotplugged memory

2014-06-15 Thread Michael S. Tsirkin
On Sat, Jun 14, 2014 at 12:48:57PM +0800, Hu Tao wrote: > If pc-dimm is specified on qemu command line, but only with > -m size (aka not -m size,maxmem,slots) then qemu will core dump. > > This patch fixes the problem. > > Signed-off-by: Hu Tao > --- > hw/mem/pc-dimm.c | 7 ++- > 1 file cha

Re: [Qemu-devel] [PATCH RFC 1/4] get rid of signed range

2014-06-15 Thread Michael S. Tsirkin
On Sat, Jun 14, 2014 at 12:48:56PM +0800, Hu Tao wrote: > Signed-off-by: Hu Tao This also fixed make check failures that I was seeing on 32 bit systems. Applied, but I split this patch up and applied as fixup to the original. In the future you can request such fixes by making subject be "fixup! "

Re: [Qemu-devel] Why does qemu not support qemu-system-armeb?

2014-06-15 Thread Peter Maydell
On 14 June 2014 14:49, Ljun <1275151...@qq.com> wrote: > Hello everyone,I am working on big endian for arm.I change the qemu > configure and create a qemu-system-armeb,but I want to know qemu whether > support armeb-softmmu. The answer to "why is there no qemu-system-armeb" is in two parts: (1) W

Re: [Qemu-devel] [PATCH RFC 3/4] exec: don't exit unconditionally if failed to allocate memory

2014-06-15 Thread Michael S. Tsirkin
On Sat, Jun 14, 2014 at 07:07:39PM +0200, Paolo Bonzini wrote: > Il 14/06/2014 06:48, Hu Tao ha scritto: > >return -1 instead. > > > >Now user can add objects memory-backend-ram on-the-fly, fail it if > >cannot allocate memory rather than quit qemu. > > > >Signed-off-by: Hu Tao > > This needs an

Re: [Qemu-devel] [PATCH RFC 0/4] fixes for pci tree

2014-06-15 Thread Michael S. Tsirkin
On Sat, Jun 14, 2014 at 12:48:55PM +0800, Hu Tao wrote: > Michael, > > This is fixes for your pci tree. > > patch 1 remove signed range as requested. This also fixes make check failures so I applied this. Others don't look like regressions to me - this is error handling in new functionality, co

Re: [Qemu-devel] [PATCH 0/2] qdev: fix pci use-after-free

2014-06-15 Thread Michael S. Tsirkin
On Wed, Jun 11, 2014 at 02:52:07PM +0200, Paolo Bonzini wrote: > See "Use-after-free during unrealize in system_reset" thread > and individual patches. > > Paolo As this is blocking testing of hotplug, I applied this on the pci tree. Thanks! > Paolo Bonzini (2): > qdev: reorganize error repor

[Qemu-devel] [PATCH] watchdog: Export watchdog actions list.

2014-06-15 Thread Hani Benhabiles
Also, use it instead of using hard-coded values. Signed-off-by: Hani Benhabiles --- Should have been part of the last monitor completion series, but better late then never. :) hw/watchdog/watchdog.c| 35 +++ include/sysemu/watchdog.h | 6 ++ monitor.c

Re: [Qemu-devel] [PATCH 0/2] qdev: fix pci use-after-free

2014-06-15 Thread Andreas Färber
Am 15.06.2014 12:02, schrieb Michael S. Tsirkin: > On Wed, Jun 11, 2014 at 02:52:07PM +0200, Paolo Bonzini wrote: >> See "Use-after-free during unrealize in system_reset" thread >> and individual patches. >> >> Paolo > > As this is blocking testing of hotplug, I applied this > on the pci tree. Re

Re: [Qemu-devel] [PATCH] watchdog: Export watchdog actions list.

2014-06-15 Thread Paolo Bonzini
Il 15/06/2014 12:03, Hani Benhabiles ha scritto: Also, use it instead of using hard-coded values. Signed-off-by: Hani Benhabiles --- Should have been part of the last monitor completion series, but better late then never. :) hw/watchdog/watchdog.c| 35 +++

Re: [Qemu-devel] Why does qemu not support qemu-system-armeb?

2014-06-15 Thread Paolo Bonzini
Il 15/06/2014 11:08, Peter Maydell ha scritto: On 14 June 2014 14:49, Ljun <1275151...@qq.com> wrote: Hello everyone,I am working on big endian for arm.I change the qemu configure and create a qemu-system-armeb,but I want to know qemu whether support armeb-softmmu. The answer to "why is there

Re: [Qemu-devel] [PATCH V6 16/29] qapi event: convert RTC_CHANGE

2014-06-15 Thread Paolo Bonzini
Il 13/06/2014 23:27, Eric Blake ha scritto: >> visit_start_struct(v, NULL, "", "RTC_CHANGE", 0, &local_err); >> if (local_err) { >> goto clean; >> } Hmm, qmp_output_start_struct() never sets errp. >> >> visit_type_int(v, &offset, "offset", &local_err); >> if (local_

Re: [Qemu-devel] [PATCH V6 16/29] qapi event: convert RTC_CHANGE

2014-06-15 Thread Paolo Bonzini
Il 15/06/2014 02:38, Wenchao Xia ha scritto: Once again, all callers of qapi_event_send_rtc_change() are passing a NULL errp to silently ignore errors; and I just audited that no errors happen anyways. Fixing it. No, please don't. I prefer the way you did it in v6. Paolo

Re: [Qemu-devel] [PATCH] watchdog: Export watchdog actions list.

2014-06-15 Thread Hani Benhabiles
On Sun, Jun 15, 2014 at 03:57:46PM +0200, Paolo Bonzini wrote: > Il 15/06/2014 12:03, Hani Benhabiles ha scritto: > >Also, use it instead of using hard-coded values. > > > >Signed-off-by: Hani Benhabiles > >--- > >Should have been part of the last monitor completion series, but better late > >then

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/2] prep: Remove some clearly wrong assumptions

2014-06-15 Thread Hervé Poussineau
Ping. Le 28/05/2014 01:23, Alexander Graf a écrit : On 28.05.14 01:21, Alexander Graf wrote: On 27.05.14 20:57, Hervé Poussineau wrote: Ping. Le 20/05/2014 07:34, Hervé Poussineau a écrit : Ping. Le 23/04/2014 23:19, Hervé Poussineau a écrit : Hi, These two patches remove some bugs for

Re: [Qemu-devel] [PATCH 05/10 v4] bsd-user: Implement new syscall print_sysarch and add strace support

2014-06-15 Thread Sean Bruno
On Tue, 2014-06-10 at 23:53 +0100, Peter Maydell wrote: > On 8 June 2014 17:57, Sean Bruno wrote: > > Signed-off-by: Sean Bruno > > --- > > bsd-user/freebsd/os-strace.h | 29 + > > bsd-user/freebsd/strace.list | 2 +- > > bsd-user/i386/syscall.h|

[Qemu-devel] [PATCH] tcg/optimize: Don't special case TCG_OPF_CALL_CLOBBER

2014-06-15 Thread Richard Henderson
With the "old" ldst ops we didn't know the real width of the result of the load, but with the "new" ldst ops we do. Signed-off-by: Richard Henderson --- tcg/optimize.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 16cebbe..34ae

[Qemu-devel] [PATCH 02/16] linux-user: support SO_ACCEPTCONN getsockopt option

2014-06-15 Thread Paul Burton
Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3921cff..e6afd30 100644 --- a/linux-user/syscall.c

[Qemu-devel] [PATCH 01/16] linux-user: translate the result of getsockopt SO_TYPE

2014-06-15 Thread Paul Burton
QEMU previously passed the result of the host syscall directly to the target program. This is a problem if the host & target have different representations of socket types, as is the case when running a MIPS target program on an x86 host. Introduce a host_to_target_sock_type helper function mirrori

[Qemu-devel] [PATCH 00/16] linux-user fixes & improvements

2014-06-15 Thread Paul Burton
This series fixes a number of bugs in QEMUs linux-user support, some specific to targetting the MIPS architecture but mostly generic. It also adds support for some previously unsupported syscalls & {g,s}etsockopt options. Paul Burton (16): linux-user: translate the result of getsockopt SO_TYPE

[Qemu-devel] [PATCH 05/16] linux-user: allow NULL arguments to mount

2014-06-15 Thread Paul Burton
Calls to the mount syscall can legitimately provide NULL as the value for the source of filesystemtype arguments, which QEMU would previously reject & return -EFAULT to the target program. An example of this is remounting an already mounted filesystem with different properties. Instead of rejectin

[Qemu-devel] [PATCH 08/16] linux-user: respect timezone for settimeofday

2014-06-15 Thread Paul Burton
The settimeofday syscall accepts a tz argument indicating the desired timezone to the kernel. QEMU previously ignored any argument provided by the target program & always passed NULL to the kernel. Instead, translate the argument & pass along the data userland provided. Although this argument is d

[Qemu-devel] [PATCH 07/16] linux-user: fix struct target_epoll_event layout for MIPS

2014-06-15 Thread Paul Burton
MIPS requires the pad field to 64b-align the data field just as ARM does. Signed-off-by: Paul Burton --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 69c3982..9fcb723 100644 --- a/linux-u

[Qemu-devel] [PATCH 12/16] linux-user: support {name_to, open_by}_handle_at syscalls

2014-06-15 Thread Paul Burton
Implement support for the name_to_handle_at and open_by_handle_at syscalls, allowing their use by the target program. Signed-off-by: Paul Burton --- linux-user/strace.c| 30 ++ linux-user/strace.list | 6 ++ linux-user/syscall.c | 50 +++

[Qemu-devel] [PATCH 13/16] linux-user: support the setns syscall

2014-06-15 Thread Paul Burton
Add support for the setns syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- linux-user/strace.list | 3 +++ linux-user/syscall.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/linux-user/strace.list b/linux-user/strace.list index 147f579..d5b8033 100644

[Qemu-devel] [PATCH 11/16] linux-user: support ioprio_{get, set} syscalls

2014-06-15 Thread Paul Burton
Add support for the ioprio_get & ioprio_set syscalls, allowing their use by target programs. Signed-off-by: Paul Burton --- linux-user/syscall.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0830205..c7f176a 100644 --- a

[Qemu-devel] [PATCH 15/16] linux-user: support the KDSIGACCEPT ioctl

2014-06-15 Thread Paul Burton
Add a definition of the KDSIGACCEPT ioctl & allow its use by target programs. Signed-off-by: Paul Burton --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 309fb21..cd21e64 100644 --

[Qemu-devel] [PATCH 14/16] linux-user: support the unshare syscall

2014-06-15 Thread Paul Burton
Add support for the unshare syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- linux-user/syscall.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 208c6c4..5412b1e 100644 --- a/linux-user/syscall.c +++ b/linu

[Qemu-devel] [PATCH 16/16] linux-user: support the SIOCGIFINDEX ioctl

2014-06-15 Thread Paul Burton
Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index cd21e64..20551a8 100644

[Qemu-devel] [PATCH 03/16] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options

2014-06-15 Thread Paul Burton
Translate the SO_SNDBUFFORCE & SO_RCVBUFFORCE options to setsockopt to the host values & perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton --- linux-user/syscall.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/sys

[Qemu-devel] [PATCH 04/16] linux-user: support SO_PASSSEC setsockopt option

2014-06-15 Thread Paul Burton
Translate the SO_PASSSEC option to setsockopt to the host value & perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton --- linux-user/socket.h | 2 ++ linux-user/syscall.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/linux-user/so

[Qemu-devel] [PATCH 10/16] linux-user: support timerfd_{create, gettime, settime} syscalls

2014-06-15 Thread Paul Burton
Adds support for the timerfd_create, timerfd_gettime & timerfd_settime syscalls, allowing use of timerfds by target programs. Signed-off-by: Paul Burton --- linux-user/strace.list | 9 + linux-user/syscall.c | 44 2 files changed, 53 insert

[Qemu-devel] [PATCH 09/16] linux-user: allow NULL tv argument for settimeofday

2014-06-15 Thread Paul Burton
The tv argument to the settimeofday syscall is allowed to be NULL, if the program only wishes to provide the timezone. QEMU previously returned -EFAULT when tv was NULL. Instead, execute the syscall & provide NULL to the kernel as the target program expected. Signed-off-by: Paul Burton --- linux

[Qemu-devel] [PATCH 06/16] linux-user: support strace of epoll_create1

2014-06-15 Thread Paul Burton
Add the epoll_create1 syscall to strace.list in order to display that syscall when it occurs, rather than a message about the syscall being unknown despite QEMU already implementing support for it. Signed-off-by: Paul Burton --- linux-user/strace.list | 3 +++ 1 file changed, 3 insertions(+) di

[Qemu-devel] bsd-user: master is broken

2014-06-15 Thread Sean Bruno
Trying to bisect a compile failure on master before I do anything else today. I'm getting a slew of linking failures right now due to unresolved symbols that appear to be needed by block/curl code. http://people.freebsd.org/~sbruno/ssl_fail_qemu.txt Lots of Curl_* functions and lots of SSL/Crypt

Re: [Qemu-devel] [PATCH 05/10 v4] bsd-user: Implement new syscall print_sysarch and add strace support

2014-06-15 Thread Peter Maydell
On 15 June 2014 16:33, Sean Bruno wrote: > I think there's some confusion between the strace support for the new > print_sysarch() and the existing syscall do_freebsd_sysarch(). Only because you've put parts of both in the same patch :-) > If I follow the code, the existing do_freebsd_sysarch()

Re: [Qemu-devel] [PATCH 05/10 v4] bsd-user: Implement new syscall print_sysarch and add strace support

2014-06-15 Thread Sean Bruno
On Sun, 2014-06-15 at 20:20 +0100, Peter Maydell wrote: > On 15 June 2014 16:33, Sean Bruno wrote: > > I think there's some confusion between the strace support for the new > > print_sysarch() and the existing syscall do_freebsd_sysarch(). > > Only because you've put parts of both in the same pat

Re: [Qemu-devel] bsd-user: master is broken

2014-06-15 Thread Sean Bruno
On Sun, 2014-06-15 at 12:10 -0700, Sean Bruno wrote: > Trying to bisect a compile failure on master before I do anything else > today. I'm getting a slew of linking failures right now due to > unresolved symbols that appear to be needed by block/curl code. > > http://people.freebsd.org/~sbruno/ss

Re: [Qemu-devel] bsd-user: master is broken

2014-06-15 Thread Sean Bruno
On Sun, 2014-06-15 at 13:06 -0700, Sean Bruno wrote: > rules.mak: Rewrite unnest-vars Reverting this resolves the primary failure. The logic here is off somehow. sean

[Qemu-devel] [PATCH 2/3] bsd-user: Add patches to fix AES_* link errors

2014-06-15 Thread Sean Bruno
Redefine functions as QEMU_AES_* to avoid conflicts with AES_* in -lcrypto needed (at least) by -lcurl. Take from emulators/qemu-devel/files/patch-include-qemu-aes.h Signed-off-by: Sean Bruno Signed-off-by: Ed Maste --- include/qemu/aes.h | 9 + 1 file changed, 9 insertions(+) diff --

[Qemu-devel] [PATCH 1/3] bsd-user: Revert part of update to rules.mk

2014-06-15 Thread Sean Bruno
In c5cb1afc4675bf5ff66e7a149d2a8cffba2eaa9e rules.mk change was causing complete failure on bsd-user when not using --disable-curl Signed-off-by: Sean Bruno --- rules.mak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules.mak b/rules.mak index dde8e00..4a33c27 100644 ---

[Qemu-devel] [PATCH 0/3] bsd-user: Fix linking/dependency issues

2014-06-15 Thread Sean Bruno
Recent changes to master caused complete failures to build bsd-user. Sean Bruno (3): bsd-user: Revert part of c5cb1afc4675bf5ff66e7a149d2a8cffba2eaa9e bsd-user: Add patches to fix AES_* link errors bsd-user: Implement strace support for getcwd syscall bsd-user/freebsd/strace.list | 1 + in

[Qemu-devel] [PATCH 3/3] bsd-user: Implement strace support for getcwd syscall

2014-06-15 Thread Sean Bruno
Signed-off-by: Sean Bruno --- bsd-user/freebsd/strace.list | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index 2800a2d..f10caaa 100644 --- a/bsd-user/freebsd/strace.list +++ b/bsd-user/freebsd/strace.list @@ -28,6 +28,7 @@ { TARGE

[Qemu-devel] [PATCH 3/3 v2] bsd-user: Implement strace support for getcwd syscall

2014-06-15 Thread Sean Bruno
Signed-off-by: Sean Bruno --- bsd-user/freebsd/strace.list | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index 2800a2d..f10caaa 100644 --- a/bsd-user/freebsd/strace.list +++ b/bsd-user/freebsd/strace.list @@ -28,6 +28,7 @@ { TARGE

[Qemu-devel] [PATCH 1/3 v2] bsd-user: Revert part of update to rules.mk

2014-06-15 Thread Sean Bruno
In c5cb1afc4675bf5ff66e7a149d2a8cffba2eaa9e rules.mk change was causing complete failure on bsd-user when not using --disable-curl Signed-off-by: Sean Bruno --- rules.mak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules.mak b/rules.mak index dde8e00..4a33c27 100644 ---

Re: [Qemu-devel] bsd-user: master is broken

2014-06-15 Thread Sean Bruno
On Sun, 2014-06-15 at 13:12 -0700, Sean Bruno wrote: > On Sun, 2014-06-15 at 13:06 -0700, Sean Bruno wrote: > > rules.mak: Rewrite unnest-vars > > Reverting this resolves the primary failure. The logic here is off > somehow. > > sean > > Ok, sent patchset in (v2 as, apparently, I cannot

[Qemu-devel] [PATCH 2/3 v2] bsd-user: Add patches to fix AES_* link errors

2014-06-15 Thread Sean Bruno
Redefine functions as QEMU_AES_* to avoid conflicts with AES_* in -lcrypto needed (at least) by -lcurl. Take from emulators/qemu-devel/files/patch-include-qemu-aes.h Signed-off-by: Sean Bruno Signed-off-by: Ed Maste --- include/qemu/aes.h | 9 + 1 file changed, 9 insertions(+) diff --

[Qemu-devel] [PATCH 0/3 v2] bsd-user: Fix linking/dependency issues

2014-06-15 Thread Sean Bruno
v2 Correct email address for Ed Maste Recent changes to master caused complete failures to build bsd-user. Sean Bruno (3): bsd-user: Revert part of c5cb1afc4675bf5ff66e7a149d2a8cffba2eaa9e bsd-user: Add patches to fix AES_* link errors bsd-user: Implement strace support for getcwd syscall

Re: [Qemu-devel] [PATCH] usb: Fix usb-bt-dongle segfault.

2014-06-15 Thread Hani Benhabiles
On Wed, Jun 11, 2014 at 08:58:08PM +0200, Paolo Bonzini wrote: > Il 11/06/2014 19:25, Hani Benhabiles ha scritto: > >Due to an incomplete initialization, adding a usb-bt-dongle device through > >HMP > >or QMP will cause a segmentation fault. > > > >Signed-off-by: Hani Benhabiles > >--- > > > >Not

Re: [Qemu-devel] [RFC v1 1/2] arm: Add the cortex-a9 CPU to the a9mpcore device

2014-06-15 Thread Alistair Francis
Ping On Tue, Jun 10, 2014 at 11:32 AM, Alistair Francis wrote: > This patch adds the Cortex-A9 ARM CPU to the A9MPCore. It > first does a check to make sure no other CPUs exist and if > they do the Cortex-A9 won't be added. This is implemented to > maintain compatibility and can be removed once a

[Qemu-devel] [Bug 599958] Re: Timedrift problems with Win7: hpet missing time drift fixups

2014-06-15 Thread AndCycle
I google about an old link talk about this issue can be fixed by not using virtio http://forum.proxmox.com/archive/index.php/t-5783.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/599958 Title:

Re: [Qemu-devel] [PATCH v10 3/3] sPAPR: Implement sPAPRPHBClass::eeh_handler

2014-06-15 Thread Gavin Shan
On Wed, Jun 11, 2014 at 07:37:48PM -0600, Alex Williamson wrote: >On Thu, 2014-06-12 at 10:02 +1000, Gavin Shan wrote: >> On Wed, Jun 11, 2014 at 02:26:51PM -0600, Alex Williamson wrote: >> >On Tue, 2014-06-10 at 12:03 +1000, Gavin Shan wrote: >> >> The patch implements sPAPRPHBClass::eeh_handler s

[Qemu-devel] [PULL 0/6] migration queue

2014-06-15 Thread Juan Quintela
Hi Peter This is the previous pull request with: - Added fix for RDMA - Change default downtime - fix the compilation error on 32bits, basically use RAM_ADDR_FMT for the format checked that it compiles Please, apply, Juan. The following changes since commit 06a59afac4505f5ed942db4200e5ca16fc

[Qemu-devel] [PATCH 1/6] savevm: Remove all the unneeded version_minimum_id_old (ppc)

2014-06-15 Thread Juan Quintela
After previous Peter patch, they are redundant. This way we don't assign them except when needed. Once there, there were lots of case where the ".fields" indentation was wrong: .fields = (VMStateField []) { and .fields = (VMStateField []) { Change all the combinations to: .

[Qemu-devel] [PATCH 4/6] migration: Increase default max_downtime from 30ms to 300ms

2014-06-15 Thread Juan Quintela
From: Alexey Kardashevskiy The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyw

[Qemu-devel] [PATCH 5/6] rdma: Fix block during rdma migration

2014-06-15 Thread Juan Quintela
From: Gonglei If the networking break or there's something wrong with rdma device(ib0 with no IP) during rdma migration, the main_loop of qemu will be blocked in rdma_destroy_id. I add rdma_ack_cm_event to fix this bug. Signed-off-by: Mo Yuxiang Signed-off-by: Gonglei Reviewed-by: Michael R. H

[Qemu-devel] [PATCH 3/6] vmstate: Refactor opening of files

2014-06-15 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah --- tests/test-vmstate.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c index 30cc721..8b242c4 100644

[Qemu-devel] [PATCH 6/6] migration: catch unknown flags in ram_load

2014-06-15 Thread Juan Quintela
From: Peter Lieven if a saved vm has unknown flags in the memory data qemu currently simply ignores this flag and continues which yields in an unpredictable result. This patch catches all unknown flags and aborts the loading of the vm. Additionally error reports are thrown if the migration abort

Re: [Qemu-devel] [PATCH 3/3] ppc debug: Add debug stub support

2014-06-15 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Friday, June 13, 2014 4:55 PM > To: Bhushan Bharat-R65777 > Cc: qemu-...@nongnu.org; qemu-devel@nongnu.org > Subject: Re: [PATCH 3/3] ppc debug: Add debug stub support > > > On 12.06.14 09:05, bharat.bhus...@free

Re: [Qemu-devel] [RFC v1 2/2] zynq: Update Zynq to init the CPU in the a9mpcore device

2014-06-15 Thread Peter Crosthwaite
On Tue, Jun 10, 2014 at 11:33 AM, Alistair Francis wrote: > This patch removes the initialisation of the ARM Cortex-A9 > in Zynq and instead allows the a9mpcore device to init the > CPU. This also updates components that rely on the CPU > and GIC, as they are now initialised in a slightly differen

Re: [Qemu-devel] [RFC v1 1/2] arm: Add the cortex-a9 CPU to the a9mpcore device

2014-06-15 Thread Peter Crosthwaite
On Tue, Jun 10, 2014 at 11:32 AM, Alistair Francis wrote: > This patch adds the Cortex-A9 ARM CPU to the A9MPCore. It > first does a check to make sure no other CPUs exist and if > they do the Cortex-A9 won't be added. This is implemented to > maintain compatibility and can be removed once all mac

Re: [Qemu-devel] [RFC v1 1/2] arm: Add the cortex-a9 CPU to the a9mpcore device

2014-06-15 Thread Alistair Francis
On Mon, Jun 16, 2014 at 2:43 PM, Peter Crosthwaite wrote: > On Tue, Jun 10, 2014 at 11:32 AM, Alistair Francis > wrote: >> This patch adds the Cortex-A9 ARM CPU to the A9MPCore. It >> first does a check to make sure no other CPUs exist and if >> they do the Cortex-A9 won't be added. This is imple

Re: [Qemu-devel] [PATCH v2 15/17] target-arm: A64: Emulate the SMC insn

2014-06-15 Thread Edgar E. Iglesias
On Wed, Jun 11, 2014 at 04:14:06PM -0500, Greg Bellows wrote: > On 9 June 2014 10:04, Edgar E. Iglesias wrote: > > > From: "Edgar E. Iglesias" > > > > Signed-off-by: Edgar E. Iglesias > > --- > > target-arm/cpu.h | 1 + > > target-arm/helper-a64.c| 1 + > > target-arm/helper.c

Re: [Qemu-devel] [PATCH RFC 0/4] fixes for pci tree

2014-06-15 Thread Hu Tao
On Sun, Jun 15, 2014 at 01:00:56PM +0300, Michael S. Tsirkin wrote: > On Sat, Jun 14, 2014 at 12:48:55PM +0800, Hu Tao wrote: > > Michael, > > > > This is fixes for your pci tree. > > > > patch 1 remove signed range as requested. > > This also fixes make check failures so I applied this. > > Ot

Re: [Qemu-devel] [PATCH RFC 4/4] memory-backend-file: error out if failed to allocate memory

2014-06-15 Thread Hu Tao
On Sat, Jun 14, 2014 at 07:09:37PM +0200, Paolo Bonzini wrote: > Il 14/06/2014 06:48, Hu Tao ha scritto: > >If user adds a memory-backend-file object using object_add command, > >specifying a non-existing directory for property mem-path, qemu > >will core dump with message: > > > > /nonexistingdir

Re: [Qemu-devel] qemu-img convert from raw to vmdk does not work in vmware esxi

2014-06-15 Thread Fam Zheng
On Fri, 06/13 15:00, Milos Vyletel wrote: > Hi, > > I've tried to convert my VM image from raw format to vmdk to create > OVF/OVA archive so that we can deploy our OS on other hypervisors. the > problem was that no matter how I've converted to vmdk vmware ESXi > (tried 4.1 and 5.5) complained that

Re: [Qemu-devel] [PATCH v2 07/17] target-arm: Add HCR_EL2

2014-06-15 Thread Edgar E. Iglesias
On Wed, Jun 11, 2014 at 10:48:25AM -0500, Greg Bellows wrote: > On 9 June 2014 10:04, Edgar E. Iglesias wrote: > > > From: "Edgar E. Iglesias" > > > > Signed-off-by: Edgar E. Iglesias > > --- > > target-arm/cpu.h| 35 +++ > > target-arm/helper.c | 27 +++

Re: [Qemu-devel] [RFC v1 2/2] zynq: Update Zynq to init the CPU in the a9mpcore device

2014-06-15 Thread Alistair Francis
On Mon, Jun 16, 2014 at 2:42 PM, Peter Crosthwaite wrote: > On Tue, Jun 10, 2014 at 11:33 AM, Alistair Francis > wrote: >> This patch removes the initialisation of the ARM Cortex-A9 >> in Zynq and instead allows the a9mpcore device to init the >> CPU. This also updates components that rely on the

[Qemu-devel] [PATCH V7 0/8] PSCI v0.2 support for KVM ARM/ARM64

2014-06-15 Thread Pranavkumar Sawargaonkar
This patchset adds the QEMU side changes for providing PSCI v0.2 to VM. ChangeLog: V7: - Sync linux headers against kvm tree and "next" branch V6: - Add psci_version field in ARMCPU struct. - Misc cleanups suggested on RFC V5 of this patch. ( http://www.spinics.net/lists/kvm-arm/msg09400.html)

[Qemu-devel] [PATCH V7 3/8] kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT

2014-06-15 Thread Pranavkumar Sawargaonkar
In-kernel PSCI v0.2 emulation of KVM ARM/ARM64 forwards SYSTEM_OFF and SYSTEM_RESET function calls to QEMU using KVM_EXIT_SYSTEM_EVENT exit reason. This patch updates kvm_cpu_exec() to handle KVM_SYSTEM_EVENT_SHUTDOWN and KVM_SYSTEM_EVENT_RESET system-level events from QEMU-side. Signed-off-by: P

[Qemu-devel] [PATCH V7 1/8] update-linux-headers.sh: Add psci.h to linux header sync-up script

2014-06-15 Thread Pranavkumar Sawargaonkar
We will be using linux/psci.h for KVM ARM/ARM64 hence add it to linux header sync-up script. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel Reviewed-by: Peter Maydell --- scripts/update-linux-headers.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc

[Qemu-devel] [PATCH V7 2/8] linux-headers: Update KVM headers with kvm tree's next branch.

2014-06-15 Thread Pranavkumar Sawargaonkar
Syncup KVM related linux headers from kvm tree and next branch using scripts/update-linux-headers.sh. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- linux-headers/asm-arm/kvm.h | 10 ++-- linux-headers/asm-arm64/kvm.h| 13 -- linux-headers/asm-mips/kv

[Qemu-devel] [PATCH V7 7/8] target-arm: Introduce per-CPU field for PSCI version

2014-06-15 Thread Pranavkumar Sawargaonkar
We require to know the PSCI version available to given CPU at potentially many places. Currently, we need to know PSCI version when generating DTB for virt machine. This patch introduce per-CPU 32bit field representing the PSCI version available to the CPU. The encoding of this 32bit field is same

[Qemu-devel] [PATCH V7 4/8] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64

2014-06-15 Thread Pranavkumar Sawargaonkar
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel Reviewed-by: Peter Maydell --- t

[Qemu-devel] [PATCH V7 8/8] Use PSCI v0.2 compatible string when KVM or TCG provides it

2014-06-15 Thread Pranavkumar Sawargaonkar
If we have PSCI v0.2 emulation available for KVM ARM/ARM64 or TCG then we need to provide PSCI v0.2 compatible string via generated DTB. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel Reviewed-by: Rob Herring --- hw/arm/virt.c | 16 +++- 1 file changed, 15 insert

[Qemu-devel] [PATCH V7 5/8] target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible

2014-06-15 Thread Pranavkumar Sawargaonkar
Latest linux kernel supports in-kernel emulation of PSCI v0.2 but to enable it we need to select KVM_ARM_VCPU_PSCI_0_2 feature using KVM_ARM_VCPU_INIT ioctl. Also, we can use KVM_ARM_VCPU_PSCI_0_2 feature for VCPU only when linux kernel has KVM_CAP_ARM_PSCI_0_2 capability. This patch updates kvm_

[Qemu-devel] [PATCH V7 6/8] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64

2014-06-15 Thread Pranavkumar Sawargaonkar
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU using kvm_arm_vcpu_init() so that all registers of VCPU are set to their reset values by in-kernel KVM code. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel Reviewed-by: Peter Maydell --- target-arm/kvm64.c | 4 ++