* [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
@ 2009-05-16 13:02 vibisreenivasan
2009-05-19 8:12 ` vibi sreenivasan
0 siblings, 1 reply; 9+ messages in thread
From: vibisreenivasan @ 2009-05-16 13:02 UTC (permalink / raw)
To: qemu-devel
Signed-off-by: vibi <vibi_sreenivasan@cms.com>
---
linux-user/syscall.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 76f0c95..f2f87c3 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6580,6 +6580,14 @@ abi_long do_syscall(void *cpu_env, int num,
abi_long arg1,
break;
#endif
+#ifdef TARGET_NR_tee
+ case TARGET_NR_tee:
+ {
+ ret = get_errno(tee(arg1,arg2,arg3,arg4));
+ }
+ break;
+#endif
+
default:
unimplemented:
gemu_log("qemu: Unsupported syscall: %d\n", num);
--
1.6.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-16 13:02 [Qemu-devel] [PATCH ] linux-user: add tee systemcall support vibisreenivasan
@ 2009-05-19 8:12 ` vibi sreenivasan
2009-05-19 10:31 ` vibi sreenivasan
2009-05-19 11:36 ` Riku Voipio
0 siblings, 2 replies; 9+ messages in thread
From: vibi sreenivasan @ 2009-05-19 8:12 UTC (permalink / raw)
To: qemu-devel
hi all,
>Subject: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
Is there any thing wrong with this patch. Please give some feedback
So if there is anything wrong i will be able to correct it.
Thanks & Regards
vibi sreenivasan
>Signed-off-by: vibi <vibi_sreenivasan@cms.com>
>---
>linux-user/syscall.c | 8 ++++++++
>1 files changed, 8 insertions(+), 0 deletions(-)
>diff --git a/linux-user/syscall.c b/linux-user/syscall.c
>index 76f0c95..f2f87c3 100644
>--- a/linux-user/syscall.c
>+++ b/linux-user/syscall.c
>@@ -6580,6 +6580,14 @@ abi_long do_syscall(void *cpu_env, int num,
>abi_long arg1,
break;
>#endif
>+#ifdef TARGET_NR_tee
>+ case TARGET_NR_tee:
>+ {
>+ ret = get_errno(tee(arg1,arg2,arg3,arg4));
>+ }
>+ break;
>+#endif
>+
> default:
> unimplemented:
> gemu_log("qemu: Unsupported syscall: %d\n", num);
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-19 8:12 ` vibi sreenivasan
@ 2009-05-19 10:31 ` vibi sreenivasan
2009-05-19 11:36 ` Riku Voipio
1 sibling, 0 replies; 9+ messages in thread
From: vibi sreenivasan @ 2009-05-19 10:31 UTC (permalink / raw)
To: qemu-devel
hi all,
>Subject: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
Is there any thing wrong with this patch. Please give some feedback
So if there is anything wrong i will be able to correct it.
Thanks & Regards
vibi sreenivasan
>Signed-off-by: vibi <vibi_sreenivasan@cms.com>
>---
>linux-user/syscall.c | 8 ++++++++
>1 files changed, 8 insertions(+), 0 deletions(-)
>diff --git a/linux-user/syscall.c b/linux-user/syscall.c
>index 76f0c95..f2f87c3 100644
>--- a/linux-user/syscall.c
>+++ b/linux-user/syscall.c
>@@ -6580,6 +6580,14 @@ abi_long do_syscall(void *cpu_env, int num,
>abi_long arg1,
break;
>#endif
>+#ifdef TARGET_NR_tee
>+ case TARGET_NR_tee:
>+ {
>+ ret = get_errno(tee(arg1,arg2,arg3,arg4));
>+ }
>+ break;
>+#endif
>+
> default:
> unimplemented:
> gemu_log("qemu: Unsupported syscall: %d\n", num);
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-19 8:12 ` vibi sreenivasan
2009-05-19 10:31 ` vibi sreenivasan
@ 2009-05-19 11:36 ` Riku Voipio
2009-05-19 12:36 ` vibi sreenivasan
1 sibling, 1 reply; 9+ messages in thread
From: Riku Voipio @ 2009-05-19 11:36 UTC (permalink / raw)
To: vibi sreenivasan; +Cc: qemu-devel
On Tue, May 19, 2009 at 01:42:03PM +0530, vibi sreenivasan wrote:
> hi all,
> >Subject: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
> Is there any thing wrong with this patch. Please give some feedback
> So if there is anything wrong i will be able to correct it.
The implementation of tee appears fine. However, the tee testcases
I found all also used splice. What did you use to test this, or do
you plan to implement splice too?
>
> Thanks & Regards
> vibi sreenivasan
>
> >Signed-off-by: vibi <vibi_sreenivasan@cms.com>
> >---
> >linux-user/syscall.c | 8 ++++++++
> >1 files changed, 8 insertions(+), 0 deletions(-)
>
> >diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> >index 76f0c95..f2f87c3 100644
> >--- a/linux-user/syscall.c
> >+++ b/linux-user/syscall.c
> >@@ -6580,6 +6580,14 @@ abi_long do_syscall(void *cpu_env, int num,
> >abi_long arg1,
> break;
> >#endif
>
> >+#ifdef TARGET_NR_tee
> >+ case TARGET_NR_tee:
> >+ {
> >+ ret = get_errno(tee(arg1,arg2,arg3,arg4));
> >+ }
> >+ break;
> >+#endif
> >+
> > default:
> > unimplemented:
> > gemu_log("qemu: Unsupported syscall: %d\n", num);
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-19 11:36 ` Riku Voipio
@ 2009-05-19 12:36 ` vibi sreenivasan
2009-05-20 14:24 ` Riku Voipio
0 siblings, 1 reply; 9+ messages in thread
From: vibi sreenivasan @ 2009-05-19 12:36 UTC (permalink / raw)
To: Riku Voipio; +Cc: qemu-devel
hi ,
thanks for looking into my code.
On Tue, 2009-05-19 at 14:36 +0300, Riku Voipio wrote:
> On Tue, May 19, 2009 at 01:42:03PM +0530, vibi sreenivasan wrote:
> > hi all,
>
> > >Subject: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
>
> > Is there any thing wrong with this patch. Please give some feedback
> > So if there is anything wrong i will be able to correct it.
>
> The implementation of tee appears fine. However, the tee testcases
> I found all also used splice. What did you use to test this
i used a small test code
----------------------------------------------------------------------------------------
#define _GNU_SOURCE
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define die(X) do { perror(#X);exit(EXIT_FAILURE); } while(0)
#define SZ 255
#define TEST_STRING "This is a test to check the presence of tee system call\n\
This print states that tee system call is present\n"
int main(void)
{
int pipe1[2], pipe2[2],strln = strlen(TEST_STRING);
char data[SZ] = {0};
if (pipe(pipe1) || pipe(pipe2))
die("perror");
if (write(pipe1[1], TEST_STRING, strln) < 0)
die("write");
if(tee(pipe1[0], pipe2[1], strln, SPLICE_F_MOVE) != strln)
die("tee");
if(read(pipe2[0], data, SZ - 1) < 0)
die("read");
printf("%s",data);
fflush(stdout);
}
----------------------------------------------------------------------------------------------
> , or do
> you plan to implement splice too?
>
yes i am plannig to implement splice & vmsplice.
Also i have a plan to look in to adding support for
unimplemented syscalls (got that idea from TODO),if any.
Before that i was trying to make sure that i am going in the
right path.
thanks & regards
vibi sreenivasan
> >
> > Thanks & Regards
> > vibi sreenivasan
> >
> > >Signed-off-by: vibi <vibi_sreenivasan@cms.com>
> > >---
> > >linux-user/syscall.c | 8 ++++++++
> > >1 files changed, 8 insertions(+), 0 deletions(-)
> >
> > >diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> > >index 76f0c95..f2f87c3 100644
> > >--- a/linux-user/syscall.c
> > >+++ b/linux-user/syscall.c
> > >@@ -6580,6 +6580,14 @@ abi_long do_syscall(void *cpu_env, int num,
> > >abi_long arg1,
> > break;
> > >#endif
> >
> > >+#ifdef TARGET_NR_tee
> > >+ case TARGET_NR_tee:
> > >+ {
> > >+ ret = get_errno(tee(arg1,arg2,arg3,arg4));
> > >+ }
> > >+ break;
> > >+#endif
> > >+
> > > default:
> > > unimplemented:
> > > gemu_log("qemu: Unsupported syscall: %d\n", num);
> >
> >
> >
> >
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-19 12:36 ` vibi sreenivasan
@ 2009-05-20 14:24 ` Riku Voipio
2009-05-21 6:41 ` vibi sreenivasan
0 siblings, 1 reply; 9+ messages in thread
From: Riku Voipio @ 2009-05-20 14:24 UTC (permalink / raw)
To: vibi sreenivasan; +Cc: qemu-devel
On Tue, May 19, 2009 at 06:06:14PM +0530, vibi sreenivasan wrote:
> yes i am plannig to implement splice & vmsplice.
> Also i have a plan to look in to adding support for
> unimplemented syscalls (got that idea from TODO),if any.
> Before that i was trying to make sure that i am going in the
> right path.
looks good, worked also fine with tests.
dropped to my linux-user git tree:
https://git.maemo.org/projects/qemu/gitweb?p=qemu;a=shortlog;h=refs/heads/linux-user-for-upstream
> thanks & regards
> vibi sreenivasan
>
> > >
> > > Thanks & Regards
> > > vibi sreenivasan
> > >
> > > >Signed-off-by: vibi <vibi_sreenivasan@cms.com>
> > > >---
> > > >linux-user/syscall.c | 8 ++++++++
> > > >1 files changed, 8 insertions(+), 0 deletions(-)
> > >
> > > >diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> > > >index 76f0c95..f2f87c3 100644
> > > >--- a/linux-user/syscall.c
> > > >+++ b/linux-user/syscall.c
> > > >@@ -6580,6 +6580,14 @@ abi_long do_syscall(void *cpu_env, int num,
> > > >abi_long arg1,
> > > break;
> > > >#endif
> > >
> > > >+#ifdef TARGET_NR_tee
> > > >+ case TARGET_NR_tee:
> > > >+ {
> > > >+ ret = get_errno(tee(arg1,arg2,arg3,arg4));
> > > >+ }
> > > >+ break;
> > > >+#endif
> > > >+
> > > > default:
> > > > unimplemented:
> > > > gemu_log("qemu: Unsupported syscall: %d\n", num);
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-20 14:24 ` Riku Voipio
@ 2009-05-21 6:41 ` vibi sreenivasan
2009-05-21 15:38 ` Arnaud Patard
0 siblings, 1 reply; 9+ messages in thread
From: vibi sreenivasan @ 2009-05-21 6:41 UTC (permalink / raw)
To: Riku Voipio; +Cc: qemu-devel
hi,
>
> looks good, worked also fine with tests.
>
> dropped to my linux-user git tree:
>
> https://git.maemo.org/projects/qemu/gitweb?p=qemu;a=shortlog;h=refs/heads/linux-user-for-upstream
>
is there a separate development tree for linux user?
regards
vibi sreenivasan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-21 6:41 ` vibi sreenivasan
@ 2009-05-21 15:38 ` Arnaud Patard
2009-05-22 5:31 ` vibi sreenivasan
0 siblings, 1 reply; 9+ messages in thread
From: Arnaud Patard @ 2009-05-21 15:38 UTC (permalink / raw)
To: vibi_sreenivasan; +Cc: Riku Voipio, qemu-devel
vibi sreenivasan <vibi_sreenivasan@cms.com> writes:
Hi,
> hi,
>
>>
>> looks good, worked also fine with tests.
>>
>> dropped to my linux-user git tree:
>>
>> https://git.maemo.org/projects/qemu/gitweb?p=qemu;a=shortlog;h=refs/heads/linux-user-for-upstream
>>
>
> is there a separate development tree for linux user?
I would rather say that there's no "maintainer" for the linux-user stuff
(according to the MAINTAINERS) but there are people interested in
getting it working who have a git tree.
Regards,
Arnaud
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH ] linux-user: add tee systemcall support
2009-05-21 15:38 ` Arnaud Patard
@ 2009-05-22 5:31 ` vibi sreenivasan
0 siblings, 0 replies; 9+ messages in thread
From: vibi sreenivasan @ 2009-05-22 5:31 UTC (permalink / raw)
To: Arnaud Patard; +Cc: Riku Voipio, qemu-devel
hi,
> >
> >>
> >> looks good, worked also fine with tests.
> >>
> >> dropped to my linux-user git tree:
> >>
> >> https://git.maemo.org/projects/qemu/gitweb?p=qemu;a=shortlog;h=refs/heads/linux-user-for-upstream
> >>
> >
> > is there a separate development tree for linux user?
>
> I would rather say that there's no "maintainer" for the linux-user stuff
> (according to the MAINTAINERS) but there are people interested in
> getting it working who have a git tree.
>
Thanks for that information.
So on which tree do i have to base my work on.
Thanks & Regards
Vibi Sreenivasan
> Regards,
> Arnaud
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-05-22 5:27 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-16 13:02 [Qemu-devel] [PATCH ] linux-user: add tee systemcall support vibisreenivasan
2009-05-19 8:12 ` vibi sreenivasan
2009-05-19 10:31 ` vibi sreenivasan
2009-05-19 11:36 ` Riku Voipio
2009-05-19 12:36 ` vibi sreenivasan
2009-05-20 14:24 ` Riku Voipio
2009-05-21 6:41 ` vibi sreenivasan
2009-05-21 15:38 ` Arnaud Patard
2009-05-22 5:31 ` vibi sreenivasan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).