Re: [Qemu-devel] question: guest will hang when call system function in migration thread.

2014-12-05 Thread Li Guang
Hi, which version you tested? do you let vm continue to run after migration? can you provide more info? can't reproduce it on latest version. Thanks! On 12/04/2014 11:14 PM, 陈梁 wrote: Hi all guest will hang when call system function in migration thread. The cpu usage of vcpu thread is

[Qemu-devel] 答复: [PATCH] vnc: add additional key up event before repeated key down

2014-09-18 Thread Li, Guang
-邮件原件- 发件人: qemu-devel-bounces+lig.fnst=cn.fujitsu@nongnu.org [mailto:qemu-devel-bounces+lig.fnst=cn.fujitsu@nongnu.org] 代表 Peter Maydell 发送时间: 2014年9月18日 0:09 收件人: Gerd Hoffmann 抄送: Stefano Stabellini; Markus Armbruster; qemu-devel; xen-de...@lists.xen.org; Anthony

Re: [Qemu-devel] [PATCH v3 2/7] allwinner-a10-pic: fix behaviour of pending register

2014-03-16 Thread Li Guang
-by: Li Guang lig.f...@cn.fujitsu.com --- hw/intc/allwinner-a10-pic.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hw/intc/allwinner-a10-pic.c b/hw/intc/allwinner-a10-pic.c index 00f3c11..0924d98 100644 --- a/hw/intc/allwinner-a10-pic.c +++ b/hw/intc/allwinner

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

2014-03-16 Thread Li Guang
and thus the first pending interrupt is returned. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Reviewed-by: Li Guang lig.f...@cn.fujitsu.com --- hw/intc/allwinner-a10-pic.c | 14 ++ 1 file changed, 10

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

2014-03-16 Thread Li Guang
在 2014-03-15六的 14:01 +0100,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 b.galv...@gmail.com Reviewed-by: Li Guang lig.f...@cn.fujitsu.com --- hw/timer/allwinner-a10

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

2014-03-16 Thread Li Guang
在 2014-03-15六的 14:01 +0100,Beniamino Galvani写道: The model was generating interrupts for all enabled timers after the expiration of one of them. Avoid this by passing explicitly the timer index to the callback function. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Reviewed-by: Li

Re: [Qemu-devel] [RFC PATCH v2 06/12] mc: introduce state machine changes for MC

2014-02-25 Thread Li Guang
Li Guang wrote: Michael R. Hines wrote: On 02/19/2014 09:00 AM, Li Guang wrote: Hi, mrhi...@linux.vnet.ibm.com wrote: From: Michael R. Hinesmrhi...@us.ibm.com This patch sets up the initial changes to the migration state machine and prototypes to be used by the checkpointing code

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-24 Thread Li Guang
Beniamino Galvani wrote: On Mon, Feb 24, 2014 at 02:45:06PM +0800, Li Guang wrote: Beniamino Galvani wrote: On Wed, Feb 19, 2014 at 10:02:36AM +0800, Li Guang wrote: Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-23 Thread Li Guang
Beniamino Galvani wrote: On Wed, Feb 19, 2014 at 10:02:36AM +0800, Li Guang wrote: Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote: Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems

Re: [Qemu-devel] [RFC PATCH v2 06/12] mc: introduce state machine changes for MC

2014-02-23 Thread Li Guang
Michael R. Hines wrote: On 02/19/2014 09:00 AM, Li Guang wrote: Hi, mrhi...@linux.vnet.ibm.com wrote: From: Michael R. Hinesmrhi...@us.ibm.com This patch sets up the initial changes to the migration state machine and prototypes to be used by the checkpointing code to interact with the state

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

2014-02-20 Thread Li Guang
Dr. David Alan Gilbert wrote: * Michael R. Hines (mrhi...@linux.vnet.ibm.com) wrote: On 02/19/2014 07:27 PM, Dr. David Alan Gilbert wrote: I was just wondering if a separate 'max buffer size' knob would allow you to more reasonably bound memory without setting policy; I don't think

Re: [Qemu-devel] [RFC PATCH v2 00/12] mc: fault tolerante through micro-checkpointing

2014-02-18 Thread Li Guang
Hi, Michael this patch-set will break normal build(without --enable-mc): migration.c: In function ‘migrate_rdma_pin_all’: migration.c:564: error: ‘MIGRATION_CAPABILITY_X_RDMA_PIN_ALL’ undeclared (first use in this function) migration.c:564: error: for each function it appears in.) Thanks! Li

Re: [Qemu-devel] [RFC PATCH v2 06/12] mc: introduce state machine changes for MC

2014-02-18 Thread Li Guang
Hi, mrhi...@linux.vnet.ibm.com wrote: From: Michael R. Hinesmrhi...@us.ibm.com This patch sets up the initial changes to the migration state machine and prototypes to be used by the checkpointing code to interact with the state machine so that we can later handle failure and recovery

Re: [Qemu-devel] [RFC PATCH v2 08/12] mc: core logic

2014-02-18 Thread Li Guang
Hi, mrhi...@linux.vnet.ibm.com wrote: From: Michael R. Hinesmrhi...@us.ibm.com This implements the core logic, all described in the first patch (docs/mc.txt). Signed-off-by: Michael R. Hinesmrhi...@us.ibm.com --- migration-checkpoint.c | 1565

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

2014-02-18 Thread Li Guang
Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 12:17:04PM +0800, Li Guang wrote: Beniamino Galvani wrote: 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

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-18 Thread Li Guang
Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote: Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems to have no effect on actual pending status of interrupts. This means that the only way to clear a pending

Re: [Qemu-devel] [RFC PATCH v2 08/12] mc: core logic

2014-02-18 Thread Li Guang
Michael R. Hines wrote: On 02/19/2014 09:07 AM, Li Guang wrote: Hi, mrhi...@linux.vnet.ibm.com wrote: From: Michael R. Hinesmrhi...@us.ibm.com This implements the core logic, all described in the first patch (docs/mc.txt). Signed-off-by: Michael R. Hinesmrhi...@us.ibm.com --- migration

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

2014-02-17 Thread Li Guang
Hi, Beniamino Galvani wrote: 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

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-17 Thread Li Guang
pending registers are also clear registers by a10 datasheet, also you found bits are marked as 'R', so, ..., contradict itself. Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems to have no effect on actual pending status of interrupts. This means that

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

2014-02-17 Thread Li Guang
Beniamino Galvani wrote: Converts the interrupt generation logic to the use of level triggered interrupts. any real difference, or block something? Signed-off-by: Beniamino Galvanib.galv...@gmail.com --- hw/timer/allwinner-a10-pit.c | 13 - 1 file changed, 12

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

2014-02-17 Thread Li Guang
did you detect spurious? didn't by my limited test, code will disable any expired timer, unless be re-armed, so it will never generate interrupt any more. Thanks! Beniamino Galvani wrote: The model was generating interrupts for all enabled timers after the expiration of one of them. Avoid this

Re: [Qemu-devel] [PATCH v2] hw/misc/blob-loader: add a generic blob loader

2014-01-15 Thread Li Guang
WRT to that may actually be best. but I still don't be clear with the direction, as PMM also said unconvinced by the general approach of having a device with an address property. or, I should extend the -machine firmware=xxx interface to be general? Thanks! Li Guang Thanks! Li

Re: [Qemu-devel] [PATCH v2] hw/misc/blob-loader: add a generic blob loader

2014-01-14 Thread Li Guang
ping ... any other comments? or new suggestions? Thanks! Li Guang wrote: this blob loader will be used to load a specified blob into a specified RAM address. Signed-off-by: Li Guanglig.f...@cn.fujitsu.com Suggested-by: Peter Crosthwaitepeter.crosthwa...@xilinx.com --- hw/misc

Re: [Qemu-devel] [PATCH 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-07 Thread Li Guang
Beniamino Galvani wrote: On Mon, Jan 06, 2014 at 08:49:18AM +0800, Li Guang wrote: Hi, please use prefix AwA10 for names instead of Aw, also PATCH 1/2. Hi, I agree with you that there is an inconsistency in the naming of EMAC and other A10 devices (timer, interrupt controller

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-07 Thread Li Guang
Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 10:13 PM, Paolo Bonzinipbonz...@redhat.com wrote: Il 06/01/2014 08:56, Peter Crosthwaite ha scritto: What are the guidelines for when to use one or the other? -machine firmware= if you want to load a firmware blob in a board

Re: [Qemu-devel] [PATCH 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-05 Thread Li Guang
Hi, please use prefix AwA10 for names instead of Aw, also PATCH 1/2. Thanks for your effort on this! Beniamino Galvani wrote: Signed-off-by: Beniamino Galvanib.galv...@gmail.com --- hw/arm/allwinner-a10.c | 20 include/hw/arm/allwinner-a10.h |4 2

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-05 Thread Li Guang
Paolo Bonzini wrote: Il 02/01/2014 11:51, Peter Crosthwaite ha scritto: No, please use realize and avoid init. This way you can use an Error* to report the error. Also, the actual load_image_targphys call probably should be done in a reset handler, not at realize time. Ok I

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-05 Thread Li Guang
Li Guang wrote: Paolo Bonzini wrote: Il 02/01/2014 11:51, Peter Crosthwaite ha scritto: No, please use realize and avoid init. This way you can use an Error* to report the error. Also, the actual load_image_targphys call probably should be done in a reset handler, not at realize time

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-05 Thread Li Guang
Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 1:55 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Li Guang wrote: Paolo Bonzini wrote: Il 02/01/2014 11:51, Peter Crosthwaite ha scritto: No, please use realize and avoid init. This way you can use an Error

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-05 Thread Li Guang
Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 2:22 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 1:55 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Li Guang wrote: Paolo Bonzini wrote: Il 02/01/2014 11

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-05 Thread Li Guang
Li Guang wrote: Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 2:22 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 1:55 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Li Guang wrote: Paolo Bonzini wrote: Il 02/01/2014 11:51, Peter Crosthwaite

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-05 Thread Li Guang
Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 3:24 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Li Guang wrote: Peter Crosthwaite wrote: On Mon, Jan 6, 2014 at 2:22 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Peter Crosthwaite wrote: On Mon, Jan 6

[Qemu-devel] [PATCH v2] hw/misc/blob-loader: add a generic blob loader

2014-01-05 Thread Li Guang
this blob loader will be used to load a specified blob into a specified RAM address. Signed-off-by: Li Guang lig.f...@cn.fujitsu.com Suggested-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/misc/Makefile.objs |2 + hw/misc/blob-loader.c | 112

[Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-01 Thread Li Guang
this blob loader will be used to load a specified blob into a specified RAM address. Signed-off-by: Li Guang lig.f...@cn.fujitsu.com --- it can be used now for allwinner-a10, like: -device blob-loader,addr=0x4300,file=/path/script.bin reference: http://linux-sunxi.org/Sunxi-tools script

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-01 Thread Li Guang
Peter Crosthwaite wrote: On Thu, Jan 2, 2014 at 3:35 PM, Li Guanglig.f...@cn.fujitsu.com wrote: this blob loader will be used to load a specified blob into a specified RAM address. Suggested-by: Peter Crosthwaitepeter.crosthwa...@xilinx.com Signed-off-by: Li

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-26 Thread Li Guang
Peter Maydell wrote: On 26 December 2013 19:40, Hans de Goedehdego...@redhat.com wrote: I'm one of the linux-sunxi developers, the only reason we've this fex file abomination, is because we've inherited it from the android-allwinner sources. Thanks for the clarification; I suspected

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-25 Thread Li Guang
Peter Maydell wrote: On 25 December 2013 08:35, liguanglig.f...@cn.fujitsu.com wrote: sunxi-linux kernel parse config script to do hardware configurations Signed-off-by: liguanglig.f...@cn.fujitsu.com --- hw/arm/allwinner-a10.c | 18 ++ hw/arm/cubieboard.c

Re: [Qemu-devel] [PATCH] hw/sd: move sdhci.h to include/hw

2013-12-25 Thread Li Guang
Peter Maydell wrote: On 25 December 2013 07:21, liguanglig.f...@cn.fujitsu.com wrote: This is where your patch should have had an explanation for why you're making this change. What is the user outside of hw/sd/ that needs this header that means we should move it into include/ ? I don't

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-25 Thread Li Guang
, bootloader will load it into ram address 0x4300, kernel will find it at this fixed address, and parse it, learn the hardware related configuration, mostly property of devices, and GPIOes used. Thanks and Merry Christmas! Li Guang

Re: [Qemu-devel] [PATCH] hw/sd: move sdhci.h to include/hw

2013-12-25 Thread Li Guang
Peter Maydell wrote: On 26 December 2013 00:22, Li Guanglig.f...@cn.fujitsu.com wrote: Peter Maydell wrote: On 25 December 2013 07:21, liguanglig.f...@cn.fujitsu.com wrote: This is where your patch should have had an explanation for why you're making this change. What is the user

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-25 Thread Li Guang
Peter Maydell wrote: On 26 December 2013 00:39, Li Guanglig.f...@cn.fujitsu.com wrote: Peter Maydell wrote: On 26 December 2013 00:14, Li Guanglig.f...@cn.fujitsu.com wrote: it's the approach sunxi-linux kernel config hardware, the binary is actually a transformed text

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-25 Thread Li Guang
Peter Crosthwaite wrote: On Thu, Dec 26, 2013 at 10:47 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 26 December 2013 00:39, Li Guanglig.f...@cn.fujitsu.com wrote: Peter Maydell wrote: On 26 December 2013 00:14, Li Guanglig.f...@cn.fujitsu.com wrote:

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-25 Thread Li Guang
Peter Maydell wrote: On 26 December 2013 01:09, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Can you just provide a generic solution to the blob some random data into RAM problem (If one doesn't exist already)? Well, we do already have that (see -machine firmware=whatever),

Re: [Qemu-devel] [PULL 00/13] QMP queue

2013-12-19 Thread Li Guang
Peter Maydell wrote: On 18 December 2013 16:59, Luiz Capitulinolcapitul...@redhat.com wrote: qerror: Remove assert_no_error() This broke my target-arm pullreq :-( Yes, QMP queue and qemu-arm queue will conflict, because patch target-arm/cpu: Convert reset CBAR to a

Re: [Qemu-devel] [PATCH v12 2/5] hw/timer: add allwinner a10 timer

2013-12-15 Thread Li Guang
(C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or + * (at your

Re: [Qemu-devel] [PATCH v11 1/5] vmstate: add VMSTATE_PTIMER_ARRAY

2013-12-12 Thread Li Guang
ping ... this patch is not changed since v8, can it get some comments? Thanks! liguang wrote: Signed-off-by: liguanglig.f...@cn.fujitsu.com --- include/migration/vmstate.h |4 savevm.c| 31 +++ 2 files changed, 35 insertions(+), 0

Re: [Qemu-devel] [PATCH v11 1/5] vmstate: add VMSTATE_PTIMER_ARRAY

2013-12-12 Thread Li Guang
Peter Maydell wrote: On 11 December 2013 08:08, liguanglig.f...@cn.fujitsu.com wrote: +static int get_ptimer(QEMUFile *f, void *pv, size_t size) +{ +ptimer_state *v = pv; +uint64_t count; + +count = qemu_get_be64(f); +if (count != -1) { +ptimer_set_count(v, count);

Re: [Qemu-devel] [PATCH v11 3/5] hw/intc: add allwinner A10 interrupt controller

2013-12-12 Thread Li Guang
Peter Maydell wrote: On 11 December 2013 08:08, liguanglig.f...@cn.fujitsu.com wrote: +static void aw_a10_pic_set_irq(void *opaque, int irq, int level) +{ +AwA10PICState *s = opaque; + +if (level) { +set_bit(irq%32, (void *)s-irq_pending[irq/32]); The % and /

Re: [Qemu-devel] [PATCH v12 1/5] vmstate: Add support for an array of ptimer_state *

2013-12-12 Thread Li Guang
Peter Crosthwaite wrote: On Fri, Dec 13, 2013 at 11:19 AM, liguanglig.f...@cn.fujitsu.com wrote: From: Peter Maydellpeter.mayd...@linaro.org Add support for defining a vmstate field which is an array of pointers to structures, and use this to define a VMSTATE_PTIMER_ARRAY() which allows

Re: [Qemu-devel] [PATCH v10 5/5] hw/arm: add cubieboard support

2013-12-11 Thread Li Guang
Peter Crosthwaite wrote: On Wed, Dec 11, 2013 at 8:31 PM, Peter Maydellpeter.mayd...@linaro.org wrote: On 11 December 2013 10:24, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Wed, Dec 11, 2013 at 7:56 PM, Peter Maydellpeter.mayd...@linaro.org wrote: On 11

Re: [Qemu-devel] [PATCH v10 3/5] hw/intc: add allwinner A10 interrupt controller

2013-12-10 Thread Li Guang
) += allwinner-a10-pic.o diff --git a/hw/intc/allwinner-a10-pic.c b/hw/intc/allwinner-a10-pic.c new file mode 100644 index 000..9345741 --- /dev/null +++ b/hw/intc/allwinner-a10-pic.c @@ -0,0 +1,217 @@ +/* + * Allwinner A10 interrupt controller device emulation + * + * Copyright (C) 2013 Li Guang

Re: [Qemu-devel] [PATCH v10 2/5] hw/timer: add allwinner a10 timer

2013-12-10 Thread Li Guang
--git a/hw/timer/allwinner-a10-pit.c b/hw/timer/allwinner-a10-pit.c new file mode 100644 index 000..9f898e7 --- /dev/null +++ b/hw/timer/allwinner-a10-pit.c @@ -0,0 +1,254 @@ +/* + * Allwinner A10 timer device emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f

Re: [Qemu-devel] [PATCH 1/7] define hotplug interface

2013-12-08 Thread Li Guang
) + Hmm..., this is interface, but device, a bold opinion, can have something like TYPE_HOTPLUG_INTERFACE ... ? +/** + * hotplug_fn: + * @hotplug_dev: a device performing hotplug/uplug action s/uplug/unplug Thanks! Li Guang + * @hotplugged_dev: a device that has been hotplugged

Re: [Qemu-devel] [PATCH v8 4/5] hw/arm: add allwinner a10 SoC support

2013-12-04 Thread Li Guang
cpu_irq[2]; I dont see the need to keep these as device state. They appear to be just local variables to realize(). +AwA10PITState timer; +AwA10PICState intc; +} AwA10State; + +#define ALLWINNER_H_ +#endif -- 1.7.2.5 OK, will fix. Thanks! Li Guang

Re: [Qemu-devel] [PATCH v8 2/5] hw/timer: add allwinner a10 timer

2013-12-04 Thread Li Guang
/timer/allwinner-a10-pit.c b/hw/timer/allwinner-a10-pit.c new file mode 100644 index 000..2305813 --- /dev/null +++ b/hw/timer/allwinner-a10-pit.c @@ -0,0 +1,253 @@ +/* + * Allwinner A10 timer device emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH v9 0/5] add allwinner A10 SoC support

2013-12-04 Thread Li Guang
A10 SoC support TODO: 1. add BROM support 2. add more devices test: can boot-up officially released linux kernel build with PLL disabled. can find test zImage url at: http://dl.dbank.com/c0jaibr54s reference: http://linux-sunxi.org/Main_Page Li Guang (5) vmstate: add

Re: [Qemu-devel] [PATCH v9 0/5] add allwinner A10 SoC support

2013-12-04 Thread Li Guang
/c0jaibr54s reference: http://linux-sunxi.org/Main_Page Li Guang (5) vmstate: add VMSTATE_PTIMER_ARRAY hw/timer: add allwinner a10 timer hw/intc: add allwinner A10 interrupt controller hw/arm: add allwinner a10 SoC support hw/arm: add cubieboard

Re: [Qemu-devel] [PATCH 5/5] hw/arm: add cubieboard support

2013-12-03 Thread Li Guang
Andreas Färber wrote: Am 03.12.2013 13:01, schrieb Peter Crosthwaite: On Tue, Dec 3, 2013 at 7:11 PM, liguanglig.f...@cn.fujitsu.com wrote: Signed-off-by: liguanglig.f...@cn.fujitsu.com --- hw/arm/Makefile.objs |2 +- hw/arm/cubieboard.c | 33

Re: [Qemu-devel] [PATCH 5/5] hw/arm: add cubieboard support

2013-12-03 Thread Li Guang
Peter Crosthwaite wrote: On Tue, Dec 3, 2013 at 7:11 PM, liguanglig.f...@cn.fujitsu.com wrote: Signed-off-by: liguanglig.f...@cn.fujitsu.com --- hw/arm/Makefile.objs |2 +- hw/arm/cubieboard.c | 33 + 2 files changed, 34 insertions(+), 1

Re: [Qemu-devel] [PATCH 2/5] hw/timer: add allwinner a10 timer

2013-12-03 Thread Li Guang
..2f9b458 --- /dev/null +++ b/hw/timer/allwinner-a10_pit.c @@ -0,0 +1,253 @@ +/* + * Allwinner A10 timer device emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under

Re: [Qemu-devel] [PATCH v6 1/5] hw/ptimer: add VMSTATE_PTIMER_ARRAY

2013-12-01 Thread Li Guang
Peter Maydell wrote: On 29 November 2013 11:01, Peter Maydellpeter.mayd...@linaro.org wrote: On 27 November 2013 08:23, liguanglig.f...@cn.fujitsu.com wrote: Signed-off-by: liguanglig.f...@cn.fujitsu.com --- include/hw/ptimer.h |3 +++ 1 files changed, 3 insertions(+), 0

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-12-01 Thread Li Guang
Andreas Färber wrote: Am 29.11.2013 09:06, schrieb Li Guang: Andreas Färber wrote: Am 29.11.2013 01:46, schrieb Li Guang: Andreas Färber wrote: Am 27.11.2013 10:22, schrieb Andreas Färber: [...] To my understanding, sunxi is the name of a community

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-29 Thread Li Guang
Andreas Färber wrote: Am 29.11.2013 01:46, schrieb Li Guang: Andreas Färber wrote: Am 27.11.2013 10:22, schrieb Andreas Färber: Hi, Am 26.11.2013 10:22, schrieb Peter Crosthwaite: On Tue, Nov 26, 2013 at 5:22 PM, liguanglig.f...@cn.fujitsu.com wrote

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-29 Thread Li Guang
comes from might make it easier to tell if it is the correct one for the QEMU SoC models. I tried to contact Allwinner's engineer, no response until now. Thanks! Li Guang

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-29 Thread Li Guang
Bamvor Jian Zhang wrote: Hi, Li Guanglig.f...@cn.fujitsu.com wrote: Andreas Färber wrote: Am 29.11.2013 01:46, schrieb Li Guang: Andreas Färber wrote: Am 27.11.2013 10:22, schrieb Andreas Färber: Hi, Am 26.11.2013 10:22, schrieb Peter

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-28 Thread Li Guang
000..b45af6d --- /dev/null +++ b/hw/arm/sunxi-soc.c @@ -0,0 +1,98 @@ +/* + * Allwinner sunxi series SoC emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under

Re: [Qemu-devel] [fixed-up][PATCH v6 2/5] hw/timer: add sunxi timer device

2013-11-28 Thread Li Guang
, depending on outcoming of the naming discussion. + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free

Re: [Qemu-devel] [fixed-up][PATCH v5 3/5] hw/intc: add sunxi interrupt controller device

2013-11-27 Thread Li Guang
emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2

Re: [Qemu-devel] [PATCH v6 0/5] add sunxi machine type

2013-11-27 Thread Li Guang
(if not a few days) to weigh in as well. OK, thanks! just a little busy on other jobs, :-) TODO: 1. add BROM support 2. add more devices 3. add sunxi-7i support test: can boot-up officially released linux kernel. reference: http://linux-sunxi.org/Main_Page Li Guang (5) hw/ptimer

Re: [Qemu-devel] [PATCH v4 1/4] hw/timer: add sunxi timer device

2013-11-26 Thread Li Guang
mode 100644 index 000..39b84ab --- /dev/null +++ b/hw/timer/sunxi-pit.c @@ -0,0 +1,295 @@ +/* + * Allwinner sunxi timer device emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify

Re: [Qemu-devel] [PATCH v4 2/4] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread Li Guang
emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2

Re: [Qemu-devel] [PATCH v4 1/4] hw/timer: add sunxi timer device

2013-11-26 Thread Li Guang
-$(CONFIG_MC146818RTC) += mc146818rtc.o +obj-$(CONFIG_SUNXI_PIT) += sunxi-pit.o diff --git a/hw/timer/sunxi-pit.c b/hw/timer/sunxi-pit.c new file mode 100644 index 000..39b84ab --- /dev/null +++ b/hw/timer/sunxi-pit.c @@ -0,0 +1,295 @@ +/* + * Allwinner sunxi timer device emulation + * + * Copyright (C) 2013 Li

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-26 Thread Li Guang
, Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu Tao wrote: On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote: On Thu, Nov 21, 2013

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-26 Thread Li Guang
emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-26 Thread Li Guang
Guanglig.f...@cn.fujitsu.comwrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:32:27PM +0800, Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu

Re: [Qemu-devel] [PATCH v4 2/4] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread Li Guang
Li Guang wrote: Peter Crosthwaite wrote: On Tue, Nov 26, 2013 at 5:22 PM, liguanglig.f...@cn.fujitsu.com wrote: Signed-off-by: liguanglig.f...@cn.fujitsu.com --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 238

Re: [Qemu-devel] [PATCH v4 2/4] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread Li Guang
Peter Crosthwaite wrote: On Wed, Nov 27, 2013 at 1:36 PM, Li Guanglig.f...@cn.fujitsu.com wrote: Li Guang wrote: Peter Crosthwaite wrote: On Tue, Nov 26, 2013 at 5:22 PM, liguanglig.f...@cn.fujitsu.com wrote: Signed-off-by: liguanglig.f...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH v5 2/5] hw/timer: add sunxi timer device

2013-11-26 Thread Li Guang
mode 100644 index 000..36eb13c --- /dev/null +++ b/hw/timer/sunxi-pit.c @@ -0,0 +1,276 @@ +/* + * Allwinner sunxi timer device emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-25 Thread Li Guang
Igor Mammedov wrote: On Fri, 22 Nov 2013 08:57:40 +0800 Li Guanglig.f...@cn.fujitsu.com wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:32:27PM +0800, Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang

Re: [Qemu-devel] [PATCH v3 2/4] hw/intc: add sunxi interrupt controller device

2013-11-25 Thread Li Guang
emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2

Re: [Qemu-devel] [PATCH v3 1/4] hw/timer: add sunxi timer device

2013-11-25 Thread Li Guang
file mode 100644 index 000..6220b60 --- /dev/null +++ b/hw/timer/sunxi-pit.c @@ -0,0 +1,260 @@ +/* + * Allwinner sunxi timer device emulation + * + * Copyright (C) 2013 Li Guang + * Written by Li Guanglig.f...@cn.fujitsu.com + * + * This program is free software; you can redistribute

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Li Guang
Hu Tao wrote: On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 03:38:37AM +0100, Igor Mammedov wrote: it fixes IRQ storm since guest isn't able to lower SCI IRQ after it has been handled when it clears GPE event. Signed-off-by: Igor

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Li Guang
Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu Tao wrote: On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 03:38:37AM +0100, Igor Mammedov wrote: it fixes IRQ storm since guest

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Li Guang
Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:32:27PM +0800, Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu Tao wrote: On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Li Guang
Igor Mammedov wrote: On Thu, 21 Nov 2013 16:32:27 +0800 Li Guanglig.f...@cn.fujitsu.com wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu Tao wrote: On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote

Re: [Qemu-devel] [PATCH 0/4] add sunxi machine

2013-11-20 Thread Li Guang
Hi, Peter Peter Maydell wrote: On 20 November 2013 07:53, liguanglig.f...@cn.fujitsu.com wrote: this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... Li Guang (4) hw/arm: add new machine type sunxi

Re: [Qemu-devel] [PATCH 21/27] pc: add memory hotplug 440fx machine

2013-11-20 Thread Li Guang
Hi, Igor Igor Mammedov wrote: Add DimmBus for memory hotplug below 4Gb or above 4Gb depending on initial memory size and hotplug memory size. ... +static +void pc_hotplug_memory_init_impl(Object *owner, + MemoryRegion *system_memory, +

Re: [Qemu-devel] [PATCH 04/27] vl: convert -m to qemu_opts_parse()

2013-11-20 Thread Li Guang
Igor Mammedov wrote: Along with conversion extend -m option to support following parameters ... +if (!opts) { exit(1); } -sz = QEMU_ALIGN_UP((uint64_t)value, 8192); + +/* fixup legacy sugffix-less

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Li Guang
Michael S. Tsirkin wrote: On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: Hi all, this question might seem a bit weird, but does anyone see a good way to avoid that Windows is able to boot inside qemu? We have defined several profiles for different operation systems and I

Re: [Qemu-devel] [PATCH] exec: avoid tcg_commit when kvm_enabled

2013-09-04 Thread Li Guang
在 2013-09-04三的 08:23 +0200,Paolo Bonzini写道: Il 04/09/2013 03:07, Li Guang ha scritto: 在 2013-09-03二的 10:39 +0200,Andreas Färber写道: Am 03.09.2013 08:59, schrieb liguang: Signed-off-by: liguang lig.f...@cn.fujitsu.com --- exec.c |4 +++- 1 files changed, 3 insertions(+), 1

Re: [Qemu-devel] [PATCH] exec: avoid tcg_commit when kvm_enabled

2013-09-03 Thread Li Guang
); +} } MemoryRegion *get_system_memory(void) -- Thanks! Li Guang

Re: [Qemu-devel] [Qemu-trivial] [PATCH] cputlb: remove dead function tlb_update_dirty

2013-09-03 Thread Li Guang
, you're on the receiving end) can't be the new solution, so feel encouraged to push back a little. :) Cheers, Andreas -- Thanks! Li Guang

Re: [Qemu-devel] [PATCH v2 1/2] tcg/mips: detect available host instructions at runtime

2013-08-27 Thread li guang
Hi, Aurelien, to nitpick, use_mips32r2_instructions may already indicate use_mips32_instructions,right? so during ISA detection, we may first do mips32r2, then mips32 detection is unnecessary, I think. 在 2013-08-28三的 00:11 +0200,Aurelien Jarno写道: Now that TCG supports enabling and disabling

Re: [Qemu-devel] [PATCH] i386: Use #defines instead of magic numbers for CPUID cache information

2013-08-26 Thread li guang
在 2013-08-26一的 19:23 -0300,Eduardo Habkost写道: This is an attempt to make the CPUID cache topology code clearer, by replacing the magic numbers in the code with #defines, and moving all the cache information to the same place in the file. I took care of comparing the assembly output of

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 3/5] qemu-char: use bool in qemu_chr_open_socket

2013-06-19 Thread li guang
在 2013-06-19三的 12:28 +0400,Michael Tokarev写道: 18.06.2013 07:45, liguang wrote: local variables is_* should be bool by usage, and last parameter of qemu_opt_get_bool is bool, so pass true/false for it. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- qemu-char.c | 20

Re: [Qemu-devel] [PATCH RFC v2 0/7] coordinate cpu hotplug/unplug bewteen QEMU and kernel by EC

2013-06-18 Thread li guang
在 2013-06-18二的 11:14 +0200,Igor Mammedov写道: On Tue, 18 Jun 2013 10:47:15 +0800 li guang lig.f...@cn.fujitsu.com wrote: Hi, Igor and Micheal 在 2013-06-06四的 16:33 +0800,li guang写道: 在 2013-06-06四的 11:13 +0300,Michael S. Tsirkin写道: On Thu, Jun 06, 2013 at 11:16:53AM +0800, liguang

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

2013-06-17 Thread li guang
Hi, Andreas 在 2013-06-16日的 18:35 +0200,Andreas Färber写道: Am 16.06.2013 10:27, schrieb Andreas Färber: 嗨, Wow! seems you do know Chinese. (are you a Chinese who is working in Deutschland? :-) ) Am 11.06.2013 04:39, schrieb li guang: 在 2013-06-09日的 21:12 +0200,Andreas Färber写道

Re: [Qemu-devel] [PATCH qom-cpu v3 1/6] cpu: Fix cpu_class_set_vmsd() documentation

2013-06-17 Thread li guang
在 2013-06-18二的 02:29 +0200,Andreas Färber写道: It's CPUClass::vmsd, not CPUState::vmsd. Signed-off-by: Andreas Färber afaer...@suse.de Reviewed-by: liguang lig.f...@cn.fujitsu.com --- include/qom/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qom/cpu.h

Re: [Qemu-devel] [Qemu-trivial] [PATCH 4/5] memory: use '=' instead of '|=' for memory_region_update_pending

2013-06-17 Thread li guang
在 2013-06-11二的 15:34 +0400,Michael Tokarev写道: 11.06.2013 09:15, liguang wrote: because memory_region_update_pending is bool Signed-off-by: liguang lig.f...@cn.fujitsu.com --- memory.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git

Re: [Qemu-devel] [Qemu-trivial] [PATCH 3/5] qemu-char: pass bool parameter for qemu_opt_get_bool

2013-06-17 Thread li guang
在 2013-06-11二的 15:35 +0400,Michael Tokarev写道: 11.06.2013 09:15, liguang wrote: Signed-off-by: liguang lig.f...@cn.fujitsu.com --- qemu-char.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index d04b429..8092eb8 100644

  1   2   3   4   >