[Qemu-devel] [RFC PATCH 0/3] Time resync support by qemu-ga

2013-01-06 Thread Lei Li
will add win32-specific command to support Windows guest later. Since I want to make sure if this seems like the way we should be headed. Your comments and suggestions are very welcome! Lei Li (3): qga: add support to get host time qga: add guest-get-time command qga: add guest-set-time command

[Qemu-devel] [RFC] Time resync by qemu-ga

2012-12-27 Thread Lei Li
Hi guys, I am working on the time drift issue as background info here. http://mid.gmane.org/87pq5r5otp@codemonkey.ws As Anthony proposed, one part of the solutions is that we want to add a qemu-ga command to resync the guest clock by reading the wallclock time when the tick overflow the lim

[Qemu-devel] [PATCH V2] qemu-char: Inherit ptys and improve output from -serial pty

2012-12-20 Thread Lei Li
pty -monitor pty char device compat_monitor0 redirected to /dev/pts/5 char device serial0 redirected to /dev/pts/6 char device serial1 redirected to /dev/pts/7 Referred link: https://bugs.launchpad.net/qemu/+bug/938552 Signed-off-by: Lei Li --- qemu-char.c |8 +++- 1 files changed, 7 ins

Re: [Qemu-devel] [PATCH] qemu-char: inherit ptys and imporve output from -serial pty

2012-12-20 Thread Lei Li
Sorry, s/imporve/improve... On 12/20/2012 10:49 PM, Lei Li wrote: When controlling a qemu instance from another program, it's hard to know which serial port or monitor device is redirected to which pty. With more than one device using "pty" a lot of guesswork is involved. $ .

[Qemu-devel] [PATCH] qemu-char: inherit ptys and imporve output from -serial pty

2012-12-20 Thread Lei Li
redirected to /dev/pts/7 Referred link: https://bugs.launchpad.net/qemu/+bug/938552 Reported-by: Craig Ringer Signed-off-by: Lei Li --- qemu-char.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 242b799..2b0f5f4 100644 --- a/qemu-c

[Qemu-devel] [PATCH] qemu-char: inheriting ptys and imporve output from -serial pty

2012-12-14 Thread Lei Li
redirected to /dev/pts/7 Referred link: https://bugs.launchpad.net/qemu/+bug/938552 Reported-by: Craig Ringer Signed-off-by: Lei Li --- qemu-char.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 242b799..2b0f5f4 100644 --- a/qemu-c

[Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 21 + hmp.c | 52 hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 92 insertions(+), 0 deletions

[Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 15 +++ hmp.c| 13 + hmp.h|1 + qapi-schema.json | 41 + qemu-char.c | 48 qmp-commands.hx

[Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 17 hmp.h|1 + qapi-schema.json | 25 +++ qemu-char.c | 57 ++ qmp-commands.hx | 34

[Qemu-devel] [PATCH 0/4 V8] char: Add CirMemCharDriver and provide QMP interface

2012-12-06 Thread Lei Li
urrent MemCharDriver live in parallel, expose a new char backend with circular buffer CirMemCharDriver suggested by Luiz. - Other fixs from Eric and Markus. Changes since v1: - Exposing the MemCharDriver via command line. - Support base64 data format suggested by Anthony and Eric. - Foll

[Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 131 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 144 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 242b799..3e45ce6 100644 --- a/qemu

[Qemu-devel] [Bug 1086745] Re: serial port data THRE comes too early

2012-12-05 Thread Lei Li
Could you please give more details, like the steps to reproduce this problems. Thanks. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1086745 Title: serial port data THRE comes too early Status in

[Qemu-devel] [PATCH] scsi: Remove SCSI_BUS macro

2012-11-26 Thread Lei Li
macro does. And due to the potential Segmentation risk of SCSI_BUS, remove this macro. Signed-off-by: Lei Li --- hw/scsi.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/scsi.h b/hw/scsi.h index b8f7357..ad063e5 100644 --- a/hw/scsi.h +++ b/hw/scsi.h @@ -142,7 +

[Qemu-devel] [PATCH] Fix the inconsistency in x509-dh-key-file parameter

2012-11-19 Thread Lei Li
u_spice_init. https://bugs.launchpad.net/qemu/+bug/1035042 Reported-by: Alon Bar-Lev Signed-off-by: Lei Li --- ui/spice-core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 5147365..261c6f2 100644 --- a/ui/spice-core.c +

[Qemu-devel] [PATCH] Fix the inconsistency in x509-dh-key-file parameter

2012-11-14 Thread Lei Li
Fix the inconsistency between the declaration of the option 'x509-dh-key-file' to -spice command line and its parameter parsing. https://bugs.launchpad.net/qemu/+bug/1035042 Reported-by: Alon Bar-Lev Signed-off-by: Lei Li --- ui/spice-core.c |2 +- 1 files changed, 1 insert

Re: [Qemu-devel] [PATCH] block.c, block/vmdk.c: Fixed major bug in VMDK WRITE and READ handling - FIXES DATA CORRUPTION

2012-11-08 Thread Lei Li
On 11/09/2012 01:12 PM, Fam Zheng wrote: Yes, I can confirm the presence of this bug and this is a valid fix. May I ask where is this kind of vmdk from? Because regularly we see extents in identical size. I guess the regularly extents you see are SPARSE extent in identical size. This is the FL

Re: [Qemu-devel] [PATCH 1/2] qemu-ga: execute script to quiesce the guest on fsfreeze-freeze/thaw

2012-11-08 Thread Lei Li
Hi Tomoki, You should use the plain text format to send your patch. Otherwise people will not be able to apply the patch. :) On 11/08/2012 08:36 PM, Tomoki Sekiyama wrote: To use the online disk snapshot for online-backup, application-level consistency of the snapshot image is required. However

Re: [Qemu-devel] [PATCH] qemu-sockets: Fix parsing of the inet option 'to'.

2012-11-08 Thread Lei Li
after this patch. Tested-by: Lei Li --- qemu-sockets.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qemu-sockets.c b/qemu-sockets.c index abcd791..11d3d32 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -551,8 +551,9 @@ static InetSocketAddress *inet_parse(const

[Qemu-devel] [Bug 1073585] Re: Deleting UDP socket in monitor mode

2012-11-01 Thread Lei Li
Hi, I reproduced this problem and have already submit a patch to fix it: http://patchwork.ozlabs.org/patch/196116/ ** Changed in: qemu Status: New => Fix Committed ** Changed in: qemu Assignee: (unassigned) => Lei Li (matrixs-zero) -- You received this bug notification b

Re: [Qemu-devel] [PATCH] net: fix bug in net_init_socket

2012-11-01 Thread Lei Li
On 11/01/2012 06:05 PM, Stefan Hajnoczi wrote: On Thu, Nov 01, 2012 at 05:39:55PM +0800, Lei Li wrote: Fix the problem that can not delete the udp socket. It's caused by passing "udp" model to net_socket_udp_init, but we do not have "udp" model in our model list. Pas

Re: [Qemu-devel] [PATCH] net: avoid segfault in case netdev_del non-host network device

2012-11-01 Thread Lei Li
On 11/01/2012 05:42 PM, Stefan Hajnoczi wrote: On Thu, Nov 1, 2012 at 8:48 AM, Lei Li wrote: netdev_del assume that remove host network device. However, when try to remove a non-host network device by netdev_del, it will cause a segfault. I recently sent a similar fix which forbids deleting

[Qemu-devel] [PATCH] net: fix bug in net_init_socket

2012-11-01 Thread Lei Li
Fix the problem that can not delete the udp socket. It's caused by passing "udp" model to net_socket_udp_init, but we do not have "udp" model in our model list. Pass the right model "socket" to init function. https://bugs.launchpad.net/qemu/+bug/1073585?

[Qemu-devel] [PATCH] net: avoid segfault in case netdev_del non-host network device

2012-11-01 Thread Lei Li
) netdev_del con.1 Segmentation fault (core dumped) Signed-off-by: Lei Li --- net.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index ae4bc0d..cc52552 100644 --- a/net.c +++ b/net.c @@ -827,6 +827,7 @@ exit_err: void qmp_netdev_del(const char *id

[Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 17 hmp.h|1 + qapi-schema.json | 27 - qemu-char.c | 57 ++ qmp-commands.hx | 34

[Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 15 +++ hmp.c| 13 + hmp.h|1 + qapi-schema.json | 41 + qemu-char.c | 48 qmp-commands.hx

[Qemu-devel] [PATCH 0/4 V7] char: Add CirMemCharDriver and provide QMP interface

2012-10-30 Thread Lei Li
y infrastructure enhancement. - Add HMP 'console' command so that can interact with multiple chardevs via a single monitor socket. - Make the circular buffer backend and the current MemCharDriver live in parallel, expose a new char backend with circular buffer CirMemCha

Re: [Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-30 Thread Lei Li
On 10/29/2012 09:17 PM, Luiz Capitulino wrote: On Mon, 29 Oct 2012 12:09:38 +0800 Lei Li wrote: On 10/27/2012 01:39 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:51 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c

Re: [Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-30 Thread Lei Li
On 10/29/2012 09:26 PM, Luiz Capitulino wrote: On Mon, 29 Oct 2012 12:18:03 +0800 Lei Li wrote: On 10/27/2012 01:43 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:52 +0800 Lei Li wrote: Signed-off-by: Lei Li I still don't understand how this command, in its current for

Re: [Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-30 Thread Lei Li
On 10/29/2012 09:23 PM, Luiz Capitulino wrote: On Mon, 29 Oct 2012 12:10:24 +0800 Lei Li wrote: On 10/27/2012 01:17 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:50 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 17 + hmp.c

[Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 21 + hmp.c | 51 +++ hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 91 insertions(+), 0 deletions

[Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-10-30 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 131 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 144 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index afe2bfb..11c320f 100644 --- a/qemu

Re: [Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-10-28 Thread Lei Li
On 10/27/2012 12:47 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:49 +0800 Lei Li wrote: Signed-off-by: Lei Li --- qemu-char.c | 140 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 153

Re: [Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-28 Thread Lei Li
On 10/27/2012 01:43 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:52 +0800 Lei Li wrote: Signed-off-by: Lei Li I still don't understand how this command, in its current form, is different from memchar-write. One more comment below. Hi Luiz, Yes, I have replied to it in

Re: [Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-28 Thread Lei Li
On 10/27/2012 01:17 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:50 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 17 + hmp.c| 15 +++ hmp.h|1 + qapi-schema.json | 47

Re: [Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-28 Thread Lei Li
On 10/27/2012 01:39 AM, Luiz Capitulino wrote: On Fri, 26 Oct 2012 19:21:51 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 19 ++ hmp.h|1 + qapi-schema.json | 27

[Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-26 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 19 ++ hmp.h|1 + qapi-schema.json | 27 ++ qemu-char.c | 55 ++ qmp-commands.hx | 40

[Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-26 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 17 + hmp.c| 15 +++ hmp.h|1 + qapi-schema.json | 47 +++ qemu-char.c | 44 qmp-commands.hx

[Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-26 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 25 + hmp.c | 52 hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 96 insertions(+), 0 deletions

[Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-10-26 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 140 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 153 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b082bae..c3ec43d 100644 --- a/qemu

[Qemu-devel] [PATCH 0/4 V6] char: Add CirMemCharDriver and provide QMP interface

2012-10-26 Thread Lei Li
cement. - Add HMP 'console' command so that can interact with multiple chardevs via a single monitor socket. - Make the circular buffer backend and the current MemCharDriver live in parallel, expose a new char backend with circular buffer CirMemCharDriver suggested by Luiz. - Other

Re: [Qemu-devel] [PATCH 0/4 V5] char: Add CirMemCharDriver and provide QMP interface

2012-10-25 Thread Lei Li
Please ignore this thread and review the other thread also titled V5. Sorry for the mis-sending mostly caused by the unconsciousness at midnight... On 10/26/2012 03:48 AM, Lei Li wrote: This patch series attempts to add new char backend CirMemCharDriver with a circular buffer and expose it to

Re: [Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-10-25 Thread Lei Li
On 10/26/2012 04:05 AM, Eric Blake wrote: On 10/25/2012 01:54 PM, Lei Li wrote: Signed-off-by: Lei Li --- qemu-char.c | 136 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 149 insertions(+), 0 deletions

[Qemu-devel] [PATCH 0/4 V5] char: Add CirMemCharDriver and provide QMP interface

2012-10-25 Thread Lei Li
ar buffer backend and the current MemCharDriver live in parallel, expose a new char backend with circular buffer CirMemCharDriver suggested by Luiz. - Other fixs from Eric and Markus. Changes since v1: - Exposing the MemCharDriver via command line. - Support base64 data format suggested

[Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 25 + hmp.c | 52 hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 96 insertions(+), 0 deletions

[Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 19 ++ hmp.h|1 + qapi-schema.json | 27 ++ qemu-char.c | 55 ++ qmp-commands.hx | 40

[Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 25 + hmp.c | 52 hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 96 insertions(+), 0 deletions

[Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 17 + hmp.c| 15 +++ hmp.h|1 + qapi-schema.json | 47 +++ qemu-char.c | 44 qmp-commands.hx

[Qemu-devel] [PATCH 0/4 V5] char: Add CirMemCharDriver and provide QMP interface

2012-10-25 Thread Lei Li
ar buffer backend and the current MemCharDriver live in parallel, expose a new char backend with circular buffer CirMemCharDriver suggested by Luiz. - Other fixs from Eric and Markus. Changes since v1: - Exposing the MemCharDriver via command line. - Support base64 data format suggested

[Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 136 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 149 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b082bae..45d2a86 100644 --- a/qemu

[Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 19 ++ hmp.h|1 + qapi-schema.json | 27 ++ qemu-char.c | 55 ++ qmp-commands.hx | 40

[Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 17 + hmp.c| 15 +++ hmp.h|1 + qapi-schema.json | 47 +++ qemu-char.c | 44 qmp-commands.hx

[Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-10-25 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 136 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 149 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b082bae..45d2a86 100644 --- a/qemu

Re: [Qemu-devel] [PATCH 5/5] HMP: Introduce console command

2012-10-25 Thread Lei Li
On 10/24/2012 08:55 PM, Luiz Capitulino wrote: On Wed, 24 Oct 2012 15:17:21 +0800 Lei Li wrote: On 10/23/2012 02:59 AM, Luiz Capitulino wrote: On Mon, 22 Oct 2012 00:48:01 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 23 +++ hmp.c

Re: [Qemu-devel] [PATCH 5/5] HMP: Introduce console command

2012-10-24 Thread Lei Li
On 10/23/2012 02:59 AM, Luiz Capitulino wrote: On Mon, 22 Oct 2012 00:48:01 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 23 +++ hmp.c | 53 + hmp.h |1 + monitor.c

Re: [Qemu-devel] [PATCH 1/5] qemu-char: Add new char backend CircularMemCharDriver

2012-10-22 Thread Lei Li
On 10/23/2012 02:14 AM, Luiz Capitulino wrote: On Mon, 22 Oct 2012 00:47:57 +0800 Lei Li wrote: Signed-off-by: Lei Li This patch should be squashed in the next one. More comments below. --- qemu-char.c | 72 +++ 1 files changed

Re: [Qemu-devel] [PATCH 3/5] QAPI: Introduce memchar-write QMP command

2012-10-22 Thread Lei Li
On 10/23/2012 02:37 AM, Luiz Capitulino wrote: On Mon, 22 Oct 2012 00:47:59 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 22 + hmp.c| 19 +++ hmp.h|1 + qapi-schema.json | 69

Re: [Qemu-devel] [PATCH 1/5] qemu-char: Add new char backend CircularMemCharDriver

2012-10-22 Thread Lei Li
On 10/22/2012 10:08 PM, Eric Blake wrote: On 10/21/2012 10:47 AM, Lei Li wrote: Signed-off-by: Lei Li --- qemu-char.c | 72 +++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b082bae

[Qemu-devel] [PATCH 5/5] HMP: Introduce console command

2012-10-21 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 23 +++ hmp.c | 53 + hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 95 insertions(+), 0 deletions

[Qemu-devel] [PATCH 3/5] QAPI: Introduce memchar-write QMP command

2012-10-21 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 22 + hmp.c| 19 +++ hmp.h|1 + qapi-schema.json | 69 ++ qemu-char.c | 46 qmp-commands.hx

[Qemu-devel] [PATCH 4/5] QAPI: Introduce memchar-read QMP command

2012-10-21 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 25 + hmp.c| 17 + hmp.h|1 + qapi-schema.json | 27 +++ qemu-char.c | 52 qmp-commands.hx

[Qemu-devel] [PATCH 0/5 V4] char: add CirMemCharDriver and provide QMP interface

2012-10-21 Thread Lei Li
ommand so that can interact with multiple chardevs via a single monitor socket. - Make the circular buffer backend and the current MemCharDriver live in parallel, expose a new char backend with circular buffer CirMemCharDriver suggested by Luiz. - Other fixs from Eric and Markus. Chan

[Qemu-devel] [PATCH 2/5] Expose CirMemCharDriver via command line

2012-10-21 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 36 qemu-config.c |3 +++ qemu-options.hx | 10 ++ 3 files changed, 49 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b174da1..381bf60 100644 --- a/qemu-char.c +++ b

[Qemu-devel] [PATCH 1/5] qemu-char: Add new char backend CircularMemCharDriver

2012-10-21 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 72 +++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b082bae..b174da1 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2588,6 +2588,78 @@ size_t

Re: [Qemu-devel] [PATCH v3 9/9] chardev: add hotplug support.

2012-10-16 Thread Lei Li
On 10/15/2012 04:06 PM, Gerd Hoffmann wrote: This patch adds chardev_add and chardev_del monitor commands. They work simliar to the netdev_{add,del} commands. The hmp version of chardev_add accepts like the -chardev command line option does. The qmp version expects the arguments being passed a

Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support.

2012-10-14 Thread Lei Li
On 10/12/2012 08:39 PM, Gerd Hoffmann wrote: This patch adds chardev_add and chardev_del monitor commands. chardev_del is pretty straight forward, it just takes an id argument and zaps the chardev specified. chardev_add is more tricky as there are tons of arguments for the different backends.

Re: [Qemu-devel] [PATCH 3/5] QAPI: Introduce memchar-write QMP command

2012-09-20 Thread Lei Li
On 09/20/2012 02:05 AM, Luiz Capitulino wrote: On Wed, 12 Sep 2012 19:57:24 +0800 Lei Li wrote: Signed-off-by: Lei Li --- hmp-commands.hx | 23 ++ hmp.c| 19 +++ hmp.h|1 + qapi-schema.json | 69

[Qemu-devel] [PATCH 3/5] QAPI: Introduce memchar-write QMP command

2012-09-12 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 23 ++ hmp.c| 19 +++ hmp.h|1 + qapi-schema.json | 69 ++ qemu-char.c | 48 + qmp-commands.hx

[Qemu-devel] [PATCH 2/5] Expose CirMemCharDriver via command line

2012-09-12 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 31 +++ qemu-config.c |3 +++ qemu-options.hx | 10 ++ 3 files changed, 44 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 0470085..6e84acc 100644 --- a/qemu-char.c +++ b/qemu

[Qemu-devel] [PATCH 5/5] HMP: Introduce console command

2012-09-12 Thread Lei Li
Signed-off-by: Lei Li --- hmp.c | 42 ++ monitor.c | 18 ++ monitor.h |2 ++ 3 files changed, 62 insertions(+), 0 deletions(-) diff --git a/hmp.c b/hmp.c index 4397981..a016a5c 100644 --- a/hmp.c +++ b/hmp.c @@ -1205,3 +1205,45

[Qemu-devel] [PATCH 4/5] QAPI: Introduce memchar-read QMP command

2012-09-12 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 25 + hmp.c| 18 ++ hmp.h|1 + qapi-schema.json | 27 +++ qemu-char.c | 48 qmp-commands.hx

[Qemu-devel] [RFC v3 ATCH 0/5] char: expose CirMemCharDriver and provide QMP interface

2012-09-12 Thread Lei Li
live in parallel, expose a new char backend with circular buffer CirMemCharDriver suggested by Luiz. - Other fixs from Eric and Markus. Changes since v1: - Exposing the MemCharDriver via command line. - Support base64 data format suggested by Anthony and Eric. - F

[Qemu-devel] [PATCH 1/5] qemu-char: Add new char device CirMemCharDriver

2012-09-12 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 84 +++ 1 files changed, 84 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 767da93..0470085 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2591,6 +2591,90 @@ size_t

Re: [Qemu-devel] [PATCH 2/6] monitor: Adjust qmp_human_monitor_command to new MemCharDriver

2012-09-03 Thread Lei Li
On 08/31/2012 02:51 AM, Luiz Capitulino wrote: On Thu, 23 Aug 2012 13:14:22 +0800 Lei Li wrote: Signed-off-by: Lei Li --- monitor.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/monitor.c b/monitor.c index 480f583..ab4650b 100644 --- a/monitor.c +++ b

Re: [Qemu-devel] [PATCH 4/6] QAPI: Introduce memchar_read QMP command

2012-08-23 Thread Lei Li
On 08/23/2012 01:46 PM, Eric Blake wrote: On 08/22/2012 11:14 PM, Lei Li wrote: Signed-off-by: Lei Li Again, subject line should use '-' not '_' for QMP. --- hmp-commands.hx | 16 hmp.c| 15 +++ hmp.h|1

Re: [Qemu-devel] [PATCH 3/6] QAPI: Introduce memchar_write QMP command

2012-08-22 Thread Lei Li
On 08/23/2012 01:42 PM, Eric Blake wrote: On 08/22/2012 11:14 PM, Lei Li wrote: Signed-off-by: Lei Li Subject line uses '_', but the QMP command uses '-' [1] --- hmp-commands.hx | 16 hmp.c| 15 +++ hmp.h

[Qemu-devel] [PATCH 3/6] QAPI: Introduce memchar_write QMP command

2012-08-22 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 16 hmp.c| 15 +++ hmp.h|1 + qapi-schema.json | 28 qemu-char.c | 36 qmp-commands.hx | 33

[Qemu-devel] [PATCH 6/6] Expose MemCharDriver via command line

2012-08-22 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 24 qemu-config.c |3 +++ qemu-options.hx | 10 ++ 3 files changed, 37 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index ff6651b..36f4ecc 100644 --- a/qemu-char.c +++ b/qemu-char.c

[Qemu-devel] [PATCH 4/6] QAPI: Introduce memchar_read QMP command

2012-08-22 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 16 hmp.c| 15 +++ hmp.h|1 + qapi-schema.json | 23 +++ qemu-char.c | 32 qmp-commands.hx | 31

[Qemu-devel] [PATCH 2/6] monitor: Adjust qmp_human_monitor_command to new MemCharDriver

2012-08-22 Thread Lei Li
Signed-off-by: Lei Li --- monitor.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/monitor.c b/monitor.c index 480f583..ab4650b 100644 --- a/monitor.c +++ b/monitor.c @@ -642,7 +642,13 @@ char *qmp_human_monitor_command(const char *command_line, bool

[Qemu-devel] [PATCH 5/6] Fix enumeration typo error

2012-08-22 Thread Lei Li
Signed-off-by: Lei Li --- qapi-schema-guest.json |2 +- qapi-schema.json |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qapi-schema-guest.json b/qapi-schema-guest.json index d955cf1..ed0eb69 100644 --- a/qapi-schema-guest.json +++ b/qapi-schema-guest.json

[Qemu-devel] [PATCH 1/6] qemu-char: Convert MemCharDriver to circular buffer

2012-08-22 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 96 +++--- qemu-char.h |2 +- 2 files changed, 78 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 398baf1..b21b93a 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2528,38

[Qemu-devel] [RFC v2 ATCH 0/4] char: expose MemoryCharDriver to users and provide QMP interface

2012-08-22 Thread Lei Li
the new rule for the name of qmp command from Eric. For the comments of MemCharDriver improvment, which I am working on and will send out within v3 with the rest feature implemented in few days. Lei Li (6): qemu-char: Convert MemCharDriver to circular buffer monitor: Adjust qmp_human_mo

Re: [Qemu-devel] [RFC PATCH 1/4] qemu-char: Convert MemCharDriver to circular buffer

2012-08-06 Thread Lei Li
On 08/02/2012 05:30 AM, Anthony Liguori wrote: Lei Li writes: Signed-off-by: Lei Li --- qemu-char.c | 96 +++--- qemu-char.h |2 +- 2 files changed, 78 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

Re: [Qemu-devel] [PATCH] qemu-char: (Re-)connect for tcp_chr_write() unconnected writing

2012-08-06 Thread Lei Li
Ping? On 07/20/2012 07:09 AM, Anthony Liguori wrote: Lei Li writes: tcp_chr_write() did not deal with writing to an unconnected connection and return the original length of the data, it's not right and would cause false writing. So (re-)connect it and return 0 for this situation. Signe

[Qemu-devel] [RFC PATCH 2/4] monitor: Adjust qmp_human_monitor_command to new MemCharDriver

2012-08-01 Thread Lei Li
Signed-off-by: Lei Li --- monitor.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/monitor.c b/monitor.c index 49dccfe..c1a4d81 100644 --- a/monitor.c +++ b/monitor.c @@ -645,7 +645,13 @@ char *qmp_human_monitor_command(const char *command_line, bool

[Qemu-devel] [RFC PATCH 3/4] qmp: Introduce memchar_write QMP command

2012-08-01 Thread Lei Li
Signed-off-by: Lei Li --- qapi-schema.json | 20 qemu-char.c | 19 +++ qmp-commands.hx | 29 + 3 files changed, 68 insertions(+), 0 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index bc55ed2..3c8530f

[Qemu-devel] [RFC PATCH 1/4] qemu-char: Convert MemCharDriver to circular buffer

2012-08-01 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 96 +++--- qemu-char.h |2 +- 2 files changed, 78 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index c2aaaee..087c92d 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2517,38

[Qemu-devel] [RFC PATCH 4/4] qmp: Introduce memchar_read QMP command

2012-08-01 Thread Lei Li
Signed-off-by: Lei Li --- qapi-schema.json | 20 qemu-char.c | 16 qmp-commands.hx | 28 3 files changed, 64 insertions(+), 0 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 3c8530f..23edda9

[Qemu-devel] [RFC PATCH 0/4] char: expose MemoryCharDriver to users and provide QMP interface

2012-08-01 Thread Lei Li
emchr,max-capacity=640k,id=foo -serial chardev:foo Note: This series is just a incomplete sketch and not completely tested which I am still struggling with, but I want to get this out ealier to have your suggestion. Please comment and let me know if this seems like the direction we should be headed,

[Qemu-devel] [PATCH] qemu-char: (Re-)connect for tcp_chr_write() unconnected writing

2012-07-19 Thread Lei Li
tcp_chr_write() did not deal with writing to an unconnected connection and return the original length of the data, it's not right and would cause false writing. So (re-)connect it and return 0 for this situation. Signed-off-by: Lei Li --- qemu-char.c |7 +-- 1 files chang

[Qemu-devel] [PATCH] qemu-char: (Re-)connect for tcp_chr_write() unconnected writing

2012-07-15 Thread Lei Li
tcp_chr_write() did not deal with writing to an unconnected connection, (re-)connect it for this situation. Signed-off-by: Lei Li --- qemu-char.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index c2aaaee..25eaeeb 100644 --- a/qemu

Re: [Qemu-devel] TB chaining

2011-09-21 Thread Lei Li
On 09/22/2011 09:58 AM, 陳韋任 wrote: /* list of TBs jumping to this one. This is a circular list using the two least significant bits of the pointers to tell what is the next pointer: 0 = jmp_next[0], 1 = jmp_next[1], 2 = jmp_first */ struct TranslationBlock

Re: [Qemu-devel] TB chaining

2011-09-21 Thread Lei Li
On 09/22/2011 07:05 AM, Xin Tong wrote: I am new to QEMU, can anyone please tell me where the TB chaining code is in QEMU ? Actually, TB chaining was implemented via TB list. You might want to look at Exec.c In struct TranslationBlock, the following data are used to directly call another TB

Re: [Qemu-devel] QEMU as a binary disassembler

2011-09-19 Thread Lei Li
On 09/20/2011 10:11 AM, Xin Tong wrote: One of the research projects I am doing involves disassembling machine instructions (such as PTX ) to TCG IR and use the QEMU backends to generate PTX, do you mean Parallel Thread Execution, a pseudo-assembly language for NVIDIA GPUs? code I need. Basic

<    1   2   3   4   5