Re: [Qemu-devel] [PATCH] Convert stderr message calling error_get_pretty() to error_report() to prepend timestamp

2013-07-22 Thread Markus Armbruster
Andreas Färber writes: > Am 22.07.2013 23:03, schrieb Seiji Aguchi: >> Convert stderr messages calling error_get_pretty() >> to error_report(). >> >> Timestamp is prepended by -msg timstamp option with it. >> >> This is suggested by Luiz Capitulino. >> >> http://marc.info/?l=qemu-devel&m=13733

Re: [Qemu-devel] [PATCH v2 00/11] Point-in-time snapshot exporting over NBD

2013-07-22 Thread Paolo Bonzini
Il 23/07/2013 03:52, Wenchao Xia ha scritto: > >Dirty change tracking is what miss for a full solution, which > > naturally exist in backing chain snapshot. > > Any one is doing dirty tracking feature? If no, I'd like to draft a > version based on add-cow. I had started it, I can dig it up.

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-22 Thread Paolo Bonzini
Il 23/07/2013 03:05, Libaiqing ha scritto: > Hi paolo, > Recently I test trim function,and it works well in linux guest with ext4 > fs. > > How to test it in windows guest? I got some info like this: > 1 windows7 can send discard command when the storage device is ssd; > 2 fi

Re: [Qemu-devel] [PATCH qom-cpu] HACKING: Document vaddr type usage

2013-07-22 Thread Paolo Bonzini
Il 22/07/2013 19:27, Peter Maydell ha scritto: > On 22 July 2013 17:36, Andreas Färber wrote: >> Signed-off-by: Andreas Färber >> --- >> HACKING | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/HACKING b/HACKING >> index e73ac79..d9dbb46 100644 >> --- a/HACKING >> +++ b/HACKING >> @@

[Qemu-devel] KVM call agenda for 2013-07-30

2013-07-22 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. Thanks, Juan. PD. If you want to attend and you don't have the call details, contact me.

Re: [Qemu-devel] Emulating mips

2013-07-22 Thread Renich Bon Ciric
On Tue, Jul 23, 2013 at 12:41 AM, Rob Landley wrote: > On 07/23/2013 12:16:53 AM, Renich Bon Ciric wrote: >> >> Hello, >> >> I am new to this... >> >> I'm trying to run some rom file I got from a client. It's a sc2005 >> processor; supposedly compatible with 4k. >> >> Anyway, I do this: >> >> qemu

Re: [Qemu-devel] [qom-cpu PATCH 2/2] i386: disable PMU passthrough mode by default

2013-07-22 Thread Igor Mammedov
On Mon, 22 Jul 2013 16:25:35 -0300 Eduardo Habkost wrote: > Bug description: QEMU currently gets all bits from GET_SUPPORTED_CPUID > for CPUID leaf 0xA and passes them directly to the guest. This makes > the guest ABI depend on host kernel and host CPU capabilities, and > breaks live migration if

Re: [Qemu-devel] Emulating mips

2013-07-22 Thread Rob Landley
On 07/23/2013 12:16:53 AM, Renich Bon Ciric wrote: Hello, I am new to this... I'm trying to run some rom file I got from a client. It's a sc2005 processor; supposedly compatible with 4k. Anyway, I do this: qemu-system-mips -M mips -pflash 301-3100\ -\ user\ specified\ -\ Full.bin -serial stdi

[Qemu-devel] Emulating mips

2013-07-22 Thread Renich Bon Ciric
Hello, I am new to this... I'm trying to run some rom file I got from a client. It's a sc2005 processor; supposedly compatible with 4k. Anyway, I do this: qemu-system-mips -M mips -pflash 301-3100\ -\ user\ specified\ -\ Full.bin -serial stdio The processor goes to 100% but I see nothing, not

[Qemu-devel] [PATCH] watchdog: Remove break after exit

2013-07-22 Thread Stefan Weil
This was dead code. Signed-off-by: Stefan Weil --- hw/watchdog/watchdog.c |1 - 1 file changed, 1 deletion(-) diff --git a/hw/watchdog/watchdog.c b/hw/watchdog/watchdog.c index cb4e1f9..387962e 100644 --- a/hw/watchdog/watchdog.c +++ b/hw/watchdog/watchdog.c @@ -128,7 +128,6 @@ void watchdo

[Qemu-devel] [PATCH v2 16/16] cpu/a15mpcore: Prepare for QOM embedding

2013-07-22 Thread Andreas Färber
From: Andreas Färber Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 21 + include/hw/cpu/a15mpcore.h | 44 2 files changed, 45 insertions(+), 20 deletions(-) create mode 100644 include/hw/cpu/a15mpcore.h diff --g

[Qemu-devel] [PULL 03/24] HACKING: Document vaddr type usage

2013-07-22 Thread Andreas Färber
From: Peter Maydell Also extend documentation of target_ulong and abi_ulong. Signed-off-by: Peter Maydell Signed-off-by: Andreas Färber --- HACKING | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/HACKING b/HACKING index e73ac79..12fbc8a 100644 --- a/HA

[Qemu-devel] [PULL 01/24] gdbstub: Change GDBState::query_cpu to CPUState

2013-07-22 Thread Andreas Färber
Since first_cpu/next_cpu are CPUState, CPUArchState is no longer needed. This resolves a NULL pointer dereference of query_cpu, introduced with commit 182735efaf956ccab50b6d74a4fed163e0f35660 and reported by TeLeMan and Max Filippov. Reviewed-by: Richard Henderson Signed-off-by: Andreas Färber

[Qemu-devel] [PULL 05/24] target-m68k: Implement CPUClass::set_pc()

2013-07-22 Thread Andreas Färber
This adds support for GDB's c addr (Continue) and s addr (Single Step). Prepares for dropping cpu_pc_from_tb(). Signed-off-by: Andreas Färber --- target-m68k/cpu.c | 8 1 file changed, 8 insertions(+) diff --git a/target-m68k/cpu.c b/target-m68k/cpu.c index 1b6ef66..43011e7 100644 ---

[Qemu-devel] [PULL 15/24] gdbstub: Change syscall callback argument to CPUState

2013-07-22 Thread Andreas Färber
Callback implementations were specific to arm and m68k, so can easily cast to ARMCPU and M68kCPU respectively. Prepares for changing GDBState::c_cpu to CPUState. Signed-off-by: Andreas Färber --- gdbstub.c | 2 +- include/exec/gdbstub.h | 2 +- target-arm/arm-semi.c | 8 ++-

[Qemu-devel] [PATCH v2 03/16] intc/arm_gic: Extract public header hw/intc/arm_gic.h

2013-07-22 Thread Andreas Färber
Rename NCPU to GIC_NCPU and move GICState away from gic_internal.h. Signed-off-by: Andreas Färber --- hw/intc/arm_gic_common.c | 18 hw/intc/gic_internal.h| 77 + include/hw/intc/arm_gic.h | 108 ++ 3 fil

[Qemu-devel] [PATCH v2 07/16] timer/arm_mptimer: QOM cast cleanup

2013-07-22 Thread Andreas Färber
From: Andreas Färber Introduce type constant and cast macro and rename ARMMPTimerState::busdev to enforce its use. Signed-off-by: Andreas Färber --- hw/timer/arm_mptimer.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/hw/timer/arm_mptimer.c b/hw/timer/

[Qemu-devel] [PULL 18/24] cpu: Turn cpu_get_phys_page_debug() into a CPUClass hook

2013-07-22 Thread Andreas Färber
Change breakpoint_invalidate() argument to CPUState alongside. Since all targets now assign a softmmu-only field, we can drop helpers cpu_class_set_{do_unassigned_access,vmsd}() and device_class_set_vmsd(). Prepares for changing cpu_memory_rw_debug() argument to CPUState. Acked-by: Max Filippov

[Qemu-devel] [PULL 23/24] gdbstub: Change gdb_register_coprocessor() argument to CPUState

2013-07-22 Thread Andreas Färber
Signed-off-by: Andreas Färber --- gdbstub.c | 7 +++ include/exec/gdbstub.h | 2 +- target-arm/helper.c | 7 --- target-m68k/helper.c| 3 ++- target-ppc/translate_init.c | 15 --- 5 files changed, 18 insertions(+), 16 deletions(-) di

[Qemu-devel] [PULL 21/24] gdbstub: Change GDBState::{c, g}_cpu and find_cpu() to CPUState

2013-07-22 Thread Andreas Färber
Use CPUState::env_ptr where still needed. Signed-off-by: Andreas Färber --- gdbstub.c | 104 +++--- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 9e017ed..ee31603 100644 --- a/gdbstub.c +++ b/gd

[Qemu-devel] [PULL 24/24] linux-user: Use X86CPU property to retrieve CPUID family

2013-07-22 Thread Andreas Färber
Avoids duplicating the calculation. Reviewed-by: Igor Mammedov Signed-off-by: Andreas Färber --- linux-user/cpu-uname.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/linux-user/cpu-uname.c b/linux-user/cpu-uname.c index 59cd647..cc713e6 100644 --- a/linux-user/c

[Qemu-devel] [PULL 22/24] cpu: Move gdb_regs field from CPU_COMMON to CPUState

2013-07-22 Thread Andreas Färber
Prepares for changing gdb_register_coprocessor() argument to CPUState. Signed-off-by: Andreas Färber --- gdbstub.c | 11 ++- include/exec/cpu-defs.h | 2 -- include/qom/cpu.h | 2 ++ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gdbstub.c b/gdbstub.

[Qemu-devel] [PULL 11/24] cpu: Move singlestep_enabled field from CPU_COMMON to CPUState

2013-07-22 Thread Andreas Färber
Prepares for changing cpu_single_step() argument to CPUState. Acked-by: Michael Walle (for lm32) Signed-off-by: Andreas Färber --- cpu-exec.c| 2 +- cpus.c| 2 +- exec.c| 10 ++ include/exec/cpu-defs.h | 1 - i

[Qemu-devel] [PULL 20/24] cpu: Introduce CPUClass::memory_rw_debug() for target_memory_rw_debug()

2013-07-22 Thread Andreas Färber
Make inline target_memory_rw_debug() always available and change its argument to CPUState. Let it check if CPUClass::memory_rw_debug provides a specialized callback and fall back to cpu_memory_rw_debug() otherwise. The only overriding implementation is for 32-bit sparc. This prepares for changing

[Qemu-devel] [PULL 17/24] gdbstub: Change gdb_{read, write}_register() argument to CPUState

2013-07-22 Thread Andreas Färber
Use CPUState::env_ptr for now. Prepares for changing GDBState::g_cpu to CPUState. Signed-off-by: Andreas Färber --- gdbstub.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index b65682f..848754d 100644 --- a/gdbstub.c +++ b/gdbstub.c

Re: [Qemu-devel] [RFC 6/8] timer: run timers on aio_poll

2013-07-22 Thread liu ping fan
On Sun, Jul 21, 2013 at 5:55 PM, Alex Bligh wrote: > > > --On 21 July 2013 16:43:03 +0800 Liu Ping Fan wrote: > >> diff --git a/aio-posix.c b/aio-posix.c >> index b68eccd..29c2769 100644 >> --- a/aio-posix.c >> +++ b/aio-posix.c >> @@ -191,6 +191,8 @@ bool aio_poll(AioContext *ctx, bool blocking)

[Qemu-devel] [PULL 14/24] kvm: Change kvm_{insert, remove}_breakpoint() argument to CPUState

2013-07-22 Thread Andreas Färber
CPUArchState is no longer directly used since converting CPU loops to CPUState. Prepares for changing GDBState::c_cpu to CPUState. Signed-off-by: Andreas Färber --- gdbstub.c| 12 include/sysemu/kvm.h | 4 ++-- kvm-all.c| 10 -- kvm-stub.c

Re: [Qemu-devel] [PATCH] spapr-pci: rework MSI/MSIX

2013-07-22 Thread Alexey Kardashevskiy
Michael, could you please review the patch as it is about PCI? Thanks! On 07/12/2013 05:38 PM, Alexey Kardashevskiy wrote: > On the sPAPR platform a guest allocates MSI/MSIX vectors via RTAS > hypercalls which return global IRQ numbers to a guest so it only > operates with those and never touches

[Qemu-devel] [PULL 16/24] gdbstub: Change gdb_handlesig() argument to CPUState

2013-07-22 Thread Andreas Färber
Prepares for changing GDBState::c_cpu to CPUState. Signed-off-by: Andreas Färber --- bsd-user/main.c| 10 ++ gdbstub.c | 6 +++--- include/exec/gdbstub.h | 2 +- linux-user/main.c | 35 +++ linux-user/signal.c| 3 ++- 5 fil

[Qemu-devel] [PULL 08/24] cpu: Introduce CPUClass::synchronize_from_tb() for cpu_pc_from_tb()

2013-07-22 Thread Andreas Färber
Where no extra implementation is needed, fall back to CPUClass::set_pc(). Acked-by: Michael Walle (for lm32) Signed-off-by: Andreas Färber --- cpu-exec.c | 8 +++- include/qom/cpu.h | 5 + target-alpha/cpu.h | 5 - target-arm/cpu.h| 5 - targe

[Qemu-devel] [PULL 13/24] cpu: Change cpu_single_step() argument to CPUState

2013-07-22 Thread Andreas Färber
Use CPUState::env_ptr for now. Needed for GdbState::c_cpu. Signed-off-by: Andreas Färber --- exec.c | 4 ++-- gdbstub.c | 9 + include/exec/cpu-all.h | 6 -- include/qom/cpu.h | 13 + 4 files changed, 20 insertions(+), 12 deletions(-)

[Qemu-devel] [PULL 12/24] gdbstub: Update gdb_handlesig() and gdb_signalled() Coding Style

2013-07-22 Thread Andreas Färber
In particular reindent to 4 instead of 2 spaces. Prepares for changing cpu_single_step() argument in gdb_handlesig(). Signed-off-by: Andreas Färber --- gdbstub.c | 94 +++ 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a

[Qemu-devel] [PULL 10/24] target-alpha: Copy implver to DisasContext

2013-07-22 Thread Andreas Färber
From: Richard Henderson Which allows removing env from DisasContext. Signed-off-by: Richard Henderson Signed-off-by: Andreas Färber --- target-alpha/translate.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c

[Qemu-devel] [PULL 02/24] cpu: Introduce vaddr type

2013-07-22 Thread Andreas Färber
vaddr is to target_ulong what uintmax_t is to unsigned int. Its purpose is to allow turning per-target functions with target_ulong arguments into CPUClass hooks. Suggested-by: Peter Maydell Signed-off-by: Andreas Färber --- include/qom/cpu.h | 12 1 file changed, 12 insertions(+)

[Qemu-devel] [PULL 09/24] target-alpha: Copy singlestep_enabled to DisasContext

2013-07-22 Thread Andreas Färber
From: Richard Henderson Prepare for removing env from DisasContext. Signed-off-by: Richard Henderson Signed-off-by: Andreas Färber --- target-alpha/translate.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c inde

[Qemu-devel] [PULL 04/24] cpu: Introduce CPUClass::set_pc() for gdb_set_cpu_pc()

2013-07-22 Thread Andreas Färber
This moves setting the Program Counter from gdbstub into target code. Use vaddr type as upper-bound replacement for target_ulong. Signed-off-by: Andreas Färber --- gdbstub.c | 39 ++- include/qom/cpu.h | 2 ++ target-alpha/cpu.c

[Qemu-devel] [PULL 07/24] target-unicore32: Implement CPUClass::set_pc()

2013-07-22 Thread Andreas Färber
This adds support for GDB's c addr (Continue) and s addr (Single Step). Prepares for dropping cpu_pc_from_tb(). Signed-off-by: Andreas Färber --- target-unicore32/cpu.c | 8 1 file changed, 8 insertions(+) diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c index 6572f01..79f

[Qemu-devel] [PULL 00/24] QOM CPUState patch queue 2013-07-22

2013-07-22 Thread Andreas Färber
Hello Anthony, This is my current QOM CPU patch queue for 1.6. Please pull. CPUArchState: 313 -> 287 Thanks, Andreas Cc: Anthony Liguori Cc: Richard Henderson Cc: Jia Liu Cc: Peter Maydell Cc: Max Filippov Cc: TeLeMan Cc: Eduardo Habkost Cc: Igor Mammedov Cc: Mike Frysinger The foll

[Qemu-devel] [PULL 06/24] target-moxie: Implement CPUClass::set_pc()

2013-07-22 Thread Andreas Färber
This adds support for GDB's c addr (Continue) and s addr (Single Step). Prepares for dropping cpu_pc_from_tb(). Signed-off-by: Andreas Färber --- target-moxie/cpu.c | 8 1 file changed, 8 insertions(+) diff --git a/target-moxie/cpu.c b/target-moxie/cpu.c index 92ca594..91f6197 100644

[Qemu-devel] [PULL 19/24] exec: Change cpu_memory_rw_debug() argument to CPUState

2013-07-22 Thread Andreas Färber
Propagate X86CPU in kvmvapic for simplicity. Signed-off-by: Andreas Färber --- cpus.c | 4 +-- disas.c | 4 +-- exec.c | 6 ++-- gdbstub.c | 2 +- hw/i386/kvmvapic.c | 72 +++-

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-22 Thread liu ping fan
On Mon, Jul 22, 2013 at 6:18 PM, liu ping fan wrote: > On Mon, Jul 22, 2013 at 5:40 PM, Alex Bligh wrote: >> Liu, >> >> >> --On 22 July 2013 12:38:02 +0800 liu ping fan wrote: >> >>> I read your second series, and try to summary the main different between >>> us. Please correct me, if I misunder

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-22 Thread liu ping fan
On Mon, Jul 22, 2013 at 2:28 PM, Jan Kiszka wrote: > On 2013-07-22 06:38, liu ping fan wrote: >> On Sun, Jul 21, 2013 at 5:53 PM, Alex Bligh wrote: >>> Liu, >>> >>> >>> --On 21 July 2013 16:42:57 +0800 Liu Ping Fan wrote: >>> Currently, the timers run on iothread within BQL, so virtio-block

[Qemu-devel] [PATCH v2 09/16] cpu/a9mpcore: Embed ARMMPTimerState

2013-07-22 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 29 ++- hw/timer/arm_mptimer.c | 35 --- include/hw/timer/arm_mptimer.h | 54 ++ 3 files

Re: [Qemu-devel] [Question] why x2apic's set by default without host support(on Nehalem CPU).

2013-07-22 Thread Peter Huang(Peng)
> libvirt's "host-passthrough" uses "-cpu host', and it "-cpu host" > enables every feature that can be enabled on the host. >From my test results, I found that even when use host-passthrough mode, VM's cpu features are very different from host, this doesn't match what host-passthrough mode's expl

[Qemu-devel] [PATCH v2 13/16] cpu/a15mpcore: Split off instance_init

2013-07-22 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index 4f37964..c261cea 100644 --- a/hw/cpu/a15mpcore.c +++ b/hw/cpu/a15

[Qemu-devel] [PATCH v2 15/16] cpu/a15mpcore: Convert to QOM realize

2013-07-22 Thread Andreas Färber
From: Andreas Färber Turn SysBusDevice initfn into a QOM realizefn. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index 3f8b07b..ea6568c 100644 --- a/hw/cpu/

[Qemu-devel] [PATCH v2 12/16] cpu/a15mpcore: QOM cast cleanup

2013-07-22 Thread Andreas Färber
From: Andreas Färber Introduce type constant and cast macro and rename A15MPPrivState::busdev field to parent_obj to enforce its use. Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --g

[Qemu-devel] [PATCH v2 06/16] cpu/a9mpcore: Embed A9SCUState

2013-07-22 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 16 ++-- hw/misc/a9scu.c | 18 +- include/hw/misc/a9scu.h | 31 +++ 3 files changed, 42 insertions(+), 23 deletions(-) cre

[Qemu-devel] [PATCH v2 11/16] cpu/a9mpcore: Prepare for QOM embedding

2013-07-22 Thread Andreas Färber
From: Andreas Färber Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 24 +--- include/hw/cpu/a9mpcore.h | 37 + 2 files changed, 38 insertions(+), 23 deletions(-) create mode 100644 include/hw/cpu/a9mpcore.h diff --git a/hw

[Qemu-devel] [PATCH v2 10/16] cpu/a9mpcore: Convert to QOM realize

2013-07-22 Thread Andreas Färber
From: Andreas Färber Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 36 ++-- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index 1dc1e92..5eb1a2f 100644 --- a/hw/cpu/a9mpcore.c +++ b/hw/cpu/a9mpcore.c

[Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-22 Thread Andreas Färber
From: Andreas Färber Hello Peter, This series fully QOM'ifies A9MPCore so that it can be embedded for Tegra2. It goes on to do the same for A15MPCore, which had previously been taken as template for Cortex-A57 by John Rigby. Separate headers are introduced to only expose device state to whom as

[Qemu-devel] [PATCH v2 05/16] misc/a9scu: QOM cleanups

2013-07-22 Thread Andreas Färber
From: Andreas Färber Rename A9SCUState::busdev field to parent_obj and turn realizefn into an instance_init function to allow early MMIO mapping. Reviewed-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/misc/a9scu.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions

[Qemu-devel] [PATCH v2 14/16] cpu/a15mpcore: Embed GICState

2013-07-22 Thread Andreas Färber
From: Andreas Färber This covers both emulated and KVM GIC. Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index c2

[Qemu-devel] [PATCH v2 04/16] cpu/a9mpcore: Embed GICState

2013-07-22 Thread Andreas Färber
From: Andreas Färber Prepares for conversion to QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index acbdab5..d157387 100644 --- a/hw/cpu/a9mpc

[Qemu-devel] [PATCH v2 02/16] cpu/a9mpcore: Split off instance_init

2013-07-22 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index 3e675e3..acbdab5 100644 --- a/hw/cpu/a9mpcore.c +++ b/hw/cpu/a9mpcore.

[Qemu-devel] [PATCH v2 08/16] timer/arm_mptimer: Convert to QOM realize

2013-07-22 Thread Andreas Färber
From: Andreas Färber Split the SysBusDevice initfn into instance_init and realizefn. Signed-off-by: Andreas Färber --- hw/timer/arm_mptimer.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/hw/timer/arm_mptimer.c b/hw/timer/arm_mptimer.c index 92

[Qemu-devel] [PATCH v2 01/16] cpu/a9mpcore: QOM casting cleanup

2013-07-22 Thread Andreas Färber
From: Andreas Färber Introduce type constant and cast macro and enforce its use by renaming A9MPPrivState::busdev field to parent_obj. Reviewed-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) dif

Re: [Qemu-devel] [Question] why x2apic's set by default without host support(on Nehalem CPU).

2013-07-22 Thread Peter Huang(Peng)
Hi, Marcelo Thanks for replying. I noticed that, kvm has emulated x2apic, but I can't find where the code exits. Could you give me some hint? Thanks again. On 2013-07-23 7:55, Marcelo Tosatti wrote: > Peter, > > Because x2apic support is emulated in software. > > On Mon, Jul 22, 2013 at 08:36:0

Re: [Qemu-devel] [Question] why x2apic's set by default without host support(on Nehalem CPU).

2013-07-22 Thread Marcelo Tosatti
Peter, Because x2apic support is emulated in software. On Mon, Jul 22, 2013 at 08:36:05PM +0800, Peter Huang(Peng) wrote: > I traced the qemu process, and find out that host cpuid doesn't support > x2apic, > but VM interception seems enabled x2apic. > > with function=1(bit 21 indicates x2apic)

Re: [Qemu-devel] [PATCH 1/2] block: allow live commit of active image

2013-07-22 Thread Fam Zheng
On Mon, 07/22 13:07, Paolo Bonzini wrote: > Il 22/07/2013 08:48, Fam Zheng ha scritto: > >> > I have only skimmed the patch, but I think this is incomplete. > >> > Management needs to know the moment when 'active' is not valid anymore, > >> > thus this job needs to be completed manually with "block

Re: [Qemu-devel] [PATCH v2 00/11] Point-in-time snapshot exporting over NBD

2013-07-22 Thread Wenchao Xia
于 2013-7-19 18:41, Wenchao Xia 写道: > 于 2013-7-17 17:42, Fam Zheng 写道: >> This series adds for point-in-time snapshot NBD exporting based on >> blockdev-backup (variant of drive-backup with existing device as target). >> This >> patch is built on top of imain's sync mode patches for drive-backup. >

[Qemu-devel] [PATCH qom-next] pcie_host: Turn pcie_host_init() into an instance_init

2013-07-22 Thread Andreas Färber
This assures the trivial field initialization is applied for any derived type - currently only Q35PCIHost. Signed-off-by: Andreas Färber --- hw/pci-host/q35.c | 4 hw/pci/pcie_host.c | 7 --- include/hw/pci/pcie_host.h | 1 - 3 files changed, 4 insertions(+), 8 deletion

[Qemu-devel] [PULL 05/55] net/rtl8139: QOM parent field cleanup

2013-07-22 Thread Andreas Färber
Replace direct uses of RTL8139State::dev with QOM casts and rename it to parent_obj. Acked-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/net/rtl8139.c | 88 +++- 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/hw/n

[Qemu-devel] [PULL 32/55] q35: Use type-safe cast instead of direct access of parent dev

2013-07-22 Thread Andreas Färber
From: Hu Tao And remove variables if possible. Signed-off-by: Hu Tao [AF: Converted remaining access and renamed to parent_obj] Signed-off-by: Andreas Färber --- hw/i386/pc_q35.c | 4 +++- hw/pci-host/q35.c | 43 ++- include/hw/pci-hos

[Qemu-devel] [PULL 14/55] scsi/esp-pci: QOM parent field cleanup

2013-07-22 Thread Andreas Färber
Replace direct uses of PCIESPState::dev with QOM casts and rename it to parent_obj. Acked-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/scsi/esp-pci.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c index ab1

[Qemu-devel] trim in windows guest witch virtio

2013-07-22 Thread Libaiqing
Hi paolo, Recently I test trim function,and it works well in linux guest with ext4 fs. How to test it in windows guest? I got some info like this: 1 windows7 can send discard command when the storage device is ssd; 2 find a tool like 'fstrim', 'TRIM' the volume manually.

[Qemu-devel] [PULL 06/55] net/pcnet-pci: QOM Upcast Sweep

2013-07-22 Thread Andreas Färber
From: Peter Crosthwaite Define and use standard QOM cast macro. Remove usages of DO_UPCAST() and direct -> style upcasting. Signed-off-by: Peter Crosthwaite [AF: Renamed parent field, renamed from PC_NET to PCNET] Signed-off-by: Andreas Färber --- hw/net/pcnet-pci.c | 21 ++---

[Qemu-devel] [PULL 29/55] ohci: Use QOM realize for OHCI

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao Signed-off-by: Andreas Färber --- hw/usb/hcd-ohci.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 7da2564..2bab8ff 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -1888

[Qemu-devel] [PULL 00/55] QOM devices patch queue 2013-07-22

2013-07-22 Thread Andreas Färber
Hello Anthony, This is my current QOM devices patch queue for 1.6. Please pull. FROM_SYSBUS(): 188 -> 176 DO_UPCAST(): 468 -> 421 Thanks, Andreas Cc: Anthony Liguori Cc: Peter Maydell Cc: Peter Crosthwaite Cc: Hu Tao Cc: Michael S. Tsirkin (pci) Cc: Paolo Bonzini (scsi) Cc: Stefan Hajno

[Qemu-devel] [PULL 54/55] ioapic: Use QOM realize for ioapic

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao [AF: Tweaked error message] Signed-off-by: Andreas Färber --- hw/intc/ioapic_common.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c index 5c5bb3c..6b705c1 100644 --- a/hw/int

[Qemu-devel] [PULL 16/55] ide/ich: QOM parent field cleanup

2013-07-22 Thread Andreas Färber
Replace direct uses of AHCIPCIState::card with QOM casts and rename it to parent_obj. Acked-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/ide/ahci.c | 11 ++- hw/ide/ahci.h | 5 - hw/ide/ich.c | 22 +++--- 3 files changed, 21 insertions(+), 17 deletion

Re: [Qemu-devel] [PATCH qom-cpu] HACKING: Document vaddr type usage

2013-07-22 Thread Andreas Färber
Am 22.07.2013 19:36, schrieb Peter Maydell: > On 22 July 2013 18:32, Andreas Färber wrote: >> Am 22.07.2013 19:27, schrieb Peter Maydell: >>> Here's my suggestion for this paragraph (ie to replace >>> both the "Use target_ulong..." and "Use vaddr" sentences >>> above): >>> >>> ===begin=== >>> For

[Qemu-devel] [PULL 34/55] fdc: QOM'ify some more

2013-07-22 Thread Andreas Färber
From: Hu Tao Introduce type constant and avoid DO_UPCAST(), container_of(), and use DEVICE() to avoid accessing parent qdev directly. Signed-off-by: Hu Tao [AF: Renamed parent field and avoided repeated SYS_BUS_DEVICE() casts] Signed-off-by: Andreas Färber --- hw/block/fdc.c | 41

[Qemu-devel] [PULL 20/55] misc/pci-testdev: QOM parent field cleanup

2013-07-22 Thread Andreas Färber
Replace direct uses of PCITestDevState::dev with QOM casts and rename it to parent_obj. Acked-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/misc/pci-testdev.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev

Re: [Qemu-devel] [Qemu-discuss] The difference between qemu-kvm-1.2.0 & qemu-1.5.1

2013-07-22 Thread Fam Zheng
On Mon, 07/22 13:51, Yaodong Yang wrote: > Hi everyone, > > Previously, I used the qemu-kvm-1.2.0 from > (http://www.linux-kvm.org/page/Downloads), and it worked well in my ubuntu > server. Later, I found that some of the implementation(qemu-kvm-1.2.0) is out > of date, so that I changed to qem

[Qemu-devel] [PULL 04/55] net/rtl8139: QOM Upcast Sweep

2013-07-22 Thread Andreas Färber
From: Peter Crosthwaite Define and use standard QOM cast macro. Remove usages of DO_UPCAST() and direct -> style upcasting. Signed-off-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/net/rtl8139.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) di

[Qemu-devel] [PULL 52/55] kvm/clock: Use QOM realize for kvmclock

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao Signed-off-by: Andreas Färber --- hw/i386/kvm/clock.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index 6265458..e89e2f7 100644 --- a/hw/i386/kvm/clock.c +++ b/hw/i386/kvm/clock.c @@ -91,

[Qemu-devel] [PULL 31/55] i440fx-pcihost: Use QOM realize for i440fx-pcihost

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao Signed-off-by: Andreas Färber --- hw/pci-host/piix.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 541c8b7..3908860 100644 --- a/hw/pci-host/piix.c +++ b/hw/pc

[Qemu-devel] [PULL 45/55] pflash_cfi02: Use QOM realize for pflash_cfi02

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao Signed-off-by: Andreas Färber --- hw/block/pflash_cfi02.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index d8381dd..9fc02e3 100644 --- a/hw/block/pflash_cfi02.c +++ b/h

[Qemu-devel] [PULL 10/55] scsi/lsi53c895a: QOM parent field cleanup

2013-07-22 Thread Andreas Färber
Replace direct uses of LSIState::dev with QOM casts and rename it to parent_obj. Acked-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/scsi/lsi53c895a.c | 46 +++--- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/hw/scsi/lsi53c

[Qemu-devel] [PULL 08/55] usb/hcd-xhci: QOM parent field cleanup

2013-07-22 Thread Andreas Färber
Replace direct uses of XHCIState::pci_dev with QOM casts and rename it to parent_obj. Acked-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/usb/hcd-xhci.c | 83 --- 1 file changed, 48 insertions(+), 35 deletions(-) diff --git a/hw/

[Qemu-devel] [PULL 50/55] scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline()

2013-07-22 Thread Andreas Färber
Let scsi_bus_legacy_add_drive() and scsi_bus_legacy_handle_cmdline() return an Error**. Prepare qdev initfns for QOM realize error model. Signed-off-by: Andreas Färber --- hw/pci/pci-hotplug-old.c | 2 +- hw/scsi/esp-pci.c| 7 ++- hw/scsi/esp.c| 6 -- hw/scsi/lsi53

[Qemu-devel] [PULL 40/55] hpet: QOM'ify some more

2013-07-22 Thread Andreas Färber
From: Hu Tao Introduce type constant, avoid FROM_SYSBUS(). Signed-off-by: Hu Tao [AF: Renamed parent field and renamed variable] Signed-off-by: Andreas Färber --- hw/timer/hpet.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/hw/timer/hpet.c b/hw/time

[Qemu-devel] [PULL 53/55] kvmvapic: Use QOM realize

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao [AF: Renamed variable] Signed-off-by: Andreas Färber --- hw/i386/kvmvapic.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c index ccd089a..365b219 100644 --- a/hw/i386/kvmvapic.c +++ b/h

[Qemu-devel] [PULL 51/55] hpet: Use QOM realize for hpet

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao [AF: Avoided SYS_BUS_DEVICE() in loop] Signed-off-by: Andreas Färber --- hw/timer/hpet.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 228598f..648b383 100644 ---

[Qemu-devel] [PULL 38/55] fwcfg: QOM'ify some more

2013-07-22 Thread Andreas Färber
From: Hu Tao Use type constant if possible and avoid DO_UPCAST(). Signed-off-by: Hu Tao [AF: Renamed parent field] Signed-off-by: Andreas Färber --- hw/nvram/fw_cfg.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c i

[Qemu-devel] [PULL 49/55] megasas: Legacy command line handling fix

2013-07-22 Thread Andreas Färber
Only apply legacy command line handling when the device has not been hot-plugged. Propagate failure of legacy command line handling. Cc: qemu-sta...@nongnu.org Acked-by: Paolo Bonzini Signed-off-by: Andreas Färber --- hw/scsi/megasas.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[Qemu-devel] [PULL 35/55] pflash-cfi01: QOM'ify some more

2013-07-22 Thread Andreas Färber
From: Hu Tao Introduce type constant and replace FROM_SYSBUS(). Signed-off-by: Hu Tao [AF: Renamed parent field] Signed-off-by: Andreas Färber --- hw/block/pflash_cfi01.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/bl

[Qemu-devel] [PULL 46/55] ahci: Use QOM realize for ahci

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao [AF: Avoided repeated SYS_BUS_DEVICE() casts] Signed-off-by: Andreas Färber --- hw/ide/ahci.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index d76e6eb..419adde 100644 --- a/hw/ide/ahci.c ++

[Qemu-devel] [PULL 48/55] scsi/esp: Use QOM realize for scsi esp

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao [AF: Drop sysbus_esp_init()] Signed-off-by: Andreas Färber --- hw/scsi/esp.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index 1a2d72c..c24b632 100644 --- a/hw/scsi/esp.c +++ b/hw/scsi

[Qemu-devel] [PULL 33/55] q35: Use QOM realize for q35 host bridge

2013-07-22 Thread Andreas Färber
From: Hu Tao And split off MemoryRegion initialization into instance_init. Signed-off-by: Hu Tao Signed-off-by: Andreas Färber --- hw/pci-host/q35.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index

[Qemu-devel] [PULL 42/55] fdc: Use QOM realize for fdc

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao [AF: Renamed SysBusDevice variable] Signed-off-by: Andreas Färber --- hw/block/fdc.c | 63 ++ 1 file changed, 41 insertions(+), 22 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index e5242bf

[Qemu-devel] [PULL 55/55] isa-bus: Drop isabus_bridge_init() since it does nothing

2013-07-22 Thread Andreas Färber
From: Hu Tao This works since commit 4ce5dae88ecf2bafa0cd663de7e923728b1b3672. Signed-off-by: Hu Tao [AF: Edited] Signed-off-by: Andreas Färber --- hw/isa/isa-bus.c | 8 1 file changed, 8 deletions(-) diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c index cfd610c..9e104eb 100644 ---

[Qemu-devel] [PULL 43/55] fdc: Improve error propagation for QOM realize

2013-07-22 Thread Andreas Färber
Rename fdctrl_init_common() to fdctrl_realize_common() and let fdctrl_connect_drives() propagate an Error through it. Reviewed-by: Hu Tao Reviewed-by: Stefan Hajnoczi Signed-off-by: Andreas Färber --- hw/block/fdc.c | 40 ++-- 1 file changed, 22 insertions(+

[Qemu-devel] [PULL 44/55] pflash_cfi01: Use QOM realize for pflash_cfi01

2013-07-22 Thread Andreas Färber
From: Hu Tao Signed-off-by: Hu Tao [AF: Renamed argument] Signed-off-by: Andreas Färber --- hw/block/pflash_cfi01.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index bfcccdd..2bcd731 100644 --- a/hw/block/pf

[Qemu-devel] [PULL 28/55] ohci: QOM'ify some more

2013-07-22 Thread Andreas Färber
From: Hu Tao Introduce type constant and avoid DO_UPCAST(). Signed-off-by: Hu Tao [AF: Avoid remaining OHCIPCIState::pci_dev uses, rename parent fields] Signed-off-by: Andreas Färber --- hw/usb/hcd-ohci.c | 39 +-- 1 file changed, 25 insertions(+), 14 delet

[Qemu-devel] [PULL 39/55] scsi/esp: QOM'ify some more

2013-07-22 Thread Andreas Färber
From: Hu Tao Introduce type constant and avoid DO_UPCAST(). Signed-off-by: Hu Tao [AF: Renamed parent field] Signed-off-by: Andreas Färber --- hw/scsi/esp.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index c6166c5..

[Qemu-devel] [PULL 15/55] ide/ich: QOM Upcast Sweep

2013-07-22 Thread Andreas Färber
From: Peter Crosthwaite Define and use standard QOM cast macro. Remove usages of DO_UPCAST() and direct -> style upcasting. Signed-off-by: Peter Crosthwaite [AF: Renamed to TYPE_ICH9_AHCI and used typedef in pci_ich9_reset()] Signed-off-by: Andreas Färber --- hw/ide/ahci.h | 5 + hw/ide/

[Qemu-devel] [PULL 24/55] misc/ivshmem: QOM parent field cleanup

2013-07-22 Thread Andreas Färber
Replace direct uses of IVShmemState::dev with QOM casts and rename it to parent_obj. Acked-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- hw/misc/ivshmem.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/hw/misc/ivshmem.c b/hw

[Qemu-devel] [PULL 41/55] kvm/clock: QOM'ify some more

2013-07-22 Thread Andreas Färber
From: Hu Tao Introduce type constant and avoid FROM_SYSBUS(). Signed-off-by: Hu Tao [AF: Renamed parent field] Signed-off-by: Andreas Färber --- hw/i386/kvm/clock.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index

  1   2   3   4   >