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

2012-12-04 Thread liguang
Signed-off-by: liguang --- target-i386/helper.c | 70 + target-i386/machine.c |2 +- target-i386/misc_helper.c |4 +- target-i386/seg_helper.c |6 ++-- 4 files changed, 51 insertions(+), 31 deletions(-) diff --git a/target-i386

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

2012-12-05 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..29245d1 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -231,6 +231,13 @@ #define DR7_TYPE_SHIFT 16

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

2012-12-05 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 29245d1..3646128 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -996,9 +996,20 @@ int

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

2012-12-05 Thread liguang
Signed-off-by: liguang --- target-i386/helper.c | 74 +--- target-i386/machine.c |5 ++- target-i386/misc_helper.c |4 +- target-i386/seg_helper.c |6 ++-- 4 files changed, 57 insertions(+), 32 deletions(-) diff --git a/target-i386

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

2012-12-06 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..29245d1 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -231,6 +231,13 @@ #define DR7_TYPE_SHIFT 16

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

2012-12-06 Thread liguang
Signed-off-by: liguang --- target-i386/helper.c | 74 +--- target-i386/machine.c |5 ++- target-i386/misc_helper.c |4 +- target-i386/seg_helper.c |6 ++-- 4 files changed, 57 insertions(+), 32 deletions(-) diff --git a/target-i386

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

2012-12-06 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 29245d1..3646128 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -996,9 +996,20 @@ int

[Qemu-devel] [ [PATCH 1/2] cutils:change strtosz_suffix_unit function

2012-12-06 Thread liguang
if value to be translated is larger than INT64_MAX, this function will not be convenient for caller to be aware of it, so change a little for this. Signed-off-by: liguang --- cutils.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cutils.c b/cutils.c index 4f0692f

[Qemu-devel] [ [PATCH 2/2] qemu-img:report size overflow error message

2012-12-06 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 |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index e29e01b..f3209b4 100644 --- a/qemu

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

2012-12-09 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..29245d1 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -231,6 +231,13 @@ #define DR7_TYPE_SHIFT 16

[Qemu-devel] [PATCH v4 2/3] target-i386:define hw_{global, local}breakpoint_enabled function

2012-12-09 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 29245d1..c69f81f 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -996,9 +996,20 @@ int

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

2012-12-09 Thread liguang
Signed-off-by: liguang --- target-i386/helper.c | 74 +--- target-i386/machine.c |5 ++- target-i386/misc_helper.c |4 +- target-i386/seg_helper.c |7 ++-- 4 files changed, 58 insertions(+), 32 deletions(-) diff --git a/target-i386

[Qemu-devel] [PATCH 2/2] qemu-img:report size overflow error message

2012-12-13 Thread liguang
size must be less than 8 exabytes! 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 e29e01b..1c3af67 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -346,13 +346,18 @@ static int img_create(int argc, char

[Qemu-devel] [PATCH 1/2] cutils:change strtosz_suffix_unit function

2012-12-13 Thread liguang
if value to be translated is larger than INT64_MAX, this function will not be convenient for caller to be aware of it, so change a little for this. Signed-off-by: liguang --- cutils.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cutils.c b/cutils.c index 4f0692f

[Qemu-devel] [PATCH v3 2/2] qemu-img:report size overflow error message

2012-12-16 Thread liguang
, gigabytes and terabytes. after change: qemu-img: Image size must be less than 8 EiB! Signed-off-by: liguang --- qemu-img.c | 16 +++- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index e29e01b..203e3cb 100644 --- a/qemu-img.c +++ b/qemu

[Qemu-devel] [PATCH v3 1/2] cutils:change strtosz_suffix_unit function

2012-12-16 Thread liguang
if value to be translated is larger than INT64_MAX, this function will not be convenient for caller to be aware of it, so change a little for this. Signed-off-by: liguang --- cutils.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cutils.c b/cutils.c index 4f0692f

[Qemu-devel] [PATCH 3/3] accel: change {xen, kvm, tcg, qtest}_allowed from int to bool

2013-01-23 Thread liguang
Signed-off-by: liguang --- hw/xen.h |4 ++-- include/sysemu/kvm.h |2 +- include/sysemu/qtest.h |2 +- qtest.c|2 +- vl.c | 12 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/xen.h b/hw/xen.h

[Qemu-devel] [PATCH 1/3] vl: skip init accelerator if it's not available

2013-01-23 Thread liguang
Signed-off-by: liguang --- vl.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/vl.c b/vl.c index 4ee1302..25aa8e8 100644 --- a/vl.c +++ b/vl.c @@ -2540,18 +2540,18 @@ static int configure_accelerator(void) p = get_opt_name(buf, sizeof (buf), p

[Qemu-devel] [PATCH 2/3] vl: correct error message when fail to init kvm

2013-01-23 Thread liguang
!" is confusing, this commit remove the confusing error message. Signed-off-by: liguang --- vl.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/vl.c b/vl.c index 25aa8e8..5374c14 100644 --- a/vl.c +++ b/vl.c @@ -2520,8 +2520,8 @@ static int configure_accele

[Qemu-devel] [PATCH 0/3] accel:some cleanup work for vm accelerator

2013-01-23 Thread liguang
do some cleanup work fo vm accelerator patch 1/3: skip init accelerator if it's not available patch 2/3: correct error message when fail to init kvm patch 3/3: change {xen,kvm,tcg,qtest}_allowed from int to bool hw/xen.h |4 +- include/sysemu/kvm.h |2 +- include/sysemu/q

[Qemu-devel] [PATCH] Makefile: remove *.lo files when make clean

2013-01-24 Thread liguang
Signed-off-by: liguang --- Makefile |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 73adf42..5d64b58 100644 --- a/Makefile +++ b/Makefile @@ -215,7 +215,8 @@ clean: rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h

[Qemu-devel] [PATCH 0/6] change acpi numa info format passed from qemu to seabios

2013-02-03 Thread liguang
orginally, numa info was packed into an array of 64-bit data which was implicit and hard to maintain, so we define a struct for these info, hope to be as clear as enough. these changes also involved seabios paches which was sent to seabios mail-list. Li Guang(6) [PATCH 1/6] pc/bios: move

[Qemu-devel] [PATCH 4/6] pc: format load_linux()

2013-02-03 Thread liguang
seems this function was in wrong coding format so try correct it boldly. Signed-off-by: liguang --- hw/pc.c | 90 +++--- 1 files changed, 45 insertions(+), 45 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 893c930..01d00f6 100644

[Qemu-devel] [PATCH 6/6] load_linux: change kernel header size allocation

2013-02-03 Thread liguang
it's not necessary to alloc 8K bytes for kernel header, 0.5K is enough. Signed-off-by: liguang --- hw/pc.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 0ccd775..b6b236f 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -637,6 +637,9 @@ s

[Qemu-devel] [PATCH 5/6] load_linux: report open kernel file & its size error

2013-02-03 Thread liguang
Signed-off-by: liguang --- hw/pc.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 01d00f6..0ccd775 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -652,12 +652,20 @@ static void load_linux(void *fw_cfg, char *vmode; /* Align to 16

[Qemu-devel] [seabios][PATCH 2/2] acpi: change numa data format from fw_cfg interface

2013-02-03 Thread liguang
the old numa format got form fw_cfg is: number of nodes node id of cpu (array) node memory size (array) now, format it like array of: apci_map, memory_size, it has the advantage of simple and clear. Signed-off-by: liguang --- src/acpi.c | 57

[Qemu-devel] [PATCH 2/6] pc/numa: refactor bios_init function

2013-02-03 Thread liguang
orginally, numa data was packed into an array, which was implicit and hard to maintain, we define a struct for this data, hope to be as clear as enough. also, we only pass cpumask of corresponding nodes to seabios, and leave the paring work for it. Signed-off-by: liguang --- hw/pc.c | 40

[Qemu-devel] [PATCH 3/6] bitops: change BITS_TO_LONGS

2013-02-03 Thread liguang
Signed-off-by: liguang --- include/qemu/bitops.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index 74e14e5..7758792 100644 --- a/include/qemu/bitops.h +++ b/include/qemu/bitops.h @@ -20,7 +20,7 @@ #define BIT(nr

[Qemu-devel] [seabios][PATCH 1/2] move all acpi-table related definitions to acpi.h

2013-02-03 Thread liguang
Signed-off-by: liguang --- src/acpi.c | 209 ++-- src/acpi.h | 201 + 2 files changed, 206 insertions(+), 204 deletions(-) diff --git a/src/acpi.c b/src/acpi.c index 6267d7b

[Qemu-devel] [PATCH 1/6] pc/bios: move common BIOS_CFG_IOPORT into fw_cfg.h

2013-02-03 Thread liguang
BIOS_CFG_IOPORT are commonly used, so move it to fw_cfg.h bochs_bios_init seems misleading, bios may be seabios, seabios is not only for bochs, and also we are in qemu. Signed-off-by: liguang --- hw/fw_cfg.h |4 hw/pc.c |9 - hw/sun4u.c |3 +-- 3 files changed, 9

[Qemu-devel] [PATCH] machine: correct macro name for default boot_order

2013-02-19 Thread liguang
DEFAULT_MACHINE_OPTIONS is setting default boot_order, while QEMUMachine already has default_machine_opts to encapsulate some default options, so change it to DEFAULT_MACHINE_BOOT_ORDER. Signed-off-by: liguang --- hw/alpha_dp264.c |2 +- hw/an5206.c |2

[Qemu-devel] [PATCH v2 6/6] load_linux: change kernel header size allocation

2013-02-21 Thread liguang
it's not necessary to alloc 8K bytes for kernel header, 0.5K is enough. Signed-off-by: liguang --- hw/pc.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 30b3262..4f78d4f 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -637,6 +637,9 @@ s

[Qemu-devel] [PATCH v2 0/6] change acpi numa info format passed from qemu to seabios

2013-02-21 Thread liguang
orginally, numa info was packed into an array of 64-bit data which was implicit and hard to maintain, so we define a struct for these info, hope to be as clear as enough. these changes also involved seabios paches which was sent to seabios mail-list. v2: changes to fix coding style

[Qemu-devel] [PATCH v2 5/6] load_linux: report open kernel file & its size error

2013-02-21 Thread liguang
Signed-off-by: liguang --- hw/pc.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index fd3a68c..30b3262 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -652,12 +652,22 @@ static void load_linux(void *fw_cfg, char *vmode; /* Align to

[Qemu-devel] [PATCH v2 1/6] pc/bios: move common BIOS_CFG_IOPORT into fw_cfg.h

2013-02-21 Thread liguang
BIOS_CFG_IOPORT are commonly used, so move it to fw_cfg.h bochs_bios_init seems misleading, bios may be seabios, seabios is not only for bochs, and also we are in qemu. Signed-off-by: liguang --- hw/fw_cfg.h |4 hw/pc.c |9 - hw/sun4u.c |3 +-- 3 files changed, 9

[Qemu-devel] [PATCH v2 4/6] pc: format load_linux()

2013-02-21 Thread liguang
seems this function was in wrong coding format so try correct it boldly. Signed-off-by: liguang --- hw/pc.c | 90 +++--- 1 files changed, 45 insertions(+), 45 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index f227c12..fd3a68c 100644

[Qemu-devel] [PATCH v2 2/6] pc/numa: refactor bios_init function

2013-02-21 Thread liguang
orginally, numa data was packed into an array, which was implicit and hard to maintain, we define a struct for this data, hope to be as clear as enough. also, we only pass cpumask of corresponding nodes to seabios, and leave the paring work for it. Signed-off-by: liguang --- hw/pc.c | 40

[Qemu-devel] [PATCH v2 3/6] bitops: change BITS_TO_LONGS

2013-02-21 Thread liguang
Signed-off-by: liguang --- include/qemu/bitops.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index 74e14e5..7758792 100644 --- a/include/qemu/bitops.h +++ b/include/qemu/bitops.h @@ -20,7 +20,7 @@ #define BIT(nr

[Qemu-devel] [PATCH 2/3] target-i386: convert decimal number to hexadecimal

2013-02-26 Thread liguang
convert cpu mode definitions family and model number which were in decimal into hexadecimal, because they were both composed by code(4-bit) and extend code(4-bit), so, in hexadecimal, we can view the 2 fields easily. Signed-off-by: liguang --- target-i386/cpu.c | 28

[Qemu-devel] [PATCH 3/3] target-i386: optimise [sg]et_cpu_mode_id

2013-02-26 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index b92ee73..862f2dd 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1198,13 +1198,13 @@ static char

[Qemu-devel] [PATCH 1/3] target-i386: group cpu model definitions by vendor

2013-02-26 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.c | 296 ++-- 1 files changed, 148 insertions(+), 148 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index aab35c7..ce76055 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c

[Qemu-devel] [PATCH] ui/gtk: fix gtk KEY definition incompatiable

2013-02-26 Thread liguang
: ‘GDK_KEY_minus’ undeclared (first use in this function) ui/gtk.c:1099: error: ‘GDK_KEY_0’ undeclared (first use in this function) ui/gtk.c:1114: error: ‘GDK_KEY_g’ undeclared (first use in this function) ui/gtk.c:1124: error: ‘GDK_KEY_1’ undeclared (first use in this function) Signed-off-by: liguang

[Qemu-devel] [PATCH][RFC] vl: move unrelated functions out of vl.c

2013-02-27 Thread liguang
() ...) ... they can all be moved out of vl.c by function, this patch is only a RFC patch, hope one can help to decide if I can continue to do clean up work. Signed-off-by: liguang --- Makefile.objs |2 + bt-opts.c | 200 bt-opts.h

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

2013-03-13 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 03/14] qdev: remove redundant abort()

2013-03-13 Thread liguang
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 char *name) if (bus

[Qemu-devel] [PATCH][RFC 04/14] qdev: add power on/off/suspend/wakeup handler

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/qdev-core.h |9 + hw/qdev.c | 96 2 files changed, 105 insertions(+), 0 deletions(-) diff --git a/hw/qdev-core.h b/hw/qdev-core.h index e69c50b..805ac69 100644 --- a/hw/qdev-core.h +++ b/hw

[Qemu-devel] [PATCH][RFC 04/14] qdev: add power on/off/suspend/wakeup handler

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/qdev-core.h |9 + hw/qdev.c | 96 2 files changed, 105 insertions(+), 0 deletions(-) diff --git a/hw/qdev-core.h b/hw/qdev-core.h index e69c50b..805ac69 100644 --- a/hw/qdev-core.h +++ b/hw

[Qemu-devel] [PATCH][RFC 02/14] qdev: add power management method

2013-03-13 Thread liguang
In fact, every devices have to be aware of it's power management, so it can decide what to do when platform board switch it's power state between on/off/suspend/wakeup. Signed-off-by: liguang --- hw/qdev-core.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH][RFC 10/14] piix4: refactor piix4's power callbacks

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/piix4.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hw/piix4.c b/hw/piix4.c index c1cb94d..1066149 100644 --- a/hw/piix4.c +++ b/hw/piix4.c @@ -34,7 +34,7 @@ typedef struct PIIX4State { PCIDevice dev; } PIIX4State

[Qemu-devel] [PATCH][RFC 07/14] acpi: refactor acpi wakeup function

2013-03-13 Thread liguang
realize wakeup function for ICH9-LPC device Signed-off-by: liguang --- hw/acpi.c | 20 +--- hw/acpi.h |3 ++- hw/lpc_ich9.c | 11 ++- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index 8c9dcc5..c0e07d4 100644

[Qemu-devel] [PATCH][RFC 01/14] gitignore: ignore more files

2013-03-13 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][RFC 06/14] sysemu: remove PowerReason in sysemu.h

2013-03-13 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 b19ec95..bf830da 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -9,6 +9,7 @@ #include

[Qemu-devel] [PATCH][RFC 12/14] ps2: call ps2_{kbd, mouse}_reset in kbd_reset

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/pckbd.c |3 +++ hw/ps2.c |8 hw/ps2.h |2 ++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/pckbd.c b/hw/pckbd.c index 1ab8ada..f2570d8 100644 --- a/hw/pckbd.c +++ b/hw/pckbd.c @@ -374,6 +374,9 @@ static void kbd_reset

[Qemu-devel] [PATCH][RFC 09/14] ich9: do lpc's power on by reset function

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/lpc_ich9.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/lpc_ich9.c b/hw/lpc_ich9.c index 42f2dfa..9be6196 100644 --- a/hw/lpc_ich9.c +++ b/hw/lpc_ich9.c @@ -614,6 +614,7 @@ static void ich9_lpc_class_init(ObjectClass *klass, void

[Qemu-devel] [PATCH][RFC 08/14] ich9: make lpc's reset also do pm_reset

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/acpi_ich9.c |4 ++-- hw/ich9.h |1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index d2f9808..b78a32e 100644 --- a/hw/acpi_ich9.c +++ b/hw/acpi_ich9.c @@ -176,7 +176,7 @@ const VMStateDescription

[Qemu-devel] [PATCH][RFC 14/14] uhci: refactor uhci's power callbacks

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/usb/hcd-uhci.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index f8c4286..008f567 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -414,6 +414,14 @@ static void uhci_reset(void

[Qemu-devel] [PATCH][RFC 11/14] pckbd: refactor pckbd's power callbacks

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/pckbd.c | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/hw/pckbd.c b/hw/pckbd.c index 3bad09b..1ab8ada 100644 --- a/hw/pckbd.c +++ b/hw/pckbd.c @@ -142,6 +142,12 @@ typedef struct KBDState { hwaddr mask

[Qemu-devel] [PATCH][RFC 13/14] parallel: refactor parallel_reset function

2013-03-13 Thread liguang
Signed-off-by: liguang --- hw/parallel.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/parallel.c b/hw/parallel.c index 3a4e06b..7dc53eb 100644 --- a/hw/parallel.c +++ b/hw/parallel.c @@ -427,9 +427,11 @@ static uint32_t parallel_ioport_ecp_read(void

[Qemu-devel] [PATCH][RFC 05/14] power: add power chip emulation

2013-03-18 Thread liguang
this power chip manage on/off/wakeup/suspend power state transition, when state changed, it will trigger all callbacks embedded in all device object. This just like power action in real world. Signed-off-by: liguang --- Makefile.objs |1 + power.c | 133

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

2013-09-03 Thread liguang
Signed-off-by: liguang --- exec.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index 3ca9381..4509daa 100644 --- a/exec.c +++ b/exec.c @@ -1824,7 +1824,9 @@ static void memory_map_init(void) address_space_init(&address_space_io, system_io,

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

2013-09-03 Thread liguang
Signed-off-by: liguang --- cputlb.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/cputlb.c b/cputlb.c index 977c0ca..08e50e0 100644 --- a/cputlb.c +++ b/cputlb.c @@ -169,21 +169,6 @@ static inline ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr

[Qemu-devel] [PATCH] gitignore: ignore files generated by GNU GLOBAL

2013-09-03 Thread liguang
Signed-off-by: liguang --- .gitignore |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index d2c5c2f..97d7a2f 100644 --- a/.gitignore +++ b/.gitignore @@ -108,4 +108,7 @@ pc-bios/s390-ccw/s390-ccw.img cscope.* tags TAGS +GTAGS +GRTAGS +GPATH

[Qemu-devel] [PATCH v2] exec: do tcg_commit only when tcg_enabled

2013-09-03 Thread liguang
Signed-off-by: liguang --- exec.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index 3ca9381..2170295 100644 --- a/exec.c +++ b/exec.c @@ -1824,7 +1824,9 @@ static void memory_map_init(void) address_space_init(&address_space_io, system_io,

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

2013-04-09 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 1/2] target-i386: remove cpu reset callback

2013-04-10 Thread liguang
we should remove it now, if not, cpu reset will do 2 times. Signed-off-by: liguang --- target-i386/cpu.c |9 - 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 356378c..6e13053 100644 --- a/target-i386/cpu.c +++ b/target-i386

[Qemu-devel] [PATCH 2/2] target-i386: fix 2 malformed indents

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 6e13053..9806a60 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2108,7 +2108,7 @@ static void x86_cpu_realizefn

[Qemu-devel] [PATCH 01/16] target-i386/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-i386/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 7596a90..74385c8 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -8338,9 +8338,9

[Qemu-devel] [PATCH 05/16] target-alpha/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-alpha/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 4db16db..4b4320a 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3425,9 +3425,9

[Qemu-devel] [PATCH 08/16] target-microblaze/translate: mininally change gen_intermediate_code_interna

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-microblaze/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 06d2346..402667d 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze

[Qemu-devel] [PATCH 03/16] target-arm/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-arm/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 35a21be..cede1b8 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -9889,9 +9889,9 @@ static

[Qemu-devel] [PATCH 06/16] target-cris/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-cris/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-cris/translate.c b/target-cris/translate.c index dbcb811..a1016be 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3258,9 +3258,8

[Qemu-devel] [PATCH 11/16] target-ppc/translate: mininally change gen_intermediate_code_internal Signed-off-by: liguang

2013-04-10 Thread liguang
--- target-ppc/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 5e741d1..cbdcb84 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -9565,9 +9565,9 @@ static inline void gen_intermediat

[Qemu-devel] [PATCH 04/16] target-mips/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-mips/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index b7f8203..099d89f 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -15595,9 +15595,9

[Qemu-devel] [PATCH 02/16] target-lm32/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-lm32/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index af9ce8c..171bff8 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -1052,9 +1052,8 @@ static

[Qemu-devel] [PATCH 10/16] target-openrisc/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-openrisc/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index 0eafd02..dab0aa2 100644 --- a/target-openrisc/translate.c +++ b/target-openrisc/translate.c

[Qemu-devel] [PATCH 09/16] target-moxie/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-moxie/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-moxie/translate.c b/target-moxie/translate.c index cc02bd3..0258eb5 100644 --- a/target-moxie/translate.c +++ b/target-moxie/translate.c @@ -856,9 +856,8

[Qemu-devel] [PATCH 07/16] target-m68k/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-m68k/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 32b8132..9469a55 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -3023,9 +3023,9

[Qemu-devel] [PATCH 14/16] target-sparc/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sparc/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index eb6e800..f04b95f 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5267,9 +5267,9

[Qemu-devel] [PATCH 13/16] target-sh4/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sh4/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 14fdb8f..22d9112 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1891,9 +1891,9

[Qemu-devel] [PATCH 12/16] target-s390/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-s390x/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 0c3cf68..93ad178 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -4776,9 +4776,8

[Qemu-devel] [PATCH 15/16] target-unicore32/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-unicore32/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index 151e35e..f887de6 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32/translate.c

[Qemu-devel] [PATCH 16/16] target-xtensa/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-xtensa/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 06d68db..0b4c0bf 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -2927,9 +2927,8

[Qemu-devel] [update][PATCH 01/16] target-i386/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-i386/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 7596a90..f99aa69 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -8338,9 +8338,9

[Qemu-devel] [update][PATCH 03/16] target-arm/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-arm/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 35a21be..e61f661 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -9889,9 +9889,9

[Qemu-devel] [update][PATCH 02/16] target-lm32/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-lm32/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index af9ce8c..9f37f3d 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -1052,9 +1052,8

[Qemu-devel] [update][PATCH 05/16] target-alpha/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-alpha/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 4db16db..589f6a1 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3425,9

[Qemu-devel] [update][PATCH 04/16] target-mips/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-mips/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index b7f8203..7d2baab 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -15595,9 +15595,9

[Qemu-devel] [update][PATCH 08/16] target-microblaze/translate: minimally change gen_intermediate_code_interna

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-microblaze/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 06d2346..aaeeab1 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze

[Qemu-devel] [update][PATCH 06/16] target-cris/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-cris/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-cris/translate.c b/target-cris/translate.c index dbcb811..6f38f1b 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3258,9 +3258,8

[Qemu-devel] [update][PATCH 14/16] target-sparc/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sparc/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index eb6e800..f3036ff 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5267,9

[Qemu-devel] [update][PATCH 07/16] target-m68k/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-m68k/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 32b8132..983a799 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -3023,9 +3023,9

[Qemu-devel] [update][PATCH 11/16] target-ppc/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-ppc/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 5e741d1..829f30a 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -9565,9 +9565,9

[Qemu-devel] [update][PATCH 09/16] target-moxie/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-moxie/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-moxie/translate.c b/target-moxie/translate.c index cc02bd3..992e44d 100644 --- a/target-moxie/translate.c +++ b/target-moxie/translate.c @@ -856,9 +856,8

[Qemu-devel] [update][PATCH 13/16] target-sh4/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sh4/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 14fdb8f..deea3bf 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1891,9 +1891,9

[Qemu-devel] [update][PATCH 10/16] target-openrisc/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-openrisc/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index 0eafd02..f6a933d 100644 --- a/target-openrisc/translate.c +++ b/target-openrisc/translate.c

[Qemu-devel] [update][PATCH 15/16] target-unicore32/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-unicore32/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index 151e35e..60701bd 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32

[Qemu-devel] [update][PATCH 12/16] target-s390/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-s390x/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 0c3cf68..72a9c5e 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -4776,9 +4776,8

[Qemu-devel] [update][PATCH 16/16] target-xtensa/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-xtensa/translate.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 06d68db..dbceeb8 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -2927,9

[Qemu-devel] [PATCH 2/3] debugcon: make debug message more readable

2013-04-11 Thread liguang
addr=0x val=0x20] [debugcon: write addr=0x val=0x66] Signed-off-by: liguang --- hw/char/debugcon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c index e41ec8a..b52cbeb 100644 --- a/hw/char/debugcon.c +++ b/hw/char

[Qemu-devel] [PATCH 1/3] debugcon: fix always print "addr=0x0, val=0x0" bug

2013-04-11 Thread liguang
=0x val=0x00 Oh, that's wrong, val is not always be 0. this bug caused by lack of length modifier for specifier 'x'. Signed-off-by: liguang --- hw/char/debugcon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/char/debugcon.c b/hw/char/debugcon.

  1   2   3   4   >