[Qemu-devel] [PATCH 3/6] device_tree.c: Format a blob in memory as dts stream and dump to a file.

2014-08-24 Thread john.liuli
From: Li Liu The outputed stream format is compatile with 'dtc -I dtb -O dts xxx.dtb'. Signed-off-by: Li Liu --- device_tree.c | 80 + 1 file changed, 80 insertions(+) diff --git a/device_tree.c b/device_tree.c index 14d4015..1e407d2 1

[Qemu-devel] [PATCH 1/6] device_tree.c: Introduce a function to check multiple strings for dts

2014-08-24 Thread john.liuli
From: Li Liu dts property's value can be multiple strings. So introduce a function to check a data with a given length to see if it is all printable and has a valid terminator. It can contain either a single string, or multiple strings each of non-zero length. Signed-off-by: Li Liu --- device_

[Qemu-devel] [PATCH 0/6] add dumpdts ability to convert dtb to dts

2014-08-24 Thread john.liuli
From: Li Liu This patchset let qemu can convert dtb file to dts for two demands: Some archtectures may generate the dtb file dynamically through qemu device tree functions. So this let it's possiable to dump final dtb to dts and save it as a reference. For novices to debugging the issues caused

[Qemu-devel] [PATCH 2/6] device_tree.c: dump three kind data types of dts to a file desciptor

2014-08-24 Thread john.liuli
From: Li Liu dump three kind data types 'strings', 'cell' and 'bytes' of dts to a file desciptor. Signed-off-by: Li Liu --- device_tree.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/device_tree.c b/device_tree.c index 29d9acc..14d4015 100644 -

[Qemu-devel] [PATCH 4/6] device_tree.c: add the main function to analyse the parameter 'dumpdts'

2014-08-24 Thread john.liuli
From: Li Liu add the main function to analyse the parameter 'dumpdts' as a filename the dts will be dumped to. Signed-off-by: Li Liu --- device_tree.c| 21 + include/sysemu/device_tree.h |1 + 2 files changed, 22 insertions(+) diff --git a/device_tree

[Qemu-devel] [PATCH 5/6] machine: add 'dumpdts' parameter to 'machine' optslist.

2014-08-24 Thread john.liuli
From: Li Liu Signed-off-by: Li Liu --- vl.c |4 1 file changed, 4 insertions(+) diff --git a/vl.c b/vl.c index b796c67..853f748 100644 --- a/vl.c +++ b/vl.c @@ -357,6 +357,10 @@ static QemuOptsList qemu_machine_opts = { .type = QEMU_OPT_STRING, .help = "Dump

[Qemu-devel] [PATCH 6/6] arm: Allow dumping generated dtb to dts file

2014-08-24 Thread john.liuli
From: Li Liu By calling qemu_fdt_dumdts before qemu_fdt_dumpdtb. Signed-off-by: Li Liu --- hw/arm/boot.c |1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index e32f2f4..18cc8ac 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -394,6 +394,7 @@ static int loa

[Qemu-devel] [PATCH] device_tree.c: redirect load_device_tree err message to stderr

2014-08-25 Thread john.liuli
From: Li Liu Signed-off-by: Li Liu --- device_tree.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/device_tree.c b/device_tree.c index ca83504..ccdb039 100644 --- a/device_tree.c +++ b/device_tree.c @@ -79,7 +79,7 @@ void *load_device_tree(const char *filename_p

[Qemu-devel] [PATCH v2 1/2] device_tree.c: redirect load_device_tree err message to stderr

2014-08-25 Thread john.liuli
From: Li Liu Reviewed-by: Peter Crosthwaite Signed-off-by: Li Liu --- changes v1 -> v2: 1) fix indent issue as peter suggested. 2) dump all err mesages with error_report. --- device_tree.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/device_tree.c b/d

[Qemu-devel] [PATCH v2 2/2] device_tree.c: dump all err mesages with error_report

2014-08-25 Thread john.liuli
From: Li Liu Signed-off-by: Li Liu --- device_tree.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/device_tree.c b/device_tree.c index 9d47195..df9eed9 100644 --- a/device_tree.c +++ b/device_tree.c @@ -60,13 +60,13 @@ void *cre

[Qemu-devel] [PATCH] qemu-char: fix terminal crash when using "-monitor stdio -nographic"

2014-08-26 Thread john.liuli
From: Li Liu Eeay to reproduce, just try "qemu -monitor stdio -nographic" and type "quit", then the terminal will be crashed. There are two pathes try to call tcgetattr of stdio in vl.c: 1) Monitor_parse(optarg, "readline"); . qemu_opts_foreach(qemu_find_opts("chardev"),

[Qemu-devel] [PATCH v1 repost] qtest: fix qtest log fd should be initialized before qtest chardev

2014-10-21 Thread john.liuli
From: Li Liu qtest_log_fp should be inited before qemu_chr_add_handlers. If not the log dumped from callback functions may be lost. easy to reproduce it by command: "QTEST_LOG=1 QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 gtester -k --verbose -m=quick tests/qdev-monitor-test" The log "[

[Qemu-devel] [RFC PATCH 2/2] Assign a new irq handler while irqfd enabled

2014-10-25 Thread john.liuli
From: Li Liu This irq handler will get the interrupt reason from a shared memory. And will be assigned only while irqfd enabled. Signed-off-by: Li Liu --- drivers/virtio/virtio_mmio.c | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/driv

[Qemu-devel] [RFC PATCH 0/2] virtio-mmio: add irqfd support for vhost-net based on virtio-mmio

2014-10-25 Thread john.liuli
From: Li Liu This set of patches try to implemet irqfd support of vhost-net based on virtio-mmio. I had posted a mail to talking about the status of vhost-net on kvm-arm refer to http://www.spinics.net/lists/kvm-arm/msg10804.html. Some dependent patches are listed in the mail too. Basically th

[Qemu-devel] [RFC PATCH 1/2] Add a new register offset let interrupt reason available

2014-10-25 Thread john.liuli
From: Li Liu Add a new register offset VIRTIO_MMIO_ISRMEM which help to estblish a shared memory region between virtio-mmio driver and qemu with two purposes: 1.Guest virtio-mmio driver can get the interrupt reason. 2.Check irqfd enabled or not to register different irq handler. Signed-off-by:

[Qemu-devel] [PATCH] numa: fix qerror_report_err not free issue

2014-08-29 Thread john.liuli
From: Li Liu All qerror_report_err returned none NULL pointers need to be freed, otherwise will cause memory leaking. Although this place did not cause real memory leaking by exit, obviously it's not correct to use qerror_report_err without error_free it. Signed-off-by: Li Liu --- numa.c |

[Qemu-devel] [PATCH] qtest: fix qtest log fd should be initialized before qtest chardev

2014-09-03 Thread john.liuli
From: Li Liu qtest_log_fp should be inited before qemu_chr_add_handlers. If not the log dumped from callback functions may be lost. easy to reproduce it by command: "QTEST_LOG=1 QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 gtester -k --verbose -m=quick tests/qdev-monitor-test" The log "[

[Qemu-devel] [PATCH v2] qemu-char: fix terminal crash when using "-monitor stdio -nographic"

2014-09-09 Thread john.liuli
From: Li Liu Eeay to reproduce, just try "qemu -monitor stdio -nographic" and type "quit", then the terminal will be crashed. There are two pathes try to call tcgetattr of stdio in vl.c: 1) Monitor_parse(optarg, "readline"); . qemu_opts_foreach(qemu_find_opts("chardev"),

[Qemu-devel] [PATCH] configure: add more detailed hint of old libfdt-dev missing libfdt_env.h

2014-04-20 Thread john.liuli
libfdt_env.h is missing in some stable installs (<1.3.0-3), some released linux distributions(e.g. Ubuntu 12.04) depending on it still complain missing libfdt even if already installed. So give more detailed hint for such OS users. Signed-off-by: Liu Li --- configure |4 +++- 1 file changed,

Re: [Qemu-devel] [PATCH] configure: add more detailed hint of old libfdt-dev missing libfdt_env.h

2014-04-22 Thread john.liuli
On 2014/4/22 17:38, john.liuli wrote: "john.liuli" writes: libfdt_env.h is missing in some stable installs (<1.3.0-3), some released linux distributions(e.g. Ubuntu 12.04) depending on it still complain missing libfdt even if already installed. So give more detailed hint for

Re: [Qemu-devel] [PATCH] configure: add more detailed hint of old libfdt-dev missing libfdt_env.h

2014-04-22 Thread john.liuli
On 2014/4/22 19:56, john.liuli wrote: On 21 April 2014 07:18, john.liuli wrote: libfdt_env.h is missing in some stable installs (<1.3.0-3), some released linux distributions(e.g. Ubuntu 12.04) depending on it still complain missing libfdt even if already installed. So give more detailed h

[Qemu-devel] [PATCH v2] configure: add more detailed hint of old libfdt-dev missing, libfdt_env.h

2014-04-24 Thread john.liuli
libfdt_env.h is missing in some stable installs (<1.3.0-3), some released linux distributions(e.g. Ubuntu 12.04) depending on it still complain missing libfdt even if already installed. So give more detailed hint for such OS users. Signed-off-by: Liu Li --- configure |5 +++-- 1 file change