Re: [Qemu-devel] broken incoming migration

2013-06-09 Thread Alexey Kardashevskiy
On 06/10/2013 04:50 PM, Peter Lieven wrote: > On 10.06.2013 08:39, Alexey Kardashevskiy wrote: >> On 06/09/2013 05:27 PM, Peter Lieven wrote: >>> Am 09.06.2013 um 05:09 schrieb Alexey Kardashevskiy : >>> On 06/09/2013 01:01 PM, Wenchao Xia wrote: > 于 2013-6-9 10:34, Alexey Kardashevskiy 写道

Re: [Qemu-devel] broken incoming migration

2013-06-09 Thread Peter Lieven
On 10.06.2013 08:39, Alexey Kardashevskiy wrote: On 06/09/2013 05:27 PM, Peter Lieven wrote: Am 09.06.2013 um 05:09 schrieb Alexey Kardashevskiy : On 06/09/2013 01:01 PM, Wenchao Xia wrote: 于 2013-6-9 10:34, Alexey Kardashevskiy 写道: On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:3

Re: [Qemu-devel] broken incoming migration

2013-06-09 Thread Alexey Kardashevskiy
On 06/09/2013 05:27 PM, Peter Lieven wrote: > > Am 09.06.2013 um 05:09 schrieb Alexey Kardashevskiy : > >> On 06/09/2013 01:01 PM, Wenchao Xia wrote: >>> 于 2013-6-9 10:34, Alexey Kardashevskiy 写道: On 06/09/2013 12:16 PM, Wenchao Xia wrote: > 于 2013-6-8 16:30, Alexey Kardashevskiy 写道: >>>

Re: [Qemu-devel] [PATCH RFT 2/5] virtio: Convert VirtioDevice to QOM realize/unrealize

2013-06-09 Thread Michael S. Tsirkin
On Sun, Jun 09, 2013 at 09:08:15PM -0500, Anthony Liguori wrote: > Peter Crosthwaite writes: > > > Hi Andreas, > > > > On Sat, Jun 8, 2013 at 7:55 PM, Andreas Färber wrote: > >> Hi, > >> > >> Am 08.06.2013 04:22, schrieb Peter Crosthwaite: > >>> On Sat, Jun 8, 2013 at 4:18 AM, Andreas Färber wr

Re: [Qemu-devel] [PATCH] chardev: add baud parameter for serial host device

2013-06-09 Thread Gerd Hoffmann
On 06/08/13 23:49, Peter Wu wrote: > When QEMU starts, it always changes the serial port parameters including baud > rate. This confused my guest which thought it was outputting at 9600 baud > while > it was in fact changed to 115200. > > After this patch, I can use `-serial /dev/ttyS0,baud=9600`

Re: [Qemu-devel] [Qemu-trivial] [PATCH] ioport/memory: check that both .read and .write callbacks are defined

2013-06-09 Thread Gerd Hoffmann
Hi, > Maybe instead (or in addition to), we should provide a dummy > read or write functions -- instead of fixing each such occurence > to use its own dummy function Makes sense, especially for write where we can just ignore what the guest attempts to write. Not sure we can have a generic hand

[Qemu-devel] [PATCH] qemu-log: wrap long text

2013-06-09 Thread Mike Frysinger
The existing help output is a bit hard to read due to the ad-hoc wrapping. This makes it a bit more programmatic (at least, it wraps it once, but that should be good enough for now). It's not terribly intelligent (just sticks a dash in the middle of the broken word) rather than splitting on whites

[Qemu-devel] [PATCH] Refactoring ISA only PC code for pc_isa.c

2013-06-09 Thread Simarpreet Singh
Signed-off-by: Simarpreet Singh --- hw/i386/Makefile.objs |2 +- hw/i386/pc_isa.c | 213 + hw/i386/pc_piix.c | 41 -- 3 files changed, 214 insertions(+), 42 deletions(-) create mode 100644 hw/i386/pc_isa.c diff --git a/hw/i

[Qemu-devel] [PATCH] Refactoring ISA only PC code for pc_isa.c

2013-06-09 Thread Simarpreet Singh
Currently the ISA only PC code is alongwith the other PC machines. The objective is to decouple the ISA only PC code for clarity. Simarpreet Singh (1): Refactoring ISA only PC code for pc_isa.c hw/i386/Makefile.objs |2 +- hw/i386/pc_isa.c | 213 ++

Re: [Qemu-devel] [PATCH qom-cpu 11/59] monitor: Simplify do_inject_mce()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use qemu_get_cpu() to avoid open-coded CPU loop. > > Signed-off-by: Andreas Färber > --- > monitor.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-) > > diff --git a/monitor.c b/monitor.c > index 6e22d1

Re: [Qemu-devel] [PATCH qom-cpu 10/59] cpus: Simplify qemu_tcg_wait_io_event() and qemu_tcg_cpu_thread_fn()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu(). > > Signed-off-by: Andreas Färber > --- > cpus.c | 16 +++- > 1 file changed, 7 insertions(+), 9 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 9195bc3..a8572a9 100644 > --- a/c

Re: [Qemu-devel] [PATCH qom-cpu 09/59] cpus: Simplify hw_error()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu(). > > Signed-off-by: Andreas Färber > --- > cpus.c | 15 --- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 1975c5c..9195bc3 100644 > --- a/cp

Re: [Qemu-devel] [PATCH qom-cpu 08/59] cpus: Simplify qmp_inject_nmi()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu(). > > Signed-off-by: Andreas Färber > --- > cpus.c | 24 +++- > 1 file changed, 15 insertions(+), 9 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 24ee974..1975c5c 100644

Re: [Qemu-devel] [PATCH qom-cpu 07/59] cpus: Simplify set_numa_modes()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu(). > > Signed-off-by: Andreas Färber > --- > cpus.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 1babecf..24ee974 100644 > --- a

Re: [Qemu-devel] [PATCH v4 0/9] Make 'dump-guest-memory' dump in kdump-compressed format

2013-06-09 Thread Qiao Nuohan
On 06/05/2013 10:15 AM, Luiz Capitulino wrote: I can review it until the end of this week. If this series is adding a new argument (which I believe is what it does) then there's only two ways to get this merged: either we wait for full introspection or you add this feature as a new command. I'd

Re: [Qemu-devel] [PATCH qom-cpu 06/59] cpus: Simplify resume_all_vcpus()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu(). > > Signed-off-by: Andreas Färber > --- > cpus.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-) > > diff --git a/cpus.c b/cpus.c > index ad5edfe..1babecf 100644 > --- a/cpus

Re: [Qemu-devel] [PATCH qom-cpu 05/59] cpus: Simplify pause_all_vcpus()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu() to pause, stop and kick CPUs. > > Signed-off-by: Andreas Färber > --- > cpus.c | 40 > 1 file changed, 20 insertions(+), 20 deletions(-) > > diff --git a/cp

Re: [Qemu-devel] [PATCH RFT 2/5] virtio: Convert VirtioDevice to QOM realize/unrealize

2013-06-09 Thread Anthony Liguori
Peter Crosthwaite writes: > Hi Andreas, > > On Sat, Jun 8, 2013 at 7:55 PM, Andreas Färber wrote: >> Hi, >> >> Am 08.06.2013 04:22, schrieb Peter Crosthwaite: >>> On Sat, Jun 8, 2013 at 4:18 AM, Andreas Färber wrote: diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c

Re: [Qemu-devel] [PATCH qom-cpu 03/59] cpus: Simplify cpu_synchronize_all_post_reset()

2013-06-09 Thread li guang
在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu(). > > Signed-off-by: Andreas Färber Reviewed-by: liguang > --- > cpus.c | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 8ff66c3..1186ad3 100644 > --- a/cpus.

Re: [Qemu-devel] [PATCH qom-cpu 04/59] cpus: Simplify cpu_synchronize_all_post_init()

2013-06-09 Thread li guang
Reviewed-by: liguang 在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Use new qemu_for_each_cpu(). > > Signed-off-by: Andreas Färber > --- > cpus.c | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 1186ad3..85b35f6 100644 > --- a/cpus.c

Re: [Qemu-devel] [PATCH qom-cpu 02/59] kvm: Change cpu_synchronize_state() argument to CPUState

2013-06-09 Thread li guang
在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > Change Monitor::mon_cpu to CPUState as well. > In cpu_sychronize_all_states() use qemu_for_each_cpu() now. Oh, s/sychronize/synchronize with that, Reviewed-by: liguang > In dump_init() use cpu_synchronize_all_states(). > > Signed-off-by: Andreas Fä

Re: [Qemu-devel] [PATCH qom-cpu 01/59] kvm: Change kvm_cpu_synchronize_state() argument to CPUState

2013-06-09 Thread li guang
在 2013-06-09日的 21:12 +0200,Andreas Färber写道: > It no longer relies on CPUArchState. > > Signed-off-by: Andreas Färber Reviewed-by: liguang > --- > hw/ppc/spapr_rtas.c | 2 +- > include/sysemu/kvm.h | 4 ++-- > kvm-all.c| 4 +--- > kvm-stub.c | 2 +- > target-i386/kv

Re: [Qemu-devel] [PATCH v2 05/12] kvm/i8254: QOM'ify some more

2013-06-09 Thread li guang
在 2013-06-10一的 03:40 +0200,Andreas Färber写道: > Am 10.06.2013 03:37, schrieb li guang: > > 在 2013-06-07五的 14:58 +0200,Andreas Färber写道: > >> diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c > >> index da90711..4ac5551 100644 > >> --- a/hw/i386/kvm/i8254.c > >> +++ b/hw/i386/kvm/i8254.c > [...]

Re: [Qemu-devel] [PATCH v2 05/12] kvm/i8254: QOM'ify some more

2013-06-09 Thread Andreas Färber
Am 10.06.2013 03:37, schrieb li guang: > 在 2013-06-07五的 14:58 +0200,Andreas Färber写道: >> diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c >> index da90711..4ac5551 100644 >> --- a/hw/i386/kvm/i8254.c >> +++ b/hw/i386/kvm/i8254.c [...] >> @@ -70,7 +73,7 @@ static void kvm_pit_update_clock_offs

Re: [Qemu-devel] [PATCH v2 05/12] kvm/i8254: QOM'ify some more

2013-06-09 Thread li guang
在 2013-06-07五的 14:58 +0200,Andreas Färber写道: > Introduce type constant and cast macro to obsolete DO_UPCAST(). > > Prepares for PIT realizefn. > > Signed-off-by: Andreas Färber > --- > hw/i386/kvm/i8254.c | 19 +++ > include/hw/timer/i8254.h | 13 - > 2 files ch

Re: [Qemu-devel] [PATCH 1/2] tcg-arm: Implement tcg_register_jit

2013-06-09 Thread li guang
在 2013-06-06四的 05:48 -0700,Richard Henderson写道: > On 06/05/2013 05:28 PM, li guang wrote: > > 在 2013-06-05三的 05:49 -0700,Richard Henderson写道: > >> On 06/04/2013 06:56 PM, li guang wrote: > > +typedef struct { > > +uint32_t len __attribute__((aligned((sizeof(void *); > > +uin

[Qemu-devel] [PATCH] target-mips: 64-bit FPU for user-mode emulation.

2013-06-09 Thread Thomas Schwinge
Switch to 64-bit FPU only for n32 and n64 ABIs, but not o32. Fixup for commit 68473f15d4c9948986618f63828825beafcaf1cf. Signed-off-by: Thomas Schwinge --- Hi! On Sun, 10 Feb 2013 10:30:46 -0800, Richard Henderson wrote: > diff --git a/target-mips/translate.c b/target-mips/translate.c > index

Re: [Qemu-devel] [PATCH] i.MX31: Fix PRCS bit test

2013-06-09 Thread Peter Chubb
> "Stefan" == Stefan Weil writes: Stefan> cppcheck detected a condition which was always false. Stefan> According to the MCIMX31 Reference Manual, the PRCS bits have Stefan> to be 01 to select the Frequency Pre-Multiplier (FPM). PRCS Stefan> uses bits 1 and 2, so we have to test for 2. Good

Re: [Qemu-devel] [PATCH] gtk: implement -full-screen and -no-frame

2013-06-09 Thread Peter Wu
On Sunday 09 June 2013 13:33:14 Anthony Liguori wrote: > On Sun, Jun 9, 2013 at 5:30 AM, Peter Wu wrote: > > Aiming for GTK as replacement for SDL, features like -full-screen and > > -no-frame should also be implemented. > > > > Bringing the window into full-screen mode is done by faking activati

Re: [Qemu-devel] [PATCH] xilinx_axienet: Fix bit mask code

2013-06-09 Thread Peter Maydell
On 9 June 2013 21:56, Stefan Weil wrote: > diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c > index 8989e95..2ca1511 100644 > --- a/hw/net/xilinx_axienet.c > +++ b/hw/net/xilinx_axienet.c > @@ -575,7 +575,7 @@ static void enet_write(void *opaque, hwaddr addr, > break; >

Re: [Qemu-devel] [PATCH qom-cpu 57/59] cpu: Make first_cpu and next_cpu CPUState (WIP)

2013-06-09 Thread Andreas Färber
Am 09.06.2013 21:13, schrieb Andreas Färber: > cpus.c| 15 +-- > exec.c| 27 ++- > gdbstub.c | 15 --- > hw/arm/boot.c | 10 +- > hw/arm/exynos4_boards.c | 4 ++-- > hw/ar

[Qemu-devel] [PATCH] xilinx_axienet: Fix bit mask code

2013-06-09 Thread Stefan Weil
Obviously the code wanted to mask the lower bits but failed to do so because of a missing "<". cppcheck detected a conditional expression which was always true (1 < 7). Signed-off-by: Stefan Weil --- Please review - I did not look for a Xilinx manual to see whether the code was correct at all.

[Qemu-devel] [PATCH 2/3] mpc8544_guts: QOM'ify

2013-06-09 Thread Andreas Färber
Introduce type constant, cast macro and rename parent field. Signed-off-by: Andreas Färber --- hw/ppc/mpc8544_guts.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hw/ppc/mpc8544_guts.c b/hw/ppc/mpc8544_guts.c index 98540a4..f623b04 100644 --- a/hw/ppc/mpc8544

[Qemu-devel] [PATCH 3/3] mpc8544_guts: Turn qdev initfn into instance_init

2013-06-09 Thread Andreas Färber
SysBus can deal with NULL SysBusDeviceClass::init since 4ce5dae. Signed-off-by: Andreas Färber --- hw/ppc/mpc8544_guts.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/hw/ppc/mpc8544_guts.c b/hw/ppc/mpc8544_guts.c index f623b04..d41f615 100644 --- a/hw/pp

[Qemu-devel] [PATCH 0/3] ppc: QOM'ify mpc8544_guts device

2013-06-09 Thread Andreas Färber
Hi Alex, Here's a mini-series cleaning up the mpc8544_guts device. One user of SysBusDeviceClass::init less to worry about. ;) Regards, Andreas Cc: Alexander Graf Cc: qemu-...@nongnu.org Andreas Färber (3): mpc8544_guts: Fix MemoryRegion name mpc8544_guts: QOM'ify mpc8544_guts: Turn qdev

[Qemu-devel] [PATCH 1/3] mpc8544_guts: Fix MemoryRegion name

2013-06-09 Thread Andreas Färber
6544 -> 8544 Signed-off-by: Andreas Färber --- hw/ppc/mpc8544_guts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/mpc8544_guts.c b/hw/ppc/mpc8544_guts.c index 193beab..98540a4 100644 --- a/hw/ppc/mpc8544_guts.c +++ b/hw/ppc/mpc8544_guts.c @@ -115,7 +115,7 @@ static

[Qemu-devel] [PATCH] i.MX31: Fix PRCS bit test

2013-06-09 Thread Stefan Weil
cppcheck detected a condition which was always false. According to the MCIMX31 Reference Manual, the PRCS bits have to be 01 to select the Frequency Pre-Multiplier (FPM). PRCS uses bits 1 and 2, so we have to test for 2. Signed-off-by: Stefan Weil --- hw/misc/imx_ccm.c |2 +- 1 file changed

[Qemu-devel] [PATCH v4] target-ppc: Introduce unrealizefn for PowerPCCPU

2013-06-09 Thread Andreas Färber
Use it to clean up the opcode table, resolving a former TODO from Jocelyn. Also switch from malloc() to g_malloc(). Signed-off-by: Andreas Färber --- v3 -> v4: * Introduced PPC_CPU_OPCODES_LEN constant to avoid magic 0x40 (requested by Alex). From "QOM'ify Power Architecture CPU" v2: * Impl

Re: [Qemu-devel] [PATCH qom-cpu 57/59] cpu: Make first_cpu and next_cpu CPUState (WIP)

2013-06-09 Thread Andreas Färber
Sorry, forgot to update the commit message! Am 09.06.2013 21:13, schrieb Andreas Färber: > TODO: gdbstub This was referring to changing gdbstub's c_cpu and g_cpu fields to CPUState - but considering the length of this series, that is left as a follow-up. > TBD: linux-user thread_env Addressed b

[Qemu-devel] [PATCH qom-cpu 59/59] bsd-user: Change thread_env to CPUState

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- bsd-user/elfload.c | 6 -- bsd-user/main.c| 6 +++--- bsd-user/qemu.h| 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 5e20510..93fd9e4 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/e

[Qemu-devel] [PATCH qom-cpu 53/59] gdbstub: Abstract gdb_breakpoint_remove_all() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- gdbstub.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index eb47068..9400abd 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -2059,21 +2059,24 @@ static int gdb_breakpoint_remove(target_ulong addr, tar

[Qemu-devel] [PATCH qom-cpu 48/59] cpus: Abstract all_cpu_threads_idle() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- cpus.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/cpus.c b/cpus.c index 7428389..506a0c8 100644 --- a/cpus.c +++ b/cpus.c @@ -77,16 +77,24 @@ static bool cpu_thread_is_idle(CPUState *cpu) return true; } -st

[Qemu-devel] [PATCH qom-cpu 46/59] ppc: Abstract ppce500_set_mpic_proxy() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ppc/ppc.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index fb57b42..31f3dc4 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -437,22 +437,23 @@ void ppce500_irq_init(CPUPPCState *env

[Qemu-devel] [PATCH qom-cpu 45/59] pc: Abstract pic_irq_request() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/i386/pc.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 71d9019..28c9c6e 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -183,18 +183,23 @@ int cpu_get_pic_interrupt(CPUX86State *env)

[Qemu-devel] [PATCH qom-cpu 44/59] kvmvapic: Abstract vapic_enable_tpr_reporting() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/i386/kvmvapic.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c index 9aac9de..dfb1085 100644 --- a/hw/i386/kvmvapic.c +++ b/hw/i386/kvmvapic.c @@ -485,19 +485,21 @@ static void

[Qemu-devel] [PATCH qom-cpu 54/59] spapr: Abstract spapr_create_fdt_skel() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ppc/spapr.c | 212 ++--- 1 file changed, 113 insertions(+), 99 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 53b603d..c8461da 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -237,6 +237

[Qemu-devel] [PATCH qom-cpu 43/59] kvmclock: Abstract kvmclock_vm_state_change() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/i386/kvm/clock.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index 87d4d0f..eaeb0ff 100644 --- a/hw/i386/kvm/clock.c +++ b/hw/i386/kvm/clock.c @@ -61,13 +61,25 @@ st

[Qemu-devel] [PATCH qom-cpu 57/59] cpu: Make first_cpu and next_cpu CPUState (WIP)

2013-06-09 Thread Andreas Färber
TODO: gdbstub TBD: linux-user thread_env Signed-off-by: Andreas Färber --- cpus.c| 15 +-- exec.c| 27 ++- gdbstub.c | 15 --- hw/arm/boot.c | 10 +- hw/arm/exynos4_boards.

[Qemu-devel] [PATCH qom-cpu 52/59] gdbstub: Abstract gdb_breakpoint_{insert, remove}() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- gdbstub.c | 106 +- 1 file changed, 77 insertions(+), 29 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index e05cd66..eb47068 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1944,10 +1944,46 @@ static cons

[Qemu-devel] [PATCH qom-cpu 47/59] spapr: Abstract spapr_fix_cpu_dt() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ppc/spapr.c | 91 ++ 1 file changed, 53 insertions(+), 38 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 218ea23..53b603d 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -128,53 +128

[Qemu-devel] [PATCH qom-cpu 37/59] target-i386: Abstract cpu_x86_inject_mce() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-i386/helper.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 5e5abe3..d928e82 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1184,6 +11

[Qemu-devel] [PATCH qom-cpu 55/59] spapr_rtas: Abstract rtas_query_cpu_stopped_state() with qemu_get_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ppc/spapr_rtas.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c index 48cea4b..a67ffcd 100644 --- a/hw/ppc/spapr_rtas.c +++ b/hw/ppc/spapr_rtas.c @@ -130,7 +130,6 @@ static void rtas_query

[Qemu-devel] [PATCH qom-cpu 51/59] exec: Abstract qemu_get_cpu() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- exec.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/exec.c b/exec.c index 91618fb..d2e790c 100644 --- a/exec.c +++ b/exec.c @@ -262,20 +262,29 @@ static const VMStateDescription vmstate_cpu_common = { #defin

[Qemu-devel] [PATCH qom-cpu 36/59] linux-user/elfload: Abstract fill_note_info() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Eliminates a confusing CPUArchState *cpu variable. Signed-off-by: Andreas Färber --- linux-user/elfload.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index ddef23e..cb21487 100644 --- a/linux-user/elfload.c +

[Qemu-devel] [PATCH qom-cpu 42/59] target-mips: Abstract helper_evpe() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-mips/op_helper.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index 077e81c..6c64d83 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helpe

[Qemu-devel] [PATCH qom-cpu 38/59] translate-all: Abstract tb_flush() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- translate-all.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/translate-all.c b/translate-all.c index c399a28..78a6f4d 100644 --- a/translate-all.c +++ b/translate-all.c @@ -675,12 +675,17 @@ static void page_flush_tb(void)

[Qemu-devel] [PATCH qom-cpu 58/59] linux-user: Change thread_env to CPUState

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- linux-user/elfload.c | 16 +--- linux-user/linuxload.c | 3 ++- linux-user/main.c | 10 +- linux-user/qemu.h | 2 +- linux-user/signal.c| 12 +++- linux-user/syscall.c | 6 +++--- 6 files changed, 27 insertions(+),

[Qemu-devel] [PATCH qom-cpu 40/59] target-ppc: Abstract helper_msgsnd() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-ppc/excp_helper.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c index 4a0fc6d..b09aafc 100644 --- a/target-ppc/excp_helper.c +++ b/target-ppc/excp_helper.c @

[Qemu-devel] [PATCH qom-cpu 31/59] monitor: Simplify do_info_numa()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- monitor.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/monitor.c b/monitor.c index 9be515c..f37bf3d 100644 --- a/monitor.c +++ b/monitor.c @@ -1803,21 +1803,32 @@ static void do_inf

[Qemu-devel] [PATCH qom-cpu 32/59] kvm: Simplify kvm_{insert, remove, remove_all}_breakpoint[s]()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- kvm-all.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 90b89cd..d5ed831 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1891,12 +1891,22 @@ int kvm

[Qemu-devel] [PATCH qom-cpu 34/59] kvm: Change kvm_remove_all_breakpoints() argument to CPUState

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- gdbstub.c| 2 +- include/sysemu/kvm.h | 2 +- kvm-all.c| 5 ++--- kvm-stub.c | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 1bee3dc..e05cd66 100644 --- a/gdbstub.c +++ b/gdbstub

[Qemu-devel] [PATCH qom-cpu 56/59] spapr_rtas: Abstract rtas_start_cpu() with qemu_get_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ppc/spapr_rtas.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c index a67ffcd..42ed7dc 100644 --- a/hw/ppc/spapr_rtas.c +++ b/hw/ppc/spapr_rtas.c @@ -160,8 +160,7 @@ static v

[Qemu-devel] [PATCH qom-cpu 29/59] cputlb: Simplify cpu_tlb_reset_dirty_all()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cputlb.c | 35 --- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/cputlb.c b/cputlb.c index f7cc4b4..748d0f6 100644 --- a/cputlb.c +++ b/cputlb.c @@ -173,24 +173,37 @@ static inline vo

[Qemu-devel] [PATCH qom-cpu 33/59] kvm: Simplify kvm_remove_all_breakpoints() further

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- kvm-all.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index d5ed831..312106d 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1986,24 +1986,36 @@ int kvm_remove_br

[Qemu-devel] [PATCH qom-cpu 50/59] cpus: Abstract qmp_query_cpus() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- cpus.c | 75 ++ 1 file changed, 43 insertions(+), 32 deletions(-) diff --git a/cpus.c b/cpus.c index 3856bf1..a0b8e6b 100644 --- a/cpus.c +++ b/cpus.c @@ -1205,49 +1205,60 @@ void list_cpus(FILE *f,

[Qemu-devel] [PATCH qom-cpu 30/59] exec: Simplify tcg_commit()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- exec.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/exec.c b/exec.c index e14a815..91618fb 100644 --- a/exec.c +++ b/exec.c @@ -1705,16 +1705,19 @@ static void core_begin(MemoryListener *listener)

[Qemu-devel] [PATCH qom-cpu 27/59] cpu: Turn cpu_unassigned_access() into a CPUState hook

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- cputlb.c | 15 +-- hw/alpha/typhoon.c| 14 ++ include/qom/cpu.h | 33 + memory.c | 10 -- target-alpha/cpu.c| 1 + targe

[Qemu-devel] [PATCH qom-cpu 49/59] cpus: Abstract all_vcpus_paused() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Change return type from int to bool while at it. Signed-off-by: Andreas Färber --- cpus.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/cpus.c b/cpus.c index 506a0c8..3856bf1 100644 --- a/cpus.c +++ b/cpus.c @@ -946,19 +946,21 @@ void qemu_mutex_unlock

[Qemu-devel] [PATCH qom-cpu 24/59] cpus: Change qemu_dummy_start_vcpu() argument to CPUState

2013-06-09 Thread Andreas Färber
Pass it to qemu_dummy_cpu_thread_fn(). Use CPUState::env_ptr for cpu_single_env. Signed-off-by: Andreas Färber --- cpus.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/cpus.c b/cpus.c index 18dba18..2651361 100644 --- a/cpus.c +++ b/cpus.c @@ -771,8 +771,7 @

[Qemu-devel] [PATCH qom-cpu 18/59] cpu: Turn cpu_dump_{state, statistics}() into CPUState hooks

2013-06-09 Thread Andreas Färber
Make cpustats monitor command available unconditionally. Signed-off-by: Andreas Färber --- bsd-user/main.c | 3 ++- cpus.c| 2 +- exec.c| 3 ++- include/exec/cpu-all.h| 10 -- include/qemu/log.h| 2 +-

[Qemu-devel] [PATCH qom-cpu 28/59] cpu: Replace cpu_single_env with CPUState cpu_single_cpu

2013-06-09 Thread Andreas Färber
Fiddle with include order to ensure CPUState is defined before cpu_single_cpu. Signed-off-by: Andreas Färber --- cpu-exec.c | 13 +++-- cpus.c | 29 ++--- exec.c | 12 +++- hw/alpha/typhoon.c | 16 ---

[Qemu-devel] [PATCH qom-cpu 25/59] cpu: Change qemu_init_vcpu() argument to CPUState

2013-06-09 Thread Andreas Färber
This allows to move the call to CPUState's realizefn. Therefore move the stub into libqemustub.a. Signed-off-by: Andreas Färber --- cpus.c | 5 + include/qemu-common.h | 8 include/qom/cpu.h | 8 qom/cpu.c | 2 ++ stubs

[Qemu-devel] [PATCH qom-cpu 41/59] target-mips: Abstract helper_dvpe() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-mips/op_helper.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index f6838ec..077e81c 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@

[Qemu-devel] [PATCH qom-cpu 14/59] cpus: Change cpu_thread_is_idle() argument to CPUState

2013-06-09 Thread Andreas Färber
It no longer needs CPUArchState. Signed-off-by: Andreas Färber --- cpus.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cpus.c b/cpus.c index b2b20c3..fcef422 100644 --- a/cpus.c +++ b/cpus.c @@ -62,10 +62,8 @@ static CPUArchState *next_cpu; -static bool cpu_th

[Qemu-devel] [PATCH qom-cpu 26/59] hwaddr: Make hwaddr type usable beyond softmmu

2013-06-09 Thread Andreas Färber
While not normally needed for *-user, it can safely be used there since always based on uint64_t, to avoid ifdeffery. To avoid accidental uses, move the guards from exec/hwaddr.h to its inclusion sites. No need for them in include/hw/. Prepares for hwaddr use in qom/cpu.h. Signed-off-by: Andrea

[Qemu-devel] [PATCH qom-cpu 39/59] translate-all: Abstract tb_phys_invalidate() with qemu_for_each_cpu()

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- translate-all.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/translate-all.c b/translate-all.c index 78a6f4d..8e98a13 100644 --- a/translate-all.c +++ b/translate-all.c @@ -819,14 +819,31 @@ static inline void t

[Qemu-devel] [PATCH qom-cpu 11/59] monitor: Simplify do_inject_mce()

2013-06-09 Thread Andreas Färber
Use qemu_get_cpu() to avoid open-coded CPU loop. Signed-off-by: Andreas Färber --- monitor.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/monitor.c b/monitor.c index 6e22d15..19c297d 100644 --- a/monitor.c +++ b/monitor.c @@ -2013,7 +2013,6 @@ static void do

[Qemu-devel] [PATCH qom-cpu 21/59] gdbstub: Set gdb_set_stop_cpu() argument to CPUState

2013-06-09 Thread Andreas Färber
Use CPUState::env_ptr for now. Signed-off-by: Andreas Färber --- cpus.c | 2 +- gdbstub.c | 4 +++- include/exec/gdbstub.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cpus.c b/cpus.c index f07618f..dba69bc 100644 --- a/cpus.c +++ b/cpus.c @

[Qemu-devel] [PATCH qom-cpu 23/59] cpus: Change qemu_kvm_start_vcpu() argument to CPUState

2013-06-09 Thread Andreas Färber
Pass it on to qemu_kvm_cpu_thread_fn(). Signed-off-by: Andreas Färber --- cpus.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/cpus.c b/cpus.c index f629a15..18dba18 100644 --- a/cpus.c +++ b/cpus.c @@ -732,14 +732,13 @@ static void qemu_kvm_wait_io_event(CPUS

[Qemu-devel] [PATCH qom-cpu 35/59] linux-user: Simplify start_exclusive()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- linux-user/main.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 95e17cf..5ced658 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -144,25

[Qemu-devel] [PATCH qom-cpu 22/59] cpus: Change cpu_handle_guest_debug() argument to CPUState

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- cpus.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cpus.c b/cpus.c index dba69bc..f629a15 100644 --- a/cpus.c +++ b/cpus.c @@ -463,10 +463,8 @@ static bool cpu_can_run(CPUState *cpu) return true; } -static void cpu_handle_g

[Qemu-devel] [PATCH qom-cpu 20/59] kvm: Change kvm_cpu_exec() argument to CPUState

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- cpus.c | 2 +- include/sysemu/kvm.h | 2 +- kvm-all.c| 3 +-- kvm-stub.c | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cpus.c b/cpus.c index 636d4d8..f07618f 100644 --- a/cpus.c +++ b/cpus.c @@ -757,7

[Qemu-devel] [PATCH qom-cpu 08/59] cpus: Simplify qmp_inject_nmi()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cpus.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/cpus.c b/cpus.c index 24ee974..1975c5c 100644 --- a/cpus.c +++ b/cpus.c @@ -1331,18 +1331,24 @@ exit: fclose(f); } -void qmp

[Qemu-devel] [PATCH qom-cpu 06/59] cpus: Simplify resume_all_vcpus()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cpus.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cpus.c b/cpus.c index ad5edfe..1babecf 100644 --- a/cpus.c +++ b/cpus.c @@ -1005,16 +1005,15 @@ void cpu_resume(CPUState *cpu) qemu_cpu_kic

[Qemu-devel] [PATCH qom-cpu 17/59] cpus: Change qemu_kvm_init_cpu_signals() argument to CPUState

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- cpus.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cpus.c b/cpus.c index aa8aa36..080f308 100644 --- a/cpus.c +++ b/cpus.c @@ -572,9 +572,8 @@ static void dummy_signal(int sig) { } -static void qemu_kvm_init_cpu_signals(CPUArchS

[Qemu-devel] [PATCH qom-cpu 19/59] kvm: Change kvm_handle_internal_error() argument to CPUState

2013-06-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- kvm-all.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 1cd4573..1675311 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1520,10 +1520,8 @@ static void kvm_handle_io(uint16_t port, void *data, int direction, int

[Qemu-devel] [PATCH qom-cpu 16/59] kvm: Change kvm_set_signal_mask() argument to CPUState

2013-06-09 Thread Andreas Färber
CPUArchState is no longer needed. Signed-off-by: Andreas Färber --- cpus.c | 3 ++- include/sysemu/kvm.h | 2 +- kvm-all.c| 3 +-- kvm-stub.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpus.c b/cpus.c index 2545e15..aa8aa36 100644 -

[Qemu-devel] [PATCH qom-cpu 02/59] kvm: Change cpu_synchronize_state() argument to CPUState

2013-06-09 Thread Andreas Färber
Change Monitor::mon_cpu to CPUState as well. In cpu_sychronize_all_states() use qemu_for_each_cpu() now. In dump_init() use cpu_synchronize_all_states(). Signed-off-by: Andreas Färber --- cpus.c | 13 +++-- gdbstub.c | 8 hw/i386/kvm/apic.c |

[Qemu-devel] [PATCH qom-cpu 12/59] gdbstub: Simplify find_cpu()

2013-06-09 Thread Andreas Färber
Use qemu_get_cpu() and CPUState::env_ptr. Signed-off-by: Andreas Färber --- gdbstub.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index fb6c6a5..92ecdcb 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -2068,17 +2068,13 @@ static void gdb_set_c

[Qemu-devel] [PATCH qom-cpu 09/59] cpus: Simplify hw_error()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cpus.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cpus.c b/cpus.c index 1975c5c..9195bc3 100644 --- a/cpus.c +++ b/cpus.c @@ -386,21 +386,22 @@ void configure_icount(const char *option) }

[Qemu-devel] [PATCH qom-cpu 13/59] cpu: Change cpu_exit() argument to CPUState

2013-06-09 Thread Andreas Färber
It no longer depends on CPUArchState, so move it to qom/cpu.c. Signed-off-by: Andreas Färber --- cpus.c | 4 ++-- exec.c | 8 gdbstub.c | 2 +- hw/i386/pc.c| 2 +- hw/mips/mips_fulong2e.c | 2 +- hw/mips/mips_jazz.c | 2 +-

[Qemu-devel] [PATCH qom-cpu 15/59] cpus: Change qemu_kvm_wait_io_event() argument to CPUState

2013-06-09 Thread Andreas Färber
It no longer uses CPUArchState. Signed-off-by: Andreas Färber --- cpus.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cpus.c b/cpus.c index fcef422..2545e15 100644 --- a/cpus.c +++ b/cpus.c @@ -722,10 +722,8 @@ static void qemu_tcg_wait_io_event(void) qemu_for_e

[Qemu-devel] [PATCH qom-cpu 07/59] cpus: Simplify set_numa_modes()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cpus.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cpus.c b/cpus.c index 1babecf..24ee974 100644 --- a/cpus.c +++ b/cpus.c @@ -1188,22 +1188,22 @@ static void tcg_exec_all(void) exit_re

[Qemu-devel] [PATCH qom-cpu 10/59] cpus: Simplify qemu_tcg_wait_io_event() and qemu_tcg_cpu_thread_fn()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cpus.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/cpus.c b/cpus.c index 9195bc3..a8572a9 100644 --- a/cpus.c +++ b/cpus.c @@ -703,10 +703,13 @@ static void qemu_wait_io_event_common(CPUState

[Qemu-devel] [PATCH qom-cpu 03/59] cpus: Simplify cpu_synchronize_all_post_reset()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cpus.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cpus.c b/cpus.c index 8ff66c3..1186ad3 100644 --- a/cpus.c +++ b/cpus.c @@ -415,13 +415,14 @@ void cpu_synchronize_all_states(void) qemu_for_

[Qemu-devel] [PATCH qom-cpu 01/59] kvm: Change kvm_cpu_synchronize_state() argument to CPUState

2013-06-09 Thread Andreas Färber
It no longer relies on CPUArchState. Signed-off-by: Andreas Färber --- hw/ppc/spapr_rtas.c | 2 +- include/sysemu/kvm.h | 4 ++-- kvm-all.c| 4 +--- kvm-stub.c | 2 +- target-i386/kvm.c| 10 +- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git

[Qemu-devel] [PATCH qom-cpu 05/59] cpus: Simplify pause_all_vcpus()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu() to pause, stop and kick CPUs. Signed-off-by: Andreas Färber --- cpus.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/cpus.c b/cpus.c index 85b35f6..ad5edfe 100644 --- a/cpus.c +++ b/cpus.c @@ -962,39 +96

[Qemu-devel] [PATCH qom-cpu 04/59] cpus: Simplify cpu_synchronize_all_post_init()

2013-06-09 Thread Andreas Färber
Use new qemu_for_each_cpu(). Signed-off-by: Andreas Färber --- cpus.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cpus.c b/cpus.c index 1186ad3..85b35f6 100644 --- a/cpus.c +++ b/cpus.c @@ -425,13 +425,14 @@ void cpu_synchronize_all_post_reset(void) qemu_

[Qemu-devel] [PATCH qom-cpu 00/59] QOM CPUState, part 10: CPU loops

2013-06-09 Thread Andreas Färber
Hello, Based on my guest-memory-dump cleanup patches, this large series changes cpu_single_env, first_cpu, next_cpu and thread_env to CPUState. As a prerequisite, most open-coded CPU loops are replaced by either qemu_for_each_cpu() or qemu_get_cpu(). Individual review appreciated! qemu_init_vcpu

Re: [Qemu-devel] [PATCH] gtk: implement -full-screen and -no-frame

2013-06-09 Thread Anthony Liguori
On Sun, Jun 9, 2013 at 5:30 AM, Peter Wu wrote: > Aiming for GTK as replacement for SDL, features like -full-screen and > -no-frame > should also be implemented. > > Bringing the window into full-screen mode is done by faking activating the > full > screen menu item with a NULL menu item (which

  1   2   >