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

2013-12-04 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |2 + hw/timer/allwinner-a10-pit.c | 253 ++ include/hw/timer/allwinner-a10-pit.h | 57 4 files changed, 314 insertions(+), 0

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

2013-12-08 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/allwinner-a10-pic.c | 217 +++ include/hw/intc/allwinner-a10-pic.h | 40 +++ 4 files changed, 259 insertions(+), 0

[Qemu-devel] [PATCH v10 0/5] add allwinner A10 SoC support

2013-12-08 Thread liguang
lay a foundation for allwinner A10 SoC with a cortex-a8 processor, and will add more devices later. v2: split timer and interrupt controller emulation into their corresponding files. v3: 1. change loader_start address 2. add 64-bit counter 3. fixup fail to clear interrup status

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

2013-12-08 Thread liguang
Signed-off-by: liguang --- include/migration/vmstate.h |4 savevm.c| 31 +++ 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 9d09e60..f5d6e81 100644 --- a

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

2013-12-08 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/arm/Makefile.objs|1 + hw/arm/allwinner-a10.c | 103 +++ include/hw/arm/allwinner-a10.h | 35 + 4 files changed, 140 insertions(+), 0 deletions

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

2013-12-08 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |2 + hw/timer/allwinner-a10-pit.c | 254 ++ include/hw/timer/allwinner-a10-pit.h | 59 4 files changed, 317 insertions(+), 0

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

2013-12-08 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |2 +- hw/arm/cubieboard.c | 69 ++ 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 hw/arm/cubieboard.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index

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

2013-12-11 Thread liguang
Signed-off-by: liguang Acked-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak |1 + hw/arm/Makefile.objs|1 + hw/arm/allwinner-a10.c | 103 +++ include/hw/arm/allwinner-a10.h | 35 + 4 files changed, 140

[Qemu-devel] [PATCH v11 0/5] add allwinner A10 SoC support

2013-12-11 Thread liguang
lay a foundation for allwinner A10 SoC with a cortex-a8 processor, and will add more devices later. v2: split timer and interrupt controller emulation into their corresponding files. v3: 1. change loader_start address 2. add 64-bit counter 3. fixup fail to clear interrup status

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

2013-12-11 Thread liguang
Signed-off-by: liguang --- include/migration/vmstate.h |4 savevm.c| 31 +++ 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 9d09e60..f5d6e81 100644 --- a

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

2013-12-11 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/allwinner-a10-pic.c | 200 +++ include/hw/intc/allwinner-a10-pic.h | 40 +++ 4 files changed, 242 insertions(+), 0

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

2013-12-11 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |2 + hw/timer/allwinner-a10-pit.c | 254 ++ include/hw/timer/allwinner-a10-pit.h | 59 4 files

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

2013-12-11 Thread liguang
Signed-off-by: liguang Acked-by: Peter Crosthwaite --- hw/arm/Makefile.objs |2 +- hw/arm/cubieboard.c | 69 ++ 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 hw/arm/cubieboard.c diff --git a/hw/arm/Makefile.objs b

[Qemu-devel] [PATCH v12 0/5] add allwinner A10 SoC support

2013-12-12 Thread liguang
lay a foundation for allwinner A10 SoC with a cortex-a8 processor, and will add more devices later. v2: split timer and interrupt controller emulation into their corresponding files. v3: 1. change loader_start address 2. add 64-bit counter 3. fixup fail to clear interrup status i

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

2013-12-12 Thread liguang
From: Peter Maydell 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 an array of ptimer_state* to be used by devices. Signed-off-by: Peter Maydell --- include/hw/ptimer.h |4 incl

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

2013-12-12 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite Reviewed-by: Peter Maydell --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/allwinner-a10-pic.c | 200 +++ include/hw/intc/allwinner-a10-pic.h

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

2013-12-12 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |2 + hw/timer/allwinner-a10-pit.c | 254 ++ include/hw/timer/allwinner-a10-pit.h | 59 4 files

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

2013-12-12 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak |1 + hw/arm/Makefile.objs|1 + hw/arm/allwinner-a10.c | 103 +++ include/hw/arm/allwinner-a10.h | 35 + 4 files changed

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

2013-12-12 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite --- hw/arm/Makefile.objs |2 +- hw/arm/cubieboard.c | 69 ++ 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 hw/arm/cubieboard.c diff --git a/hw/arm/Makefile.objs

[Qemu-devel] [PATCH v13 1/6] vmstate: Add support for an array of ptimer_state *

2013-12-15 Thread liguang
From: Peter Maydell 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 an array of ptimer_state* to be used by devices. Signed-off-by: Peter Maydell Signed-off-by: liguang --- include/hw/ptimer.h

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

2013-12-15 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite --- hw/arm/Makefile.objs |2 +- hw/arm/cubieboard.c | 69 ++ tests/qom-test.c |1 + 3 files changed, 71 insertions(+), 1 deletions(-) create mode 100644 hw/arm/cubieboard.c

[Qemu-devel] [PATCH v13 6/6] MAINTAINERS: add myself to maintain allwinner-a10

2013-12-15 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 3e61ac8..73bb943 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -219,6 +219,13 @@ F: *win32* ARM Machines +Allwinner-a10 +M: Li

[Qemu-devel] [PATCH v13 3/6] hw/intc: add allwinner A10 interrupt controller

2013-12-15 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite Reviewed-by: Peter Maydell --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/allwinner-a10-pic.c | 200 +++ include/hw/intc/allwinner-a10-pic.h

[Qemu-devel] [PATCH v13 4/6] hw/arm: add allwinner a10 SoC support

2013-12-15 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak |1 + hw/arm/Makefile.objs|1 + hw/arm/allwinner-a10.c | 103 +++ include/hw/arm/allwinner-a10.h | 35 + 4 files changed

[Qemu-devel] [PATCH v13 0/6] add allwinner A10 SoC support

2013-12-15 Thread liguang
state * liguang (5): hw/timer: add allwinner a10 timer hw/intc: add allwinner A10 interrupt controller hw/arm: add allwinner a10 SoC support hw/arm: add cubieboard support MAINTAINERS: add myself to maintain allwinner-a10 MAINTAINERS |7 + default-configs/arm-softmm

[Qemu-devel] [PATCH v13 2/6] hw/timer: add allwinner a10 timer

2013-12-15 Thread liguang
Signed-off-by: liguang Reviewed-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |2 + hw/timer/allwinner-a10-pit.c | 254 ++ include/hw/timer/allwinner-a10-pit.h | 58 4 files

[Qemu-devel] [PATCH 1/4] hw/arm: add new machine type sunxi

2013-11-19 Thread liguang
sunxi series are SOCs from Allwinner, including sunxi-4i/5i/6i/7i ... Signed-off-by: liguang --- hw/arm/Makefile.objs |2 +- hw/arm/sunxi-soc.c | 30 ++ 2 files changed, 31 insertions(+), 1 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw

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

2013-11-19 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7 processor, and will add more devices. reference: http://linux-sun

[Qemu-devel] [PATCH 2/4] hw/arm/sunxi-soc: add interrupt controller

2013-11-19 Thread liguang
Signed-off-by: liguang --- hw/arm/sunxi-soc.c | 290 1 files changed, 290 insertions(+), 0 deletions(-) diff --git a/hw/arm/sunxi-soc.c b/hw/arm/sunxi-soc.c index f6849eb..1b369ba 100644 --- a/hw/arm/sunxi-soc.c +++ b/hw/arm/sunxi-soc.c

[Qemu-devel] [PATCH 3/4] hw/arm/sunxi-soc: add sunxi timer

2013-11-19 Thread liguang
Signed-off-by: liguang --- hw/arm/sunxi-soc.c | 209 1 files changed, 209 insertions(+), 0 deletions(-) diff --git a/hw/arm/sunxi-soc.c b/hw/arm/sunxi-soc.c index 1b369ba..960539a 100644 --- a/hw/arm/sunxi-soc.c +++ b/hw/arm/sunxi-soc.c

[Qemu-devel] [PATCH 4/4] hw/arm/sunxi-soc: really initialize sunxi machine

2013-11-19 Thread liguang
Signed-off-by: liguang --- hw/arm/sunxi-soc.c | 72 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/hw/arm/sunxi-soc.c b/hw/arm/sunxi-soc.c index 960539a..0338e03 100644 --- a/hw/arm/sunxi-soc.c +++ b/hw/arm/sunxi-soc.c

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

2013-11-20 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 113 ++ 2 files changed, 114 insertions(+), 0 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index

[Qemu-devel] [PATCH V2 0/4] add sunxi machine type

2013-11-20 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. V2: split timer and interrupt controll

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

2013-11-20 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 218 +++ include/hw/timer/sunxi-pit.h| 25 + 4 files changed, 246 insertions(+), 0 deletions(-) create

[Qemu-devel] [PATCH V2 4/4] MAINTAINERS: add myself to maintain sunxi machine

2013-11-20 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77edacf..232e1a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,15 @@ M: Peter Maydell S: Maintained F: hw/*/stellaris* +Sunxi

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

2013-11-20 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 297 +++ include/hw/intc/sunxi-pic.h | 27 4 files changed, 326 insertions(+), 0 deletions(-) create

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

2013-11-25 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 113 ++ 2 files changed, 114 insertions(+), 0 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index

[Qemu-devel] [PATCH v3 4/4] MAINTAINERS: add myself to maintain sunxi machine

2013-11-25 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77edacf..232e1a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,15 @@ M: Peter Maydell S: Maintained F: hw/*/stellaris* +Sunxi

[Qemu-devel] [PATCH v3 0/4] add sunxi machine type

2013-11-25 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. v2: split timer and interrupt controll

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

2013-11-25 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 260 +++ include/hw/timer/sunxi-pit.h| 26 4 files changed, 289 insertions(+), 0 deletions(-) create

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

2013-11-25 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 301 +++ include/hw/intc/sunxi-pic.h | 27 4 files changed, 330 insertions(+), 0 deletions(-) create

[Qemu-devel] [PATCH v4 0/4] add sunxi machine type

2013-11-25 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. v2: split timer and interrupt controll

[Qemu-devel] [PATCH v4 4/4] MAINTAINERS: add myself to maintain sunxi machine

2013-11-25 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77edacf..232e1a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,15 @@ M: Peter Maydell S: Maintained F: hw/*/stellaris* +Sunxi

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

2013-11-25 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 98 ++ 2 files changed, 99 insertions(+), 0 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index

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

2013-11-25 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 295 +++ include/hw/timer/sunxi-pit.h| 37 + 4 files changed, 335 insertions(+), 0 deletions(-) create

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

2013-11-25 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 238 +++ include/hw/intc/sunxi-pic.h | 20 4 files changed, 260 insertions(+), 0 deletions(-) create

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

2013-11-26 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 276 +++ include/hw/timer/sunxi-pit.h| 37 + 4 files changed, 316 insertions(+), 0 deletions(-) create

[Qemu-devel] [PATCH v5 0/5] add sunxi machine type

2013-11-26 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. v2: split timer and interrupt controll

[Qemu-devel] [PATCH v5 5/5] MAINTAINERS: add myself to maintain sunxi machine

2013-11-26 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77edacf..232e1a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,15 @@ M: Peter Maydell S: Maintained F: hw/*/stellaris* +Sunxi

[Qemu-devel] [PATCH v5 4/5] hw/arm: add sunxi machine type

2013-11-26 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 98 ++ 2 files changed, 99 insertions(+), 0 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index

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

2013-11-26 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 247 +++ include/hw/intc/sunxi-pic.h | 20 +++ 4 files changed, 269 insertions(+), 0 deletions(-) create

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

2013-11-26 Thread liguang
Signed-off-by: liguang --- include/hw/ptimer.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/hw/ptimer.h b/include/hw/ptimer.h index 28fcaf1..a9b8f1d 100644 --- a/include/hw/ptimer.h +++ b/include/hw/ptimer.h @@ -27,6 +27,9 @@ void ptimer_stop(ptimer_state *s

[Qemu-devel] [PATCH] hw/intc/sunxi-pic: fix irq status setting

2013-11-26 Thread liguang
Signed-off-by: liguang --- hw/intc/sunxi-pic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/intc/sunxi-pic.c b/hw/intc/sunxi-pic.c index 5fd86f9..ea75f84 100644 --- a/hw/intc/sunxi-pic.c +++ b/hw/intc/sunxi-pic.c @@ -77,7 +77,7 @@ static void sunxi_pic_set_irq

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

2013-11-26 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 247 +++ include/hw/intc/sunxi-pic.h | 20 +++ 4 files changed, 269 insertions(+), 0 deletions(-) create

[Qemu-devel] [PATCH v6 4/5] hw/arm: add sunxi machine type

2013-11-27 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 98 ++ 2 files changed, 99 insertions(+), 0 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index

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

2013-11-27 Thread liguang
Signed-off-by: liguang --- include/hw/ptimer.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/hw/ptimer.h b/include/hw/ptimer.h index 28fcaf1..a9b8f1d 100644 --- a/include/hw/ptimer.h +++ b/include/hw/ptimer.h @@ -27,6 +27,9 @@ void ptimer_stop(ptimer_state *s

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

2013-11-27 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 252 +++ include/hw/timer/sunxi-pit.h| 56 + 4 files changed, 311 insertions(+), 0 deletions

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

2013-11-27 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. v2: split timer and interrupt controll

[Qemu-devel] [PATCH v6 3/5] hw/intc: add sunxi interrupt controller device

2013-11-27 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 218 +++ include/hw/intc/sunxi-pic.h | 40 +++ 4 files changed, 260 insertions(+), 0 deletions

[Qemu-devel] [PATCH v6 5/5] MAINTAINERS: add myself to maintain sunxi machine

2013-11-27 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77edacf..232e1a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,15 @@ M: Peter Maydell S: Maintained F: hw/*/stellaris* +Sunxi

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

2013-11-27 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 254 +++ include/hw/timer/sunxi-pit.h| 56 + 4 files changed, 313 insertions(+), 0 deletions

[Qemu-devel] [PATCH] correct error message qemu-img reported

2012-11-01 Thread liguang
qemu-img will complain when qcow or qcow2 size overflow for 64 bits, report the right message in this condition. Signed-off-by: liguang --- qemu-img.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index f17f187..a332467 100644 --- a/qemu

[Qemu-devel] [PATCH] correct error message qemu-img reported

2012-11-01 Thread liguang
qemu-img will complain when qcow or qcow2 size overflow for 64 bits, report the right message in this condition. Signed-off-by: liguang --- qemu-img.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index f17f187..2a45427 100644

[Qemu-devel] [PATCH] correct error message qemu-img reported

2012-11-01 Thread liguang
qemu-img will complain when qcow or qcow2 size overflow for 64 bits, report the right message in this condition. Signed-off-by: liguang --- qemu-img.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index f17f187..2a45427 100644

[Qemu-devel] [PATCH v2] correct error message qemu-img reported

2012-11-01 Thread liguang
qemu-img will complain when qcow or qcow2 size overflow for 64 bits, report the right message in this condition. Signed-off-by: liguang --- qemu-img.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index f17f187..a81f45b

[Qemu-devel] [PATCH v3] correct error message qemu-img reported

2012-11-01 Thread liguang
qemu-img will complain when qcow or qcow2 size overflow for 64 bits, report the right message in this condition. Signed-off-by: liguang --- qemu-img.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index b41e670..d4ea800 100644 --- a

[Qemu-devel] [PATCH v4] correct error message qemu-img reported

2012-11-04 Thread liguang
qemu-img will complain when qcow or qcow2 size overflow for 64 bits, report the right message in this condition. Signed-off-by: liguang --- qemu-img.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index b41e670..d9434ad 100644 --- a/qemu

[Qemu-devel] [PATCH]target-i386:cpu_x86_init():do clean up work

2012-11-27 Thread liguang
1.remove unused variable env 2.remove redundant error handling Signed-off-by: liguang --- target-i386/helper.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index bf206cf..5686130 100644 --- a/target-i386

[Qemu-devel] [PATCH 1/3] define name for some fields of dr7

2012-11-28 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 90ef1ff..7f292e6 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -558,6 +558,19 @@ #define CPU_INTERRUPT_TPR

[Qemu-devel] [PATCH 3/3] target-i386:refactor check_hw_breakpoints function

2012-11-28 Thread liguang
Signed-off-by: liguang --- target-i386/helper.c | 28 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 9ca52a7..a506df0 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1012,22

[Qemu-devel] [PATCH 2/3] use dr7's bit name for breakpoint

2012-11-28 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h |2 ++ target-i386/helper.c | 24 +++- target-i386/misc_helper.c |6 +++--- target-i386/seg_helper.c |6 +++--- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/target-i386/cpu.h b/target

[Qemu-devel] [PATCH] target-i386:slightly refactor dr7 related function

2012-12-02 Thread liguang
1. define names of breakpoints in dr7 2. slightly refactor bits field of breakpoint related functions. Signed-off-by: liguang --- target-i386/cpu.h |6 target-i386/helper.c | 59 target-i386/machine.c |2 +- target

[Qemu-devel] [PATCH 2/3] target-i386:make hw_breakpoint_enabled return bool type

2012-12-04 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 9abec3e..8ca25c8 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -996,9 +996,9 @@ int cpu_x86_handle_mmu_fault

[Qemu-devel] [PATCH 1/3] target-i386:define name of breakpoint bit in dr7

2012-12-04 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 90ef1ff..9abec3e 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -231,6 +231,13 @@ #define DR7_TYPE_SHIFT 16

[Qemu-devel] [libvirt][PATCH v2 0/2] add pci-bridge support

2013-01-07 Thread liguang
Now, it's impossible to arrange devices into multi-pci-bus, for example: libvirt will complain about "bus != 0", fortunately, qemu supports pci-to-pci bridge, if we want to use multi-pci-bus, we can define 2 pci bridge controllers, then attach 1 to the other as

[Qemu-devel] [libvirt][PATCH v2 2/2] build command line for pci-bridge device of qemu

2013-01-07 Thread liguang
Signed-off-by: liguang --- src/qemu/qemu_command.c | 25 - 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 04a9512..0da32e0 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c

[Qemu-devel] [libvirt][PATCH v2 1/2] add pci-bridge controller type

2013-01-07 Thread liguang
Signed-off-by: liguang --- src/conf/device_conf.c | 12 +++- src/conf/device_conf.h |1 + src/conf/domain_conf.c |5 - src/conf/domain_conf.h |1 + 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/conf/device_conf.c b/src/conf/device_conf.c index

[Qemu-devel] [PATCH] target-i386: clarify logic of breakpoint functions

2013-01-14 Thread liguang
tches. Signed-off-by: liguang --- target-i386/cpu.h | 19 ++- target-i386/helper.c | 76 ++--- target-i386/machine.c |5 ++- target-i386/misc_helper.c |4 +- target-i386/seg_helper.c |9 +++-- 5 files changed, 79 inser

[Qemu-devel] [PATCH v5 0/2] target-i386: define dr7 bit filed and change dr7 related functions

2013-01-14 Thread liguang
the breakpoint related functions are a little hard to read for their implicit dr7 bit filed and not well organized logic, so try to define more readable bit filed for dr7 and clarify the breakpoint logic. changes v4->v5 - fix some not well formated changes. - split functional and non-functional c

[Qemu-devel] [PATCH v5 1/2] target-i386: define dr7 bit field

2013-01-14 Thread liguang
implictly use of dr7 bit field is a little hard to understand, so try to define them and use the defined name. Signed-off-by: liguang --- target-i386/cpu.h |6 ++ target-i386/machine.c |5 +++-- target-i386/misc_helper.c |4 ++-- target-i386/seg_helper.c |9

[Qemu-devel] [PATCH v5 2/2] target-i386: change some dr7 related functions

2013-01-14 Thread liguang
logic of some original dr7 related functions are not so readable, so try to clearify them. Signed-off-by: liguang --- target-i386/cpu.h| 13 - target-i386/helper.c | 76 + 2 files changed, 63 insertions(+), 26 deletions(-) diff

[Qemu-devel] [PATCH] gitignore: ignore more files

2013-03-22 Thread liguang
ignore *.patch, *.gcda, *.gcno Signed-off-by: liguang --- .gitignore |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 27ad002..9c234a3 100644 --- a/.gitignore +++ b/.gitignore @@ -80,6 +80,9 @@ fsdev/virtfs-proxy-helper.pod *.swp *.orig

[Qemu-devel] [PATCH] qdev: remove redundant abort()

2013-03-22 Thread liguang
Reviewed-by: Andreas Färber Signed-off-by: liguang --- hw/qdev.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 689cd54..2bed9d8 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -116,11 +116,10 @@ DeviceState *qdev_create(BusState *bus, const

[Qemu-devel] [PATCH] hw/i386/pc: fix possible segment fault for port92_write

2013-03-22 Thread liguang
e.g. $qemu-system-x86_64 -device port92 will report segment fault, for port92_write try a un-allocated assignment for a20_out. so check before this assignment. Signed-off-by: liguang --- hw/i386/pc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/i386/pc.c b/hw

[Qemu-devel] [PATCH] hw/i386/pc: format load_linux function

2013-03-26 Thread liguang
Signed-off-by: liguang --- hw/i386/pc.c | 109 ++ 1 files changed, 56 insertions(+), 53 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index ed7d9ba..b1e06fa 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -646,8 +646,8 @@ static

[Qemu-devel] [PATCH] hw/i386/pc: reject to boot a wrong header magic kernel

2013-03-26 Thread liguang
am disk" that's misleading. Signed-off-by: liguang --- hw/i386/pc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index b1e06fa..2b78dfc 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -683,8 +683,10 @@ static void load_linux(

[Qemu-devel] [PATCH v2 1/2] hw/i386/pc: fix possible segment fault for port92_write

2013-03-28 Thread liguang
e.g. $qemu-system-x86_64 -device port92 will report segment fault, for port92_write try a un-allocated assignment for a20_out. so check before this assignment. Signed-off-by: liguang --- hw/i386/pc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/i386/pc.c b/hw

[Qemu-devel] [PATCH v2 2/2] hw/i386/pc: check a20_out in port92_realizefn

2013-03-28 Thread liguang
as suggested by Andreas Signed-off-by: liguang --- hw/i386/pc.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index b881314..b0454eb 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -503,6 +503,11 @@ static void port92_realizefn

[Qemu-devel] [PATCH v2] hw/i386/pc: reject to boot a wrong header magic kernel

2013-03-31 Thread liguang
am disk" that's misleading. Signed-off-by: liguang --- hw/i386/pc.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index b1e06fa..bfbb5fe 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -683,6 +683,9 @@ static void load_linux(

[Qemu-devel] [PATCH][RFC v2 5/7] qdev: add power_signal_in for DeviceState

2013-04-04 Thread liguang
so, devices can connect power signal with power chip Signed-off-by: liguang --- hw/qdev-core.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/qdev-core.h b/hw/qdev-core.h index 547fbc7..abbb570 100644 --- a/hw/qdev-core.h +++ b/hw/qdev-core.h @@ -121,6 +121,7

[Qemu-devel] [PATCH][RFC v2 1/7] hw/irq: move struct IRQState to irq.h

2013-04-04 Thread liguang
define struct IRQState in irq.c bring in a annoying result, if you want dereference of IRQState's member like opaque outside of irq.c, compiler will complain: "error: dereferencing pointer to incomplete type" Signed-off-by: liguang --- hw/irq.c |6 -- hw/irq.h |6

[Qemu-devel] [PATCH][RFC v2 4/7] sysemu: remove PowerReason in sysemu.h

2013-04-04 Thread liguang
Signed-off-by: liguang --- include/sysemu/sysemu.h |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 6578782..83796b3 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -9,6 +9,7 @@ #include

[Qemu-devel] [PATCH][RFC v2 7/7] vl: run power_management

2013-04-04 Thread liguang
run power_management temporarily, later, if this approach is accepted, will try to replace main_loop_should_exit() Signed-off-by: liguang --- vl.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index a14549e..731158a 100644 --- a/vl.c +++ b/vl.c @@ -2041,6

[Qemu-devel] [PATCH][RFC v2 0/7] implement power chip

2013-04-04 Thread liguang
By now, all devices of QEMU do not have much more power management consideration, for example, if system do suspend, it will call all registered notifiers, this was loosely required, and the code to do power management state transition seems just do 'ugly emulation', rather than be conscious with w

[Qemu-devel] [PATCH][RFC v2 6/7] ich9: refactor wakeup/reset function

2013-04-04 Thread liguang
realize wakeup function for ICH9-LPC device Signed-off-by: liguang --- hw/acpi.c | 20 +--- hw/acpi.h |3 ++- hw/acpi_ich9.c |2 +- hw/ich9.h |2 ++ hw/lpc_ich9.c | 31 ++- 5 files changed, 44 insertions(+), 14

[Qemu-devel] [PATCH][RFC v2 3/7] vl: create power chip device

2013-04-04 Thread liguang
Signed-off-by: liguang --- vl.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index aeed7f4..a14549e 100644 --- a/vl.c +++ b/vl.c @@ -171,6 +171,8 @@ int main(int argc, char **argv) #include "ui/qemu-spice.h" #include "qapi/string-

[Qemu-devel] [PATCH][RFC v2 2/7] hw/power: add main power chip implementation

2013-04-04 Thread liguang
. Signed-off-by: liguang --- hw/Makefile.objs |1 + hw/power.c | 178 ++ hw/power.h | 50 +++ 3 files changed, 229 insertions(+), 0 deletions(-) create mode 100644 hw/power.c create mode 100644 hw/power.h diff

[Qemu-devel] [PATCH v3] hw/i386/pc: prompt not multboot or morden kernel image

2013-04-08 Thread liguang
load a ram disk" that's misleading. Signed-off-by: liguang --- hw/i386/pc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index ebbf059..6b29c3f 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -686,6 +686,8 @@ static void load_linux(

[Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-08 Thread liguang
Signed-off-by: liguang --- target-arm/translate.c | 17 - target-i386/translate.c | 17 - target-mips/translate.c | 16 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index

[Qemu-devel] [PATCH 0/3] debugcon: fix some issues of debugcon debug

2013-05-26 Thread liguang
when enable DEBUG_DEBUGCON, there are some message printing issues, so fix them. Li Guang (3) debugcon: fix debug format specifiers debugcon: beautify debugcon debug output debugcon: add DPRINTF for debugcon debug hw/char/debugcon.c | 22 +++-- 1 files changed, 16 insert

<    1   2   3   4   >