Re: [Qemu-devel] [RFC PATCH v2 01/12] mc: add documentation for micro-checkpointing

2014-03-02 Thread Michael R. Hines
On 02/21/2014 05:44 PM, Dr. David Alan Gilbert wrote: It's not clear to me how much of this (or any) of this control loop should be in QEMU or in the management software, but I would definitely agree that a minimum of at least the ability to detect the situation and remedy the situation should be

Re: [Qemu-devel] [PATCH v2] virtio-net: add a field to indicate if vlan table is used

2014-03-02 Thread Amos Kong
On Fri, Feb 28, 2014 at 01:29:59PM -0500, Luiz Capitulino wrote: > On Fri, 21 Feb 2014 18:01:40 +0800 > Amos Kong wrote: > > > On Thu, Feb 20, 2014 at 12:46:14PM -0500, Vlad Yasevich wrote: > > > On 02/20/2014 11:38 AM, Amos Kong wrote: > > > > Stefan Fritsch just fixed a virtio-net driver bug [1

[Qemu-devel] [PATCH] target-i386: bugfix of Intel MPX

2014-03-02 Thread Liu, Jinsong
>From 3a7783cd9a0556787809d3d5ecb5f2b85dd9fc02 Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Mon, 3 Mar 2014 18:56:39 +0800 Subject: [PATCH] target-i386: bugfix of Intel MPX The correct size of cpuid 0x0d sub-leaf 4 is 0x40, not 0x10. This is confirmed by Anvin H Peter and Mallick Asit K. Sig

Re: [Qemu-devel] [PATCH v18 13/14] memory backend: fill memory backend ram fields

2014-03-02 Thread Hu Tao
On Tue, Feb 25, 2014 at 06:09:20PM +0800, Hu Tao wrote: > On Wed, Feb 19, 2014 at 10:03:13AM +0100, Paolo Bonzini wrote: > > <...> > > > > static int > > > ram_backend_memory_init(HostMemoryBackend *backend, Error **errp) > > > { > > >+HostMemoryBackendRam *ram_backend = MEMORY_BACKEND_RAM(ba

Re: [Qemu-devel] e1000 memory corruption in guest OS

2014-03-02 Thread Alexey Kardashevskiy
On 03/02/2014 08:31 AM, Paolo Bonzini wrote: > Il 01/03/2014 13:30, Alexey Kardashevskiy ha scritto: >>> > >>> > Corrupted DMA buffer is 0x e0 -- 0x7f15c313f000. >>> > The e1000 packet is at 0x12ffac2 -- 0x7f15c313eac2. >>> > >>> > (0x7f15c313f000 - 0x7f15c313eac2) = 0x53e which is less than 0

[Qemu-devel] [PULL 6/7] timer: move general utility functions together

2014-03-02 Thread Xuebing Wang
Signed-off-by: Xuebing Wang Reviewed-By: Alex Bligh --- qemu-timer.c | 97 ++ 1 file changed, 50 insertions(+), 47 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index c9801da..e592c14 100644 --- a/qemu-timer.c +++ b/qemu-timer.c

[Qemu-devel] [PULL 4/7] timer: move QEMUTimerListGroup function to be below QEMUClockType

2014-03-02 Thread Xuebing Wang
Signed-off-by: Xuebing Wang Reviewed-By: Alex Bligh --- qemu-timer.c | 86 ++ 1 file changed, 45 insertions(+), 41 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index 471150c..6f13a76 100644 --- a/qemu-timer.c +++ b/qemu-timer.c

[Qemu-devel] [PULL 3/7] timer: move QEMUClockType related functions together

2014-03-02 Thread Xuebing Wang
Signed-off-by: Xuebing Wang Reviewed-By: Alex Bligh --- qemu-timer.c | 160 ++ 1 file changed, 82 insertions(+), 78 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index 2db87ba..471150c 100644 --- a/qemu-timer.c +++ b/qemu-timer.c

[Qemu-devel] [PULL 5/7] timer: move QEMUTimer related functions together

2014-03-02 Thread Xuebing Wang
Signed-off-by: Xuebing Wang Reviewed-By: Alex Bligh --- qemu-timer.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index 6f13a76..c9801da 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -548,6 +548,9 @@ int qemu_poll_ns(GPollFD *f

[Qemu-devel] [PULL 7/7] timer: clean unnecessary #include and use minimal required #include

2014-03-02 Thread Xuebing Wang
Signed-off-by: Xuebing Wang Reviewed-By: Alex Bligh --- qemu-timer.c |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index e592c14..21aff82 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -22,13 +22,10 @@ * THE SOFTWARE. */ -#incl

[Qemu-devel] [PULL 1/7] timer: move QEMUTimerList functions together

2014-03-02 Thread Xuebing Wang
This patch does below: - Move function timerlist_has_timers() to be first QEMUTimerList function because there is a chance that we will make it private - Move QEMUTimerList related functions together - Remove below comments for function timerlist_deadline_ns(), because: -- There is a

[Qemu-devel] [PULL 2/7] timer: make QEMUTimerList functions private (remove from APIs)

2014-03-02 Thread Xuebing Wang
This patch does below: - Make QEMUTimerList functions private (remove from APIs) - Comment out function QEMUTimerList timerlist_get_clock() in order to fix compile error Signed-off-by: Xuebing Wang Reviewed-By: Alex Bligh --- include/qemu/timer.h | 94 -

[Qemu-devel] [PULL 0/7] refactor timer

2014-03-02 Thread Xuebing Wang
Hi Paolo, Stephen, The following changes since commit 9fbee91a131a05e443d7108d7fbdf3ca91020290: Merge remote-tracking branch 'remotes/kvm/uq/master' into staging (2014-02-27 16:00:31 +) are available in the git repository at: https://github.com/xbing6/qemu tags/xbing.refactor-timer f

[Qemu-devel] [RFC]VM live snapshot proposal

2014-03-02 Thread Huangpeng (Peter)
Hi, All I found some discussion about VM live-snapshot, but haven't seen any progress. https://lists.gnu.org/archive/html/qemu-devel/2013-08/msg02125.html http://markmail.org/thread/shneezha7kmtosvb#query:+page:1+mid:shneezha7kmtosvb+state:results Here I have another proposal, based on the live-m

Re: [Qemu-devel] [PATCH] qjson.h: Remove spurious GCC_FMT_ATTR markup from qobject_from_json() declaration

2014-03-02 Thread Andreas Färber
Am 27.02.2014 00:51, schrieb Peter Maydell: > The function qobject_from_json() doesn't actually allow its > argument to be a format string -- it passes a NULL va_list* > to qobject_from_jsonv(), and the parser code will then never > actually intepret %-escape sequences (it tests whether the "inter

Re: [Qemu-devel] [PATCH 4/5] linux-user: Fix getresuid, getresgid if !USE_UID16

2014-03-02 Thread Andreas Färber
Am 02.03.2014 20:36, schrieb Peter Maydell: > The size of the UID/GID types depends on whether USE_UID16 is > defined. Define a new put_user_id() which writes a uid/gid > type to guest memory. This fixes getresuid and getresgid, which > were always storing 16 bits even if the uid type was 32 bits.

[Qemu-devel] Request for openhackware.git mirror

2014-03-02 Thread Andreas Färber
Hello Stefan, We have a file pc-bios/ppc_rom.bin in qemu.git, used by PReP emulation, to which we do not have available the full GPL source code. I would like to replace the current file with a new binary built from original OpenHack'Ware sources plus our pc-bios/ohw.diff plus build fixes plus wor

Re: [Qemu-devel] [PATCH] pl011: reset the fifo when enabled or disabled

2014-03-02 Thread Peter Maydell
On 28 February 2014 00:57, Rob Herring wrote: > From: Rob Herring > > Intermittent issues have been seen where no serial input occurs. It > appears the pl011 gets in a state where the rx interrupt never fires > because the rx interrupt only asserts when crossing the fifo trigger > level. The fifo

[Qemu-devel] [PATCH 0/5] linux-user: various fixes for AArch64

2014-03-02 Thread Peter Maydell
This is a set of miscellaneous patches for linux-user which fix problems seen with AArch64 guests. Mostly they're from the SuSE 1.6 tree (though I've tweaked one or two of them a bit). The sendmmsg syscall patch is a significantly revised version of the patch Alex sent to the list a while back; I'

[Qemu-devel] [PATCH 1/5] linux-user/signal.c: Fix AArch64 big-endian FP register restore

2014-03-02 Thread Peter Maydell
Fix the loop restoring the FP registers from the signal frame to match the one used when setting up the signal frame, so that it handles TARGET_WORDS_BIGENDIAN being set. Signed-off-by: Peter Maydell --- linux-user/signal.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff -

[Qemu-devel] [PATCH 5/5] linux-user: Implement sendmmsg syscall

2014-03-02 Thread Peter Maydell
From: Alexander Graf Glibc when built for newer kernels assumes that the sendmmsg syscall is available. Without it, dns resolution simply fails to work. Wrap the syscall with existing infrastructure so that we don't have a host dependency on sendmmsg. To avoid locking the same area of guest mem

[Qemu-devel] [PATCH 3/5] linux-user: Don't use UID16 on AArch64

2014-03-02 Thread Peter Maydell
From: Andreas Schwab The AArch64 kernel defines its __kernel_uid_t type as 32 bits, unlike 32 bit ARM, so don't enable our 16-bit UID wrapper handling. Signed-off-by: Andreas Schwab Signed-off-by: Peter Maydell --- linux-user/syscall_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[Qemu-devel] [PATCH 4/5] linux-user: Fix getresuid, getresgid if !USE_UID16

2014-03-02 Thread Peter Maydell
The size of the UID/GID types depends on whether USE_UID16 is defined. Define a new put_user_id() which writes a uid/gid type to guest memory. This fixes getresuid and getresgid, which were always storing 16 bits even if the uid type was 32 bits. Reported-by: Michael Matz Signed-off-by: Peter May

[Qemu-devel] [PATCH 2/5] linux-user: AArch64: Implement SA_RESTORER for signal handlers

2014-03-02 Thread Peter Maydell
From: Michael Matz Implement support for signal handlers with the SA_RESTORER flag set. Signed-off-by: Michael Matz [PMM: minor tweaks to make patch apply to current master] Signed-off-by: Peter Maydell --- linux-user/signal.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletio

Re: [Qemu-devel] [PATCH v3] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-02 Thread Andreas Färber
Hi Fabien, Am 14.02.2014 18:27, schrieb Fabien Chouteau: > On 02/14/2014 04:33 PM, Andreas Färber wrote: >> As for the other one you'll need to sort our who sends a pull if Blue >> doesn't resurface - > > I didn't see any message about this. Does anyone know why he's not around? > >> I note that

Re: [Qemu-devel] [RFC PATCH v2] qemu: x86: ignore ioapic polarity

2014-03-02 Thread Michael S. Tsirkin
On Sun, Mar 02, 2014 at 11:15:15AM -0500, Gabriel L. Somlo wrote: > On Sun, Mar 02, 2014 at 04:52:22PM +0200, Michael S. Tsirkin wrote: > > On Fri, Feb 28, 2014 at 01:57:19PM -0500, Gabriel L. Somlo wrote: > > > Both QEMU and KVM have already accumulated a significant number of > > > optimizations

Re: [Qemu-devel] [RFC PATCH v2] qemu: x86: ignore ioapic polarity

2014-03-02 Thread Gabriel L. Somlo
On Sun, Mar 02, 2014 at 04:52:22PM +0200, Michael S. Tsirkin wrote: > On Fri, Feb 28, 2014 at 01:57:19PM -0500, Gabriel L. Somlo wrote: > > Both QEMU and KVM have already accumulated a significant number of > > optimizations based on the hard-coded assumption that ioapic polarity > > will always us

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-02 Thread Michael S. Tsirkin
On Sun, Mar 02, 2014 at 04:31:12PM +0200, Michael S. Tsirkin wrote: > On Sun, Mar 02, 2014 at 09:56:50AM +0100, Paolo Bonzini wrote: > > Il 02/03/2014 01:17, Gabriel L. Somlo ha scritto: > > >Although, on KVM, it's simply hardcoded to 0x14 rather than exposing to > > >the guest whatever the host CP

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] hw/timer/grlib_gptimer: Avoid integer overflows

2014-03-02 Thread Sebastian Huber
On 03/02/2014 02:17 PM, Michael Tokarev wrote: 26.02.2014 11:53, Sebastian Huber wrote: Ping. There was another comment on this, about the first hunk, see https://lists.gnu.org/archive/html/qemu-trivial/2014-02/msg00067.html Note that the comment below this line mentions the +1 which is being

Re: [Qemu-devel] [PATCH] migration: add more traces

2014-03-02 Thread 陈梁
I am glad to hear that you are also interested in migration. We will be pleasure if you find some bugs or suggestion and discuss them together with us. As I know, the qemu will print some log about the migration failure. It is same to your patch. > This adds more traces in the migration code. >

Re: [Qemu-devel] [RFC PATCH v2] kvm: x86: ignore ioapic polarity

2014-03-02 Thread Michael S. Tsirkin
On Thu, Feb 27, 2014 at 11:06:17PM -0500, Gabriel L. Somlo wrote: > Both QEMU and KVM have already accumulated a significant number of > optimizations based on the hard-coded assumption that ioapic polarity > will always use the ActiveHigh convention, where the logical and > physical states of leve

Re: [Qemu-devel] [RFC PATCH v2] qemu: x86: ignore ioapic polarity

2014-03-02 Thread Michael S. Tsirkin
On Fri, Feb 28, 2014 at 01:57:19PM -0500, Gabriel L. Somlo wrote: > Both QEMU and KVM have already accumulated a significant number of > optimizations based on the hard-coded assumption that ioapic polarity > will always use the ActiveHigh convention, where the logical and > physical states of leve

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-02 Thread Michael S. Tsirkin
On Sun, Mar 02, 2014 at 09:56:50AM +0100, Paolo Bonzini wrote: > Il 02/03/2014 01:17, Gabriel L. Somlo ha scritto: > >Although, on KVM, it's simply hardcoded to 0x14 rather than exposing to > >the guest whatever the host CPU's apic version happens to be, or > >trying to match it to the CPU model: >

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

2014-03-02 Thread Beniamino Galvani
The model was generating interrupts for all enabled timers after the expiration of one of them. Avoid this by passing to the timer callback function a structure containing the index of the expired timer. Signed-off-by: Beniamino Galvani --- hw/timer/allwinner-a10-pit.c | 30 +++

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

2014-03-02 Thread Beniamino Galvani
Signed-off-by: Beniamino Galvani --- hw/net/allwinner_emac.c |4 ++-- include/hw/net/allwinner_emac.h |1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/net/allwinner_emac.c b/hw/net/allwinner_emac.c index 469f2f0..91931ac 100644 --- a/hw/net/allwinner_emac.c

[Qemu-devel] [PATCH v2 2/7] allwinner-a10-pic: update pending register when an irq is cleared

2014-03-02 Thread Beniamino Galvani
The value of pending register was updated only when an irq was raised from a device; it should also be updated when an interrupt is cleared. Signed-off-by: Beniamino Galvani --- hw/intc/allwinner-a10-pic.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/intc/allwinner-a10-pic.c b/hw/

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

2014-03-02 Thread Beniamino Galvani
The irq line status must be updated after writes to the INT_CTL and INT_STA registers. Signed-off-by: Beniamino Galvani --- hw/net/allwinner_emac.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/net/allwinner_emac.c b/hw/net/allwinner_emac.c index 91931ac..d780ba0 100644 --- a/hw/ne

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

2014-03-02 Thread Beniamino Galvani
Convert the interrupt generation logic to the use of level triggered interrupts. Signed-off-by: Beniamino Galvani --- hw/timer/allwinner-a10-pit.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hw/timer/allwinner-a10-pit.c b/hw/timer/allwinner-a10-pit.c index

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

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

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

2014-03-02 Thread Beniamino Galvani
This implements the prescaler and source fields of the timer control register as described in the A10 user manual. Signed-off-by: Beniamino Galvani --- hw/timer/allwinner-a10-pit.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/hw/timer/allwinner-a10-pi

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

2014-03-02 Thread Beniamino Galvani
This series introduces some fixes and missing features found while trying to run mainline Linux kernel on emulated Allwinner A10. Most of the changes concern interrupt handling, but there are also improvements in the timer and the ethernet MAC. With this applied I'm able to boot Linux 3.14-rc2 us

[Qemu-devel] [PATCH] migration: add more traces

2014-03-02 Thread Alexey Kardashevskiy
This adds more traces in the migration code. Signed-off-by: Alexey Kardashevskiy --- Debugging migration lately a lot and this patch helps quite a lot. Would it make any use for anyone else? Thanks. --- migration.c | 34 +++--- savevm.c | 14 -- tr

Re: [Qemu-devel] [PATCH 0/9] w32: Reduce dependency on Windows API

2014-03-02 Thread Michael Tokarev
23.02.2014 21:02, Stefan Weil wrote: > Today, most .o files depend on windows.h when QEMU is built with MinGW or > MinGW-w64 (32 and 64 bit builds). These patches reduce the number of such > files from more than 1800 to less than 180. They also allow removing some > hacks which were needed because

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qjson.h: Remove spurious GCC_FMT_ATTR markup from qobject_from_json() declaration

2014-03-02 Thread Michael Tokarev
27.02.2014 03:51, Peter Maydell пишет: > The function qobject_from_json() doesn't actually allow its > argument to be a format string -- it passes a NULL va_list* > to qobject_from_jsonv(), and the parser code will then never > actually intepret %-escape sequences (it tests whether the > va_list po

Re: [Qemu-devel] [Qemu-trivial] [PATCH] tests/test-int128: Don't use __noclone__ attribute on clang

2014-03-02 Thread Michael Tokarev
27.02.2014 03:39, Peter Maydell wrote: > clang doesn't support the __noclone__ attribute and emits a warning about > it. Fortunately clang also implements a mechanism for asking if a particular > attribute is implemented; use it. We assume that if the compiler doesn't > support __has_attribute() th

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] hw/timer/grlib_gptimer: Avoid integer overflows

2014-03-02 Thread Michael Tokarev
26.02.2014 11:53, Sebastian Huber wrote: > Ping. There was another comment on this, about the first hunk, see https://lists.gnu.org/archive/html/qemu-trivial/2014-02/msg00067.html Note that the comment below this line mentions the +1 which is being removed. Thanks, /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] stubs: Optimize dependencies for gdbstub.c

2014-03-02 Thread Michael Tokarev
20.02.2014 23:08, Stefan Weil wrote: > It does not need qemu-common.h. Including exec/gdbstub.h fixes a warning > from static code analyzers and avoids mismatching declarations for > xml_builtin. Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] tcg: Fix typo in comment (dependancies -> dependencies)

2014-03-02 Thread Michael Tokarev
Applied to -trivial, thanks! /mjt

[Qemu-devel] [PATCH RFC V2 9/9] hw/core: mapped QemuOpts into QEMUMachineInitArgs fields to remove duplication

2014-03-02 Thread Marcel Apfelbaum
The QOM machine has both field per QemuOpt and an instance of QEMUMachineInitArgs. Removed dupplications. Signed-off-by: Marcel Apfelbaum --- hw/core/machine.c | 18 +- include/hw/boards.h | 9 +++-- vl.c| 6 +++--- 3 files changed, 15 insertions(+), 18 de

[Qemu-devel] [PATCH RFC V2 2/9] vl: use qemu machine QOM class instead of global machines list

2014-03-02 Thread Marcel Apfelbaum
The machine registration flow is refactored to use the QOM functionality. Instead of linking the machines into a list, each machine has a type and the types can be traversed in the QOM way. Signed-off-by: Marcel Apfelbaum --- include/hw/boards.h | 1 + vl.c| 75 +

[Qemu-devel] [PATCH RFC V2 5/9] qapi: output visitor crashes qemu if it encounters a NULL value

2014-03-02 Thread Marcel Apfelbaum
A NULL value is not added to visitor's stack, but there is no check for that when the visitor tries to return that value, leading to Qemu crash. Reviewed-by: Eric Blake Signed-off-by: Marcel Apfelbaum --- qapi/qmp-output-visitor.c | 5 + 1 file changed, 5 insertions(+) diff --git a/qapi/qm

[Qemu-devel] [PATCH RFC V2 7/9] qom: add object_property_is_set

2014-03-02 Thread Marcel Apfelbaum
Sometimes is not enough to get property's value, but it is needed to know if the value was actually set. This is especially useful when querying bool properties and having different defaults on different scenarios. Signed-off-by: Marcel Apfelbaum --- include/qom/object.h | 11 +++ qom/o

[Qemu-devel] [PATCH RFC V2 0/9] qemu-machine as a QOM object

2014-03-02 Thread Marcel Apfelbaum
Most of the "Cc" list is due to patch 8: (Should I send each patch to a different list?) machine-opts: replace qemu_opt_get by QOM QemuMachine queries. Status: - machine_opts are mapped into QemuMachineState's properties, which can be queried as regular QOM properties. - Subclas

[Qemu-devel] [PATCH RFC V2 3/9] hw/boards: converted current_machine to be an instance of QemuMachineCLass

2014-03-02 Thread Marcel Apfelbaum
In order to allow attaching machine options to a machine instance, current_machine is converted into QemuMachineState. As a first step of deprecating QEMUMachine, some of the functions were modified to return QemuMachineCLass. Signed-off-by: Marcel Apfelbaum --- device-hotplug.c| 4 +++- in

[Qemu-devel] [PATCH RFC V2 8/9] machine-opts: replace qemu_opt_get by QOM QemuMachine queries

2014-03-02 Thread Marcel Apfelbaum
It is cleaner to query current_machine's properties than accessing QemuOpts from the code. Signed-off-by: Marcel Apfelbaum --- device_tree.c | 9 + exec.c| 21 ++--- hw/arm/boot.c | 3 ++- hw/microblaze/boot.c | 13 +++-- hw/ppc/

[Qemu-devel] [PATCH RFC V2 6/9] vl.c: do not set 'type' property in obj_set_property

2014-03-02 Thread Marcel Apfelbaum
Filter out also 'type' property when setting object's properties Signed-off-by: Marcel Apfelbaum --- vl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vl.c b/vl.c index c4939ef..dc206e1 100644 --- a/vl.c +++ b/vl.c @@ -2766,7 +2766,8 @@ static int object_set_property(con

[Qemu-devel] [PATCH RFC V2 4/9] hw/machine: add qemu machine opts as properties to QemuMachineState

2014-03-02 Thread Marcel Apfelbaum
It is cleaner to query current_machine's properties than accessing QemuOpts from the code. Signed-off-by: Marcel Apfelbaum --- hw/core/machine.c | 251 ++ 1 file changed, 251 insertions(+) diff --git a/hw/core/machine.c b/hw/core/machine.c ind

[Qemu-devel] [PATCH RFC V2 1/9] hw/core: introduced qemu machine as QOM object

2014-03-02 Thread Marcel Apfelbaum
The main functionality change is to convert QEMUMachine into QemuMachineClass and QEMUMachineInitArgs into QemuMachineState, instance of QemuMachineClass. As a first step, in order to make possible an incremental developement, both QEMUMachine and QEMUMachineInitArgs are being embeded into the new

[Qemu-devel] GSoC 2014 - Continuous vmstate testing

2014-03-02 Thread prashanth sunder
Hello, I'm very much interested in working on this idea for the upcoming GSoC. Which part of the current qemu codebase does this idea correspond to?? and any links and documents that can further aid me?? Regards, Prashanth

Re: [Qemu-devel] [PATCH] qapi: output visitor crashes qemu if it encounters a NULL value

2014-03-02 Thread Marcel Apfelbaum
On Fri, 2014-02-28 at 11:37 -0500, Luiz Capitulino wrote: > On Mon, 17 Feb 2014 20:01:42 +0200 > Marcel Apfelbaum wrote: > > > On Mon, 2014-02-17 at 10:38 -0700, Eric Blake wrote: > > > On 02/17/2014 04:52 AM, Marcel Apfelbaum wrote: > > > > A NULL value is not added to visitor's stack, but there

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-02 Thread Paolo Bonzini
Il 02/03/2014 01:17, Gabriel L. Somlo ha scritto: Although, on KVM, it's simply hardcoded to 0x14 rather than exposing to the guest whatever the host CPU's apic version happens to be, or trying to match it to the CPU model: [somlo@foober kvm]$ grep -i version arch/x86/kvm/lapic.c ... /* 14 is t