Signed-off-by: Lei Li
---
qemu-char.c | 114 +++
qemu-options.hx | 10 +
2 files changed, 124 insertions(+), 0 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 9ba0573..8045869 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -
On 01/23/2013 11:31 PM, Luiz Capitulino wrote:
On Wed, 23 Jan 2013 11:15:40 +0800
Lei Li wrote:
+static int cirmem_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
+{
+CirMemCharDriver *d = chr->opaque;
+int i;
+
+if (!buf || (len < 0)) {
+return -1;
+}
Is
On Wed, 23 Jan 2013 13:31:37 -0200
Luiz Capitulino wrote:
> On Wed, 23 Jan 2013 11:15:40 +0800
> Lei Li wrote:
>
> > >> +static int cirmem_chr_write(CharDriverState *chr, const uint8_t *buf,
> > >> int len)
> > >> +{
> > >> +CirMemCharDriver *d = chr->opaque;
> > >> +int i;
> > >> +
>
On Wed, 23 Jan 2013 11:15:40 +0800
Lei Li wrote:
> >> +static int cirmem_chr_write(CharDriverState *chr, const uint8_t *buf, int
> >> len)
> >> +{
> >> +CirMemCharDriver *d = chr->opaque;
> >> +int i;
> >> +
> >> +if (!buf || (len < 0)) {
> >> +return -1;
> >> +}
> > Is t
Signed-off-by: Lei Li
---
qemu-char.c | 114 +++
qemu-options.hx | 10 +
2 files changed, 124 insertions(+), 0 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 9ba0573..8045869 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -
On 01/23/2013 12:14 AM, Luiz Capitulino wrote:
On Tue, 22 Jan 2013 16:12:50 +0800
Lei Li wrote:
Signed-off-by: Lei Li
---
qemu-char.c | 120 +++
qemu-options.hx | 10 +
2 files changed, 130 insertions(+), 0 deletions(-)
diff
On Tue, 22 Jan 2013 16:12:50 +0800
Lei Li wrote:
> Signed-off-by: Lei Li
> ---
> qemu-char.c | 120
> +++
> qemu-options.hx | 10 +
> 2 files changed, 130 insertions(+), 0 deletions(-)
>
> diff --git a/qemu-char.c b/qemu-char.c
>
Signed-off-by: Lei Li
---
qemu-char.c | 120 +++
qemu-options.hx | 10 +
2 files changed, 130 insertions(+), 0 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 9ba0573..b323e94 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -