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

2014-06-16 Thread Michael S. Tsirkin
On Mon, Jun 16, 2014 at 02:29:08PM +0800, Hu Tao wrote: > 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 requeste

Re: [Qemu-devel] [Xen-devel] [RFC PATCH V2 1/2] xen: pass kernel initrd to qemu

2014-06-16 Thread Chun Yan Liu
>>> On 6/13/2014 at 04:28 PM, in message <1402648083.26678.17.ca...@kazak.uk.xensource.com>, Ian Campbell wrote: > On Thu, 2014-06-12 at 23:43 -0600, Chun Yan Liu wrote: > > > > +static char *parse_cmdline(XLU_Config *config) > > > > +{ > > > > +char *cmdline = NULL; > > > > +con

Re: [Qemu-devel] [PATCH v7 3/4] s390x: Migrate to new NMI interface

2014-06-16 Thread Cornelia Huck
On Sat, 14 Jun 2014 12:41:50 +1000 Alexey Kardashevskiy wrote: > On 06/13/2014 04:00 PM, Cornelia Huck wrote: > > On Fri, 13 Jun 2014 13:36:58 +1000 > > Alexey Kardashevskiy wrote: > > > >> This implements an NMI interface for s390 and s390-ccw machines. > >> > >> This removes #ifdef s390 branc

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

2014-06-16 Thread Peter Maydell
On 15 June 2014 21:34, Sean Bruno wrote: > 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 > ++

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

2014-06-16 Thread Peter Maydell
On 15 June 2014 21:47, Sean Bruno wrote: > 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

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

2014-06-16 Thread Peter Maydell
On 10 June 2014 02:32, Alistair Francis wrote: > This patch adds the Cortex-A9 ARM CPU to the A9MPCore. I think this is in general the right way to go. > +/* Properties for the A9 CPU */ > +DEFINE_PROP_UINT32("midr", A9MPPrivState, midr, 0), > +DEFINE_PROP_UINT64("reset-cbar", A9MPPr

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

2014-06-16 Thread Peter Crosthwaite
On Mon, Jun 16, 2014 at 5:40 PM, Peter Maydell wrote: > On 10 June 2014 02:32, Alistair Francis wrote: >> This patch adds the Cortex-A9 ARM CPU to the A9MPCore. > > I think this is in general the right way to go. > >> +/* Properties for the A9 CPU */ >> +DEFINE_PROP_UINT32("midr", A9MPPri

[Qemu-devel] [PATCH 1/7] spapr: Move DT memory node rendering to a helper

2014-06-16 Thread Alexey Kardashevskiy
This moves recurring bits of code related to memory@xxx nodes creation to a helper. This makes use of the new helper for node@0. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 48 1 file changed, 28 insertions(+), 20 deletions(-) diff

[Qemu-devel] [PATCH 4/7] spapr: Split memory nodes to power-of-two blocks

2014-06-16 Thread Alexey Kardashevskiy
Linux kernel expects nodes to have power-of-two size and does WARN_ON if this is not the case: [0.041052] devtmpfs: initialized [0.041292] [ cut here ] [0.041456] WARNING: at drivers/base/memory.c:115 This splits memory nodes into set of smaller blocks with a si

[Qemu-devel] [PATCH 7/7] numa: Allow empty nodes

2014-06-16 Thread Alexey Kardashevskiy
Currently NUMA nodes must go consequently and QEMU ignores nodes with @nodeid bigger than the number of NUMA nodes in the command line. This prevents us from creating memory-less nodes which is possible situation in POWERPC under pHyp or Sapphire. This makes nb_numa_nodes a total number of nodes o

[Qemu-devel] [PATCH 2/7] spapr: Use DT memory node rendering helper for other nodes

2014-06-16 Thread Alexey Kardashevskiy
This finishes refactoring by using the spapr_populate_memory_node helper for all nodes and removing leftovers from spapr_populate_memory(). This is not a part of the previous patch because the patches look nicer apart. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 19 ++--

[Qemu-devel] [PATCH 3/7] spapr: Refactor spapr_populate_memory()

2014-06-16 Thread Alexey Kardashevskiy
Current QEMU does not support memoryless NUMA nodes. This prepares SPAPR for that. This moves 2 calls of spapr_populate_memory_node() into the existing loop which handles nodes other than than the first one. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 31 +++

[Qemu-devel] [PATCH 0/7] spapr: rework memory nodes

2014-06-16 Thread Alexey Kardashevskiy
c4177479 "spapr: make sure RMA is in first mode of first memory node" introduced regression which prevents from running guests with memoryless NUMA node#0 which may happen on real POWER8 boxes and which would make sense to debug in QEMU. This patchset aim is to fix that and also fix various code

[Qemu-devel] [PATCH 5/7] spapr: Add a helper for node0_size calculation

2014-06-16 Thread Alexey Kardashevskiy
In multiple places there is a node0_size variable calculation which assumes that NUMA node #0 and memory node #0 are the same things which they are not. Since we are going to change it and do not want to change it in multiple places, let's make a helper. This adds a spapr_node0_size() helper and m

Re: [Qemu-devel] [PATCH] hw/virtio: enable common virtio feature for mmio device

2014-06-16 Thread Paolo Bonzini
Il 09/06/2014 10:00, Ming Lei ha scritto: On Wed, Jun 4, 2014 at 10:05 AM, Ming Lei wrote: Both 'indirect_desc' and 'event_idx' are bus independent features, and they should be enabled for mmio devices too. On arm64 quad core VM(qemu-kvm), the patch can increase block I/O performance a lot wit

[Qemu-devel] [PATCH 6/7] spapr: Fix ibm, associativity for memory nodes

2014-06-16 Thread Alexey Kardashevskiy
We want the associtivity lists of memory and CPU nodes to match but memory nodes have incorrect domain#3 which is zero for CPU so they won't match. This clears domain#3 in the list to match CPUs associtivity lists. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 2 +- 1 file changed, 1

Re: [Qemu-devel] [PATCH 0/7] spapr: rework memory nodes

2014-06-16 Thread Alexey Kardashevskiy
On 06/16/2014 05:53 PM, Alexey Kardashevskiy wrote: > c4177479 "spapr: make sure RMA is in first mode of first memory node" > introduced regression which prevents from running guests with memoryless > NUMA node#0 which may happen on real POWER8 boxes and which would make > sense to debug in QEMU. >

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

2014-06-16 Thread Hu Tao
On Mon, Jun 16, 2014 at 10:04:21AM +0300, Michael S. Tsirkin wrote: > On Mon, Jun 16, 2014 at 02:29:08PM +0800, Hu Tao wrote: > > 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

Re: [Qemu-devel] [PATCH v7 3/4] s390x: Migrate to new NMI interface

2014-06-16 Thread Alexey Kardashevskiy
On 06/16/2014 05:16 PM, Cornelia Huck wrote: > On Sat, 14 Jun 2014 12:41:50 +1000 > Alexey Kardashevskiy wrote: > >> On 06/13/2014 04:00 PM, Cornelia Huck wrote: >>> On Fri, 13 Jun 2014 13:36:58 +1000 >>> Alexey Kardashevskiy wrote: >>> This implements an NMI interface for s390 and s390-ccw

Re: [Qemu-devel] [PATCH v7 3/4] s390x: Migrate to new NMI interface

2014-06-16 Thread Alexander Graf
On 16.06.14 10:33, Alexey Kardashevskiy wrote: On 06/16/2014 05:16 PM, Cornelia Huck wrote: On Sat, 14 Jun 2014 12:41:50 +1000 Alexey Kardashevskiy wrote: On 06/13/2014 04:00 PM, Cornelia Huck wrote: On Fri, 13 Jun 2014 13:36:58 +1000 Alexey Kardashevskiy wrote: This implements an NMI in

[Qemu-devel] [Bug 1308341] Re: Multiple CPUs causes blue screen on Windows guest (14.04 regression)

2014-06-16 Thread Krzysztof Cybulski
I have done clean install of the server and yes, Windows VM freezes with hyperv before as well as after reinstall. I'm have reverted my servers to 12.04.4 until this is solved. Krzysiek -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU

[Qemu-devel] [PATCH v8] s390x: Migrate to new NMI interface

2014-06-16 Thread Alexey Kardashevskiy
This implements an NMI interface for s390 and s390-ccw machines. This removes #ifdef s390 branch in qmp_inject_nmi so new s390's nmi_monitor_handler() callback is going to be used for NMI. Since nmi_monitor_handler()-calling code is platform independent, CPUState::cpu_index is used instead of S39

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

2014-06-16 Thread Paolo Bonzini
Il 15/06/2014 23:37, Hani Benhabiles ha scritto: diff --git a/hw/usb/dev-bluetooth.c b/hw/usb/dev-bluetooth.c index a9661d2..6d02343 100644 --- a/hw/usb/dev-bluetooth.c +++ b/hw/usb/dev-bluetooth.c @@ -506,6 +506,12 @@ static int usb_bt_initfn(USBDevice *dev) usb_desc_create_serial(dev);

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

2014-06-16 Thread Alexander Graf
On 16.06.14 06:27, bharat.bhus...@freescale.com wrote: -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

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

2014-06-16 Thread Fam Zheng
On Mon, 06/16 08:36, Peter Maydell wrote: > On 15 June 2014 21:47, Sean Bruno wrote: > > 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 f

Re: [Qemu-devel] [PATCH] hw/arm/spitz: Avoid clash with Windows header symbol MOD_SHIFT

2014-06-16 Thread Peter Maydell
On 9 May 2014 13:56, Peter Maydell wrote: > On 20 February 2014 19:45, Peter Maydell wrote: >> The Windows headers provided by MinGW define MOD_SHIFT. Avoid >> it by using SPITZ_MOD_* for our constants here. >> >> Signed-off-by: Peter Maydell >> --- >> The other approach would be just to #undef

[Qemu-devel] hw/arm/virt: Provide PCI?

2014-06-16 Thread Claudio Fontana
On 14.06.2014 01:10, Peter Crosthwaite wrote: > On Thu, Jun 12, 2014 at 2:01 AM, Claudio Fontana > wrote: >> On 10.06.2014 19:06, Peter Maydell wrote: >>> UEFI mandates that the platform must include an RTC, so provide >>> one in 'virt', using the PL031. >>> >>> Signed-off-by: Peter Maydell >>> -

Re: [Qemu-devel] [PATCH] hw/virtio: enable common virtio feature for mmio device

2014-06-16 Thread Ming Lei
On Mon, Jun 16, 2014 at 3:54 PM, Paolo Bonzini wrote: > Il 09/06/2014 10:00, Ming Lei ha scritto: > >> On Wed, Jun 4, 2014 at 10:05 AM, Ming Lei wrote: >>> >>> Both 'indirect_desc' and 'event_idx' are bus independent features, >>> and they should be enabled for mmio devices too. >>> >>> On arm64

Re: [Qemu-devel] hw/arm/virt: Provide PCI?

2014-06-16 Thread Peter Maydell
On 16 June 2014 10:18, Claudio Fontana wrote: > On 14.06.2014 01:10, Peter Crosthwaite wrote: >> For PCI support it should just be a case of adding a PCI controller to >> the virt board, then -device should just work for pci devs. > > Thanks for your answer; that seems straightforward enough, > so

[Qemu-devel] Reminder: softfreeze for 2.1 is this Tuesday

2014-06-16 Thread Peter Maydell
Reminder: soft feature freeze for 2.1 is this Tuesday; All features should have patches on the list by this date; major features should have initial code committed. Hardfreeze will be 1st July. For planned RC and release dates see http://wiki.qemu.org/Planning/2.1 thanks -- PMM

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

2014-06-16 Thread Hu Tao
On Sun, Jun 15, 2014 at 11:53:52AM +0300, Michael S. Tsirkin wrote: > 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. >

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

2014-06-16 Thread Hu Tao
On Sun, Jun 15, 2014 at 12:00:55PM +0300, Michael S. Tsirkin wrote: > 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 o

Re: [Qemu-devel] [PATCH] hw/virtio: enable common virtio feature for mmio device

2014-06-16 Thread Paolo Bonzini
Il 16/06/2014 11:26, Ming Lei ha scritto: On Mon, Jun 16, 2014 at 3:54 PM, Paolo Bonzini wrote: Il 09/06/2014 10:00, Ming Lei ha scritto: On Wed, Jun 4, 2014 at 10:05 AM, Ming Lei wrote: Both 'indirect_desc' and 'event_idx' are bus independent features, and they should be enabled for mmio

Re: [Qemu-devel] [Qemu-ppc] [PATCH] qemu/target-ppc: software breakpoint support

2014-06-16 Thread bharat.bhus...@freescale.com
> -Original Message- > From: qemu-ppc-bounces+bharat.bhushan=freescale@nongnu.org > [mailto:qemu-ppc- > bounces+bharat.bhushan=freescale@nongnu.org] On Behalf Of Madhavan > Srinivasan > Sent: Sunday, June 15, 2014 2:38 AM > To: ag...@suse.de; pau...@samba.org > Cc: Madhavan Srini

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

2014-06-16 Thread Hu Tao
On Sun, Jun 15, 2014 at 12:58:47PM +0300, Michael S. Tsirkin wrote: > 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

Re: [Qemu-devel] [Xen-devel] [RFC PATCH V2 1/2] xen: pass kernel initrd to qemu

2014-06-16 Thread Ian Campbell
On Mon, 2014-06-16 at 01:14 -0600, Chun Yan Liu wrote: > > > > > @@ -1007,9 +1030,16 @@ static void parse_config_data(const char > > > > *config_source, > > > > > > > > > > switch(b_info->type) { > > > > > case LIBXL_DOMAIN_TYPE_HVM: > > > > > -if (!xlu_cfg_get_string

Re: [Qemu-devel] [PATCH v9 4/4] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-16 Thread Benoît Canet
The Saturday 14 Jun 2014 à 02:44:29 (+0200), Max Reitz wrote : > On 11.06.2014 15:24, Benoît Canet wrote: > >The to-replace-node-name is designed to allow repairing of broken Quorum > >file. > > "a broken Quorum file" or "broken Quorum files". > > >This patch introduce a new class TestRepairQuor

[Qemu-devel] [PATCH 00/27] vmstate-simplification queue

2014-06-16 Thread Juan Quintela
://github.com/juanquintela/qemu.git tags/vmstate-simplification/20140616 for you to fetch changes up to ea8060b30d1db88ab8e7904279264ad55842c835: vmstate: s/VMSTATE_INT32_LE/VMSTATE_INT32_POSITIVE_LE/ (2014-06-16 05:38:42 +0200

[Qemu-devel] [PATCH 02/27] vmstate: Return error in case of error

2014-06-16 Thread Juan Quintela
If there is an error while loading a field, we should stop reading and not continue with the rest of fields. And we should also set an error in qemu_file. Signed-off-by: Juan Quintela --- vmstate.c | 4 1 file changed, 4 insertions(+) diff --git a/vmstate.c b/vmstate.c index b5882fa..c996

[Qemu-devel] [PATCH 01/27] migration: Remove unneeded minimum_version_id_old

2014-06-16 Thread Juan Quintela
Once there, make checkpatch happy. Signed-off-by: Juan Quintela --- hw/usb/hcd-ohci.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index cd87074..cace945 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -1988,8 +1988,7

[Qemu-devel] [PATCH 03/27] vmstate: Refactor & increase tests for primitive types

2014-06-16 Thread Juan Quintela
This commit refactor the simple tests to test all integer types. We move to hex because it is easier to read values of different types. Signed-off-by: Juan Quintela --- tests/test-vmstate.c | 273 +++ 1 file changed, 212 insertions(+), 61 deletions

[Qemu-devel] [PATCH 10/27] vmstate: Test for VMSTATE_INT8_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_INT8_V, we are removing versioning, would use only tests. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 6 +++--- tests/test-vmstate.c| 4 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/v

[Qemu-devel] [PATCH 06/27] vmstate: Remove VMSTATE_UINTL_EQUAL_V

2014-06-16 Thread Juan Quintela
It was not used anywhere. Signed-off-by: Juan Quintela --- include/hw/hw.h | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/hw/hw.h b/include/hw/hw.h index 33bdb92..2b68ac3 100644 --- a/include/hw/hw.h +++ b/include/hw/hw.h @@ -51,22 +51,20 @@ int qemu_boot_

[Qemu-devel] [PATCH 05/27] vmstate: Create test functions for versions until 15

2014-06-16 Thread Juan Quintela
Using macros, just to avoid repeating code. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 16 vmstate.c | 22 ++ 2 files changed, 38 insertions(+) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index

[Qemu-devel] [PATCH 07/27] vmstate: Change VMSTATE_INTTL_V to VMSTATE_INTTL_TEST

2014-06-16 Thread Juan Quintela
And fix all users. VMSTATE_UINT64_TEST don't exist. Create it. Signed-off-by: Juan Quintela --- include/hw/hw.h | 10 +- include/migration/vmstate.h | 3 +++ target-i386/machine.c | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/hw/hw

[Qemu-devel] [PATCH 12/27] vmstate: Test for VMSTATE_INT32_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_INT32_V, we are removing versioning. Move all users to use tests. Signed-off-by: Juan Quintela --- hw/input/ps2.c | 2 +- include/migration/vmstate.h | 6 +++--- target-i386/machine.c | 4 ++-- tests/test-vmstate.c| 4 4 files changed, 10 insertions

[Qemu-devel] [PATCH 13/27] vmstate: test for VMSTATE_INT64_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_INT64_V, we are removing versioning. Move all users to VMSTATE_INT64_TEST. Signed-off-by: Juan Quintela --- cpus.c | 2 +- hw/timer/mc146818rtc.c | 2 +- hw/usb/hcd-uhci.c | 2 +- include/migration/vmstate.h | 6 +++--- tests/test-vmstate.c

[Qemu-devel] [PATCH 04/27] vmstate: Port versioned tests to new format

2014-06-16 Thread Juan Quintela
Signed-off-by: Juan Quintela --- tests/test-vmstate.c | 363 ++- 1 file changed, 185 insertions(+), 178 deletions(-) diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c index a462335..d0839c3 100644 --- a/tests/test-vmstate.c +++ b/tests/test-

[Qemu-devel] [PATCH 08/27] vmstate: Remove unused VMSTATE_UINTTL_ARRAY_V

2014-06-16 Thread Juan Quintela
Signed-off-by: Juan Quintela --- include/hw/hw.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/include/hw/hw.h b/include/hw/hw.h index 211eb8b..2c19297 100644 --- a/include/hw/hw.h +++ b/include/hw/hw.h @@ -53,21 +53,18 @@ int qemu_boot_set(const char *boot_order

[Qemu-devel] [PATCH 17/27] vmstate: Test for VMSTATE_UINT64_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_UINT64_V, we are removing versioning. Move all users to VMSTATE_UINT64_TEST. Signed-off-by: Juan Quintela --- hw/timer/mc146818rtc.c | 6 +++--- include/migration/vmstate.h | 9 +++-- target-i386/machine.c | 30 +++--- tests/test-vmstate.c

[Qemu-devel] [PATCH 16/27] vmstate: Test for VMSTATE_UINT32_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_UINT32_V, we are removing versioning. Move all users to VMSTATE_UINT32_TEST. Signed-off-by: Juan Quintela --- hw/arm/stellaris.c | 2 +- hw/display/pl110.c | 2 +- hw/gpio/pl061.c | 2 +- hw/intc/ioapic_common.c | 2 +- hw/misc/arm_sysctl.c

[Qemu-devel] [PATCH 26/27] vmstate: Test for VMSTATE_INT32_LE

2014-06-16 Thread Juan Quintela
Add tests for less/more than the value on destination. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 2 +- tests/test-vmstate.c| 20 +++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmst

[Qemu-devel] [PATCH 15/27] vmstate: Test for VMSTATE_UINT16_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_UINT16_V, we are removing versioning. Move all users to VMSTATE_UINT16_TEST. Signed-off-by: Juan Quintela --- hw/char/serial.c| 2 +- hw/net/lan9118.c| 4 ++-- include/migration/vmstate.h | 9 +++-- target-i386/machine.c | 8 tests/test-vm

[Qemu-devel] [PATCH 22/27] vmstate: Test for VMSTATE_UINT16_EQUAL

2014-06-16 Thread Juan Quintela
We change only user of VMSTATE_UINT16_EQUAL_V to VMSTATE_UINT16_EQUAL_TEST. Signed-off-by: Juan Quintela --- hw/nvram/eeprom93xx.c | 7 ++- include/migration/vmstate.h | 8 tests/test-vmstate.c| 8 +++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git

[Qemu-devel] [PATCH 19/27] vmstate: Test for VMSTATE_UNUSED

2014-06-16 Thread Juan Quintela
Remove VMSTATE_UNUSED_V and fix only user. Signed-off-by: Juan Quintela --- hw/intc/ioapic_common.c | 3 ++- include/migration/vmstate.h | 11 ++- tests/test-vmstate.c| 5 + 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/hw/intc/ioapic_common.c b/hw/int

[Qemu-devel] [PATCH 18/27] vmstate: Test for VMSTATE_FLOAT64

2014-06-16 Thread Juan Quintela
Remove unused VMSTATE_FLOAT64_V. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 5 + tests/test-vmstate.c| 5 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 35b5663..c877b16 100644 -

[Qemu-devel] [PATCH 20/27] vmstate: Test for VMSTATE_BITMAP

2014-06-16 Thread Juan Quintela
Remove the unused version field (was unused). Signed-off-by: Juan Quintela --- hw/sd/sd.c | 2 +- include/migration/vmstate.h | 4 +-- tests/test-vmstate.c| 75 + 3 files changed, 78 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH v10 0/4] Quorum maintainance operations

2014-06-16 Thread Benoît Canet
in v10: address max comments Benoît Canet (4): quorum: Add the rewrite-corrupted parameter to quorum block: Add node-name argument to drive-mirror block: Add replaces argument to drive-mirror qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode. block

[Qemu-devel] [PATCH 21/27] vmstate: Test for VMSTATE_UINT8_EQUAL

2014-06-16 Thread Juan Quintela
We introduce another full test. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 2 +- tests/test-vmstate.c| 42 ++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstat

[Qemu-devel] [PATCH 27/27] vmstate: s/VMSTATE_INT32_LE/VMSTATE_INT32_POSITIVE_LE/

2014-06-16 Thread Juan Quintela
From: "Michael S. Tsirkin" As the macro verifies the value is positive, rename it to make the function clearer. Signed-off-by: Michael S. Tsirkin Signed-off-by: Juan Quintela --- tests/test-vmstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-vmstate.c b/te

[Qemu-devel] [PATCH v10 4/4] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-16 Thread Benoît Canet
The to-replace-node-name is designed to allow repairing a broken Quorum file. This patch introduces a new class TestRepairQuorum testing that the feature works. Some further work will be done on QEMU to improve the robustness of the tests. Signed-off-by: Benoit Canet --- tests/qemu-iotests/041

Re: [Qemu-devel] [PULL 4/5] trace: Multi-backend tracing

2014-06-16 Thread Peter Maydell
On 9 June 2014 16:23, Stefan Hajnoczi wrote: > From: Lluís Vilanova > > Adds support to compile QEMU with multiple tracing backends at the same time. > > For example, you can compile QEMU with: > > $ ./configure --enable-trace-backends=ftrace,dtrace > > Where 'ftrace' can be handy for having an

[Qemu-devel] [PATCH v10 2/4] block: Add node-name argument to drive-mirror

2014-06-16 Thread Benoît Canet
This new argument can be used to specify the node-name of the new mirrored BDS. Signed-off-by: Benoit Canet Reviewed-by: Max Reitz --- blockdev.c | 11 +-- hmp.c| 1 + qapi/block-core.json | 4 qmp-commands.hx | 3 +++ 4 files changed, 17 insertion

[Qemu-devel] [PATCH v10 3/4] block: Add replaces argument to drive-mirror

2014-06-16 Thread Benoît Canet
drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet Reviewed-by: Max Reitz --- block.c | 17 ++ block/mirror.c| 60 +

[Qemu-devel] [PATCH 25/27] vmstate: Test for VMSTATE_INT32_EQUAL

2014-06-16 Thread Juan Quintela
Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 2 +- tests/test-vmstate.c| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 4fe199a..4aef1cf 100644 --- a/include/migration/vmstate.h +++ b/in

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

2014-06-16 Thread Paolo Bonzini
Il 16/06/2014 11:54, Hu Tao ha scritto: > > This needs an audit of all callers or, alternatively, we need to add > > memory_region_init_ram_nofail. Better leave it for after the merge. Paolo, IIUC you suggested we fix it after merge. Yes. > Specifically memory_region_init_ram_from_file does

[Qemu-devel] [PATCH v2 0/4] fixes for pci tree, v2

2014-06-16 Thread Hu Tao
Michael, This is fixes for your pci tree v2. please review. thanks! changes to v1: 1. adds the missing query-memdev and change into querying qom for memdevs(patch 1) 2. tweak error message (patch 2) 3. improve error handling for memory-backend-file (patch 3) 4. fixup the problem that no

[Qemu-devel] [PATCH v2 3/4] memory-backend-file: improve error handling

2014-06-16 Thread Hu Tao
This patch fixes two problems of memory-backend-file: 1. 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: No such file or directory Bad ram offset f

[Qemu-devel] [PATCH v2 1/4] qmp: add query-memdev

2014-06-16 Thread Hu Tao
Add qmp command query-memdev to query for information of memory devices Signed-off-by: Hu Tao --- numa.c | 84 qapi-schema.json | 40 +++ qmp-commands.hx | 38 + 3 files changed, 1

[Qemu-devel] [PATCH v10 1/4] quorum: Add the rewrite-corrupted parameter to quorum

2014-06-16 Thread Benoît Canet
On read operations when this parameter is set and some replicas are corrupted while quorum can be reached quorum will proceed to rewrite the correct version of the data to fix the corrupted replicas. This will shine with SSD where the FTL will remap the same block at another place on rewrite. Sig

[Qemu-devel] [PATCH v2 4/4] fixup! numa: add -numa node, memdev= option

2014-06-16 Thread Hu Tao
note: this is a fixup that can be squashed into commit 0886aa7db0e4. if numa node number doesn't start from 0 then qemu will core dump. cmd line to reproduce: ./x86_64-softmmu/qemu-system-x86_64 -hda /home/data/libvirt-images/f18.img -m 128M,maxmem=2G,slots=3 -qmp unix:/tmp/m,server,nowait -mon

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

2014-06-16 Thread Hu Tao
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 changed, 7 insertions(+) diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c in

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

2014-06-16 Thread Paolo Bonzini
Il 16/06/2014 11:12, Fam Zheng ha scritto: On Mon, 06/16 08:36, Peter Maydell wrote: On 15 June 2014 21:47, Sean Bruno wrote: In c5cb1afc4675bf5ff66e7a149d2a8cffba2eaa9e rules.mk change was causing complete failure on bsd-user when not using --disable-curl Signed-off-by: Sean Bruno --- rule

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

2014-06-16 Thread Andreas Färber
Am 16.06.2014 06:43, schrieb 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 >

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

2014-06-16 Thread Andreas Färber
Am 16.06.2014 08:04, schrieb 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

Re: [Qemu-devel] [RFC v2 01/39] q35: Use PC_Q35_COMPAT_1_4 on pc-q35-1.4 compat_props

2014-06-16 Thread Andreas Färber
Am 13.06.2014 21:43, schrieb Eduardo Habkost: > pc-q35-1.4 was incorrectly using PC_COMPAT_1_4 instead of > PC_Q35_COMPAT_1_4. > > The only side-effect was that the hpet compat property (inherited from > PC_Q35_COMPAT_1_7) was missing. > > Without this patch, pc-q35-1.4 incorrectly initializes hp

[Qemu-devel] Endian control register

2014-06-16 Thread Benjamin Herrenschmidt
Hi ! So while trying to solve an issue we have with qemu/kvm and powerpc who can be both LE and BE nowadays, we thought the ideal solution would be to have a register in the emulated VGA to control the endian. Since qemu wishes to remain as much as possible in sync / compatible with Bochs, I'm po

Re: [Qemu-devel] [RFC v2 06/39] vl.c: Use qdev_prop_register_global() for single globals

2014-06-16 Thread Andreas Färber
Am 13.06.2014 21:43, schrieb Eduardo Habkost: > Instead of using an array when registeting a single global, simply call > qdev_prop_register(). > > Signed-off-by: Eduardo Habkost Reviewed-by: Andreas Färber Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff

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

2014-06-16 Thread Peter Crosthwaite
On Mon, Jun 16, 2014 at 8:19 PM, Andreas Färber wrote: > Am 16.06.2014 06:43, schrieb 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 >>>

[Qemu-devel] [PATCH 14/27] vmstate: Test for VMSTATE_UINT8_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_UINT8_V, we are removing versioning. Move all users to VMSTATE_UINT8_TEST. Signed-off-by: Juan Quintela --- hw/char/serial.c| 2 +- hw/ide/core.c | 2 +- hw/net/ne2000.c | 2 +- hw/timer/ds1338.c | 2 +- hw/timer/hpet.c

Re: [Qemu-devel] [RFC v2 08/39] pc: Register machine classes directly instead of using QEMUMachine

2014-06-16 Thread Andreas Färber
Am 13.06.2014 21:43, schrieb Eduardo Habkost: > This is a (mostly) blind and mechanical conversion of the PC QEMUMachine > definitions to corresponding class registration code. > > Having the PC code converted to pure QOM registration code will help us > move PC-specific machine state that is curr

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

2014-06-16 Thread Peter Maydell
repository at: > > > git://github.com/juanquintela/qemu.git tags/migration/20140616 > > for you to fetch changes up to db80facefa62dff42bb50c73b0f03eda5f732b49: > > migration: catch unknown flags in ram_load (2014-06-16 04:55:27 +0200) > >

[Qemu-devel] [PATCH 11/27] vmstate: Test for VMSTATE_INT16_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATES_INT16_V, we are removing versioning, would use only tests. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 6 +++--- tests/test-vmstate.c| 4 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration

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

2014-06-16 Thread Igor Mammedov
On Mon, 16 Jun 2014 18:05:42 +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 changed,

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

2014-06-16 Thread Peter Maydell
On 16 June 2014 11:19, Andreas Färber wrote: > Am 16.06.2014 06:43, schrieb Peter Crosthwaite: >> So you could add an integer property listener to init them earlier (or >> even do dynamic extending/freeing or the allocated CPUs). I'm not sure >> exactly what we are really supposed to do though, wh

Re: [Qemu-devel] Endian control register

2014-06-16 Thread Peter Maydell
On 16 June 2014 11:30, Benjamin Herrenschmidt wrote: > So while trying to solve an issue we have with qemu/kvm and powerpc who > can be both LE and BE nowadays, we thought the ideal solution would be > to have a register in the emulated VGA to control the endian. > Any suggestion ? Comment ? Flam

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

2014-06-16 Thread Igor Mammedov
On Mon, 16 Jun 2014 18:05:42 +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 changed,

Re: [Qemu-devel] [PATCH] hw/block/pflash_cfi01: Report correct size info for parallel configs

2014-06-16 Thread Peter Maydell
On 10 June 2014 15:03, Peter Maydell wrote: > If the flash device is configured with a device-width which is > not equal to the bank-width, indicating that it is actually several > narrow flash devices in parallel, the CFI table should report the > number of blocks and the size of a single device,

[Qemu-devel] [PATCH 24/27] vmstate: Test for VMSTATE_UINT64_EQUAL

2014-06-16 Thread Juan Quintela
Remove unused VMSTATE_UINT64_EQUAL_V. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 10 +++--- tests/test-vmstate.c| 2 ++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 73fd6c6..4fe199a

[Qemu-devel] [PATCH 23/27] vmstate: Test for VMSTATE_UINT32_EQUAL

2014-06-16 Thread Juan Quintela
Remove unused VMSTATE_UINT32_EQUAL_V. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 9 +++-- tests/test-vmstate.c| 2 ++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index e06a091..73fd6c6 10

[Qemu-devel] [PATCH 09/27] vmstate: Test for VMSTATE_BOOL_TEST

2014-06-16 Thread Juan Quintela
Remove VMSTATE_BOOL_V, we are removing versioning, would use only tests. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 6 +++--- tests/test-vmstate.c| 44 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/includ

Re: [Qemu-devel] [PATCH v8] s390x: Migrate to new NMI interface

2014-06-16 Thread Cornelia Huck
On Mon, 16 Jun 2014 18:57:45 +1000 Alexey Kardashevskiy wrote: > This implements an NMI interface for s390 and s390-ccw machines. > > This removes #ifdef s390 branch in qmp_inject_nmi so new s390's > nmi_monitor_handler() callback is going to be used for NMI. > > Since nmi_monitor_handler()-cal

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

2014-06-16 Thread Andreas Färber
Am 16.06.2014 12:34, schrieb Peter Crosthwaite: > On Mon, Jun 16, 2014 at 8:19 PM, Andreas Färber wrote: >> However a more fundamental issue that PMM was unsure about is whether >> the CPUs should be child<> of MPCore as done here or a sibling of the >> MPCore container. >> > > I'll go with child

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

2014-06-16 Thread Peter Maydell
On 16 June 2014 07:53, Pranavkumar Sawargaonkar wrote: > 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 Which commit hash were the headers sync'd against? This info ought to be in the commit

Re: [Qemu-devel] Endian control register

2014-06-16 Thread Benjamin Herrenschmidt
On Mon, 2014-06-16 at 11:45 +0100, Peter Maydell wrote: > On 16 June 2014 11:30, Benjamin Herrenschmidt > wrote: > > So while trying to solve an issue we have with qemu/kvm and powerpc who > > can be both LE and BE nowadays, we thought the ideal solution would be > > to have a register in the emu

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

2014-06-16 Thread Michael S. Tsirkin
On Mon, Jun 16, 2014 at 06:05:40PM +0800, Hu Tao wrote: > Michael, > > This is fixes for your pci tree v2. please review. thanks! Patches 1,4 applied. Thanks! > changes to v1: > > 1. adds the missing query-memdev and change into querying qom for > memdevs(patch 1) > 2. tweak error message

Re: [Qemu-devel] [RFC v2 09/39] pc: Eliminate pc_common_machine_options()

2014-06-16 Thread Andreas Färber
Am 13.06.2014 21:43, schrieb Eduardo Habkost: > The TYPE_PC_MACHINE parent class can initialize the common options for > all PC machines. > > Signed-off-by: Eduardo Habkost Reviewed-by: Andreas Färber Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,

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

2014-06-16 Thread Peter Maydell
On 16 June 2014 11:58, Andreas Färber wrote: > Well, for Cortex-A9 that may work. But Cortex-A15 (and Cortex-A5x if > existant by now) should also be refactored alongside, as proof of > concept - can you really create num_cpu cortex-a15 CPUs on the MPCore > for a big.LITTLE configuration? I'd be r

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

2014-06-16 Thread Andreas Färber
Am 16.06.2014 13:11, schrieb Peter Maydell: > On 16 June 2014 11:58, Andreas Färber wrote: >> Well, for Cortex-A9 that may work. But Cortex-A15 (and Cortex-A5x if >> existant by now) should also be refactored alongside, as proof of >> concept - can you really create num_cpu cortex-a15 CPUs on the

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

2014-06-16 Thread Andreas Färber
Am 16.06.2014 12:44, schrieb Peter Maydell: > On 16 June 2014 11:19, Andreas Färber wrote: >> Am 16.06.2014 06:43, schrieb Peter Crosthwaite: >>> So you could add an integer property listener to init them earlier (or >>> even do dynamic extending/freeing or the allocated CPUs). I'm not sure >>> ex

  1   2   3   4   >