Re: [Qemu-devel] [PATCH -V3 7/8] hw/9pfs: Add new virtfs option cache=none to skip host page cache

2011-03-15 Thread Aneesh Kumar K. V
On Tue, 15 Mar 2011 11:11:46 +, Stefan Hajnoczi wrote: > On Tue, Mar 15, 2011 at 9:19 AM, Aneesh Kumar K. V > wrote: > > On Mon, 14 Mar 2011 10:20:57 +, Stefan Hajnoczi > > wrote: > >> On Sun, Mar 13, 2011 at 7:04 PM, Aneesh Kumar K. V > >> wrote:

Re: [Qemu-devel] [PATCH -V3 1/8] hw/9pfs: Add V9fsfidmap in preparation for adding fd reclaim

2011-03-15 Thread Aneesh Kumar K. V
On Tue, 15 Mar 2011 10:38:31 +, Stefan Hajnoczi wrote: > On Tue, Mar 15, 2011 at 9:20 AM, Aneesh Kumar K. V > wrote: > > On Sun, 13 Mar 2011 20:53:41 +, Stefan Hajnoczi > > wrote: > >> On Sun, Mar 13, 2011 at 7:06 PM, Aneesh Kumar K. V > >> wrote:

Re: [Qemu-devel] [PATCH -V3 1/8] hw/9pfs: Add V9fsfidmap in preparation for adding fd reclaim

2011-03-15 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 20:53:41 +, Stefan Hajnoczi wrote: > On Sun, Mar 13, 2011 at 7:06 PM, Aneesh Kumar K. V > wrote: > > On Sun, 13 Mar 2011 15:46:29 +, Stefan Hajnoczi > > wrote: > >> On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > >> wrote:

Re: [Qemu-devel] [PATCH -V3 7/8] hw/9pfs: Add new virtfs option cache=none to skip host page cache

2011-03-15 Thread Aneesh Kumar K. V
On Mon, 14 Mar 2011 10:20:57 +, Stefan Hajnoczi wrote: > On Sun, Mar 13, 2011 at 7:04 PM, Aneesh Kumar K. V > wrote: > > On Sun, 13 Mar 2011 17:23:50 +, Stefan Hajnoczi > > wrote: > >> On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > >> wrote: &g

Re: [Qemu-devel] [PATCH -V3 7/8] hw/9pfs: Add new virtfs option cache=none to skip host page cache

2011-03-15 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 20:57:12 +, Stefan Hajnoczi wrote: > On Sun, Mar 13, 2011 at 7:04 PM, Aneesh Kumar K. V > wrote: > > On Sun, 13 Mar 2011 17:23:50 +, Stefan Hajnoczi > > wrote: > >> On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > >> wrote: &g

Re: [Qemu-devel] [PATCH -V3 2/8] hw/9pfs: Add file descriptor reclaim support

2011-03-15 Thread Aneesh Kumar K. V
On Mon, 14 Mar 2011 10:13:59 +, Stefan Hajnoczi wrote: > On Sun, Mar 13, 2011 at 6:57 PM, Aneesh Kumar K. V > wrote: > > On Sun, 13 Mar 2011 16:08:29 +, Stefan Hajnoczi > > wrote: > >> On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > >> wrote: &g

Re: [Qemu-devel] [PATCH -V3 1/8] hw/9pfs: Add V9fsfidmap in preparation for adding fd reclaim

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 15:46:29 +, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > Signed-off-by: Aneesh Kumar K.V > > --- > >  hw/9pfs/virtio-9p.c |  327 > > ++- > >  hw/9pfs/virtio-9p.h |   22 +++- > >  2

Re: [Qemu-devel] [PATCH -V3 7/8] hw/9pfs: Add new virtfs option cache=none to skip host page cache

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 17:23:50 +, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > cache=none implies the file are opened in the host with O_SYNC open flag > > O_SYNC does not bypass the host page cache. It ensures that writes > only complete once data ha

Re: [Qemu-devel] [PATCH -V3 6/8] hw/9pfs: Add directory reclaim support

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 16:42:56 +, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > Signed-off-by: Aneesh Kumar K.V > > --- > >  hw/9pfs/virtio-9p.c |   21 +++-- > >  1 files changed, 19 insertions(+), 2 deletions(-) > > > > diff --git a/hw/

Re: [Qemu-devel] [PATCH -V3 5/8] hw/9pfs: Add open flag to fid

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 16:38:39 +, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > +static int get_dotl_openflags(int oflags) > > +{ > > +    int flags; > > +    /* > > +     * Since we can share the fd between multiple fids, > > +     * open the file in re

Re: [Qemu-devel] [PATCH -V3 4/8] hw/9pfs: Implement syncfs

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 16:24:13 +, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > +static void v9fs_post_do_syncfs(V9fsState *s, V9fsPDU *pdu, int err) > > +{ > > +    if (err == -1) { > > +        err = -errno; > > +    } > > errno may have been clobbere

Re: [Qemu-devel] [PATCH -V3 3/8] hw/9pfs: Use v9fs_do_close instead of close

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 16:10:20 +, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > @@ -1873,7 +1873,7 @@ static void v9fs_post_lcreate(V9fsState *s, > > V9fsLcreateState *vs, int err) > >         vs->fidp->fsmap.fid_type = P9_FID_NONE; > >         err = -e

Re: [Qemu-devel] [PATCH -V3 2/8] hw/9pfs: Add file descriptor reclaim support

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 16:08:29 +, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > @@ -107,7 +108,12 @@ static int v9fs_do_closedir(V9fsState *s, DIR *dir) > > > >  static int v9fs_do_open(V9fsState *s, V9fsString *path, int flags) > >  { > > -    return s-

Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs

2011-03-02 Thread Aneesh Kumar K. V
On Wed, 2 Mar 2011 10:20:41 +, Stefan Hajnoczi wrote: > On Wed, Mar 2, 2011 at 5:05 AM, Aneesh Kumar K. V > wrote: > > On Tue, 1 Mar 2011 20:27:19 +, Stefan Hajnoczi > > wrote: > >> On Tue, Mar 1, 2011 at 6:02 PM, Aneesh Kumar K. V > >> wrote: >

Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs

2011-03-01 Thread Aneesh Kumar K. V
On Tue, 1 Mar 2011 20:27:19 +, Stefan Hajnoczi wrote: > On Tue, Mar 1, 2011 at 6:02 PM, Aneesh Kumar K. V > wrote: > > On Tue, 1 Mar 2011 15:59:19 +, Stefan Hajnoczi > > wrote: > >> >> Please explain the semantics of P9_TSYNCFS.  Won't returning

Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs

2011-03-01 Thread Aneesh Kumar K. V
On Tue, 1 Mar 2011 15:59:19 +, Stefan Hajnoczi wrote: > On Tue, Mar 1, 2011 at 3:02 PM, Aneesh Kumar K. V > wrote: > > On Tue, 1 Mar 2011 10:22:07 +, Stefan Hajnoczi > > wrote: > >> On Tue, Mar 1, 2011 at 6:38 AM, Aneesh Kumar K.V > >> wrote: &g

Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs

2011-03-01 Thread Aneesh Kumar K. V
On Tue, 1 Mar 2011 10:22:07 +, Stefan Hajnoczi wrote: > On Tue, Mar 1, 2011 at 6:38 AM, Aneesh Kumar K.V > wrote: > > Signed-off-by: Aneesh Kumar K.V > > --- > >  hw/9pfs/virtio-9p.c |   31 +++ > >  hw/9pfs/virtio-9p.h |    2 ++ > >  2 files changed, 33 insertions

[Qemu-devel] Re: [PATCH -V2 1/6] hw/9pfs: Add V9fsfidmap in preparation for adding fd reclaim

2011-03-01 Thread Aneesh Kumar K. V
On Tue, 1 Mar 2011 12:08:49 +0530, "Aneesh Kumar K.V" wrote: > diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h > index 2ae4ce7..2f49641 100644 > --- a/hw/9pfs/virtio-9p.h > +++ b/hw/9pfs/virtio-9p.h > @@ -101,7 +101,10 @@ enum p9_proto_version { > #define P9_NOTAG(u16)(~0) > #define

Re: [Qemu-devel] [RFC PATCH -V1 1/4] hw/9pfs: Add file descriptor reclaim support

2011-02-28 Thread Aneesh Kumar K. V
On Mon, 28 Feb 2011 17:44:56 -0800, "Venkateswararao Jujjuri (JV)" wrote: > On 2/5/2011 10:08 AM, Aneesh Kumar K.V wrote: > > This add file descriptor recliam to 9p server > > Please split it into two patches. > > 1. Introducing fsmap. > 2. Introducing the reclaim mechanism. Already did that i

Re: [Qemu-devel] [RFC PATCH -V1 3/4] hw/9pfs: Implement syncfs

2011-02-28 Thread Aneesh Kumar K. V
On Mon, 28 Feb 2011 17:48:34 -0800, "Venkateswararao Jujjuri (JV)" wrote: > On 2/5/2011 10:08 AM, Aneesh Kumar K.V wrote: > > Signed-off-by: Aneesh Kumar K.V > > --- > > hw/9pfs/virtio-9p.c | 31 +++ > > hw/9pfs/virtio-9p.h |2 ++ > > 2 files changed, 33 insert

Re: [Qemu-devel] [RFC PATCH -V1 4/4] hw/9pfs: Add open flag to fid

2011-02-28 Thread Aneesh Kumar K. V
On Mon, 28 Feb 2011 18:00:56 -0800, "Venkateswararao Jujjuri (JV)" wrote: > On 2/5/2011 10:08 AM, Aneesh Kumar K.V wrote: > > We use this flag when we reopen the file. We need > > to track open flag because if the open request have > > flags like O_SYNC, we want to open the file with same flag >

Re: [Qemu-devel] Playing with virtfs.

2011-01-24 Thread Aneesh Kumar K. V
On Sun, 23 Jan 2011 13:33:14 -0600, Rob Landley wrote: > Using yesterday's -git, following the instructions in > http://wiki.qemu.org/Documentation/9psetup (which is missing a kernel > symbol, you need to add CONFIG_VIRTIO_PCI to your kernel too), I managed > to mount a read-only virtfs filesystem

Re: [Qemu-devel] [PATCH 0/2] msi support for virtfs

2010-11-11 Thread Aneesh Kumar K. V
On Thu, 11 Nov 2010 12:59:24 +0100, Gerd Hoffmann wrote: > Hi, > > This tiny patch series adds msi support for virtfs. It's two patches > only because we need a compat property to stay compatible with -stable > and we don't have a pc-0.14 machine type yet, so this is added first. > Sorry for

Re: [Qemu-devel] [PATCH 0/2] msi support for virtfs

2010-11-11 Thread Aneesh Kumar K. V
On Thu, 11 Nov 2010 12:59:24 +0100, Gerd Hoffmann wrote: > Hi, > > This tiny patch series adds msi support for virtfs. It's two patches > only because we need a compat property to stay compatible with -stable > and we don't have a pc-0.14 machine type yet, so this is added first. > Sorry for

Re: [Qemu-devel] virtio-9p is not working

2010-07-22 Thread Aneesh Kumar K. V
On Wed, 21 Jul 2010 17:27:47 +0900, Dallas Lee wrote: > Hi, > > I have trying to use the virtio-9p for my linux in QEMU, but without > success. > > Here is my option for booting my qemu: > i386-softmmu/qemu -kernel bzImage -append "console=ttyS0 > video=uvesafb:ywrap,overlay:rgb16,480x800...@60

Re: [Qemu-devel] Re: [V9fs-developer] [PATCH] virtio-9p: getattr server implementation for 9P2000.L protocol.

2010-07-01 Thread Aneesh Kumar K. V
On Thu, 1 Jul 2010 14:26:13 +0530, Sripathi Kodi wrote: > On Thu, 01 Jul 2010 11:01:15 +0530 > "Aneesh Kumar K. V" wrote: > > > On Fri, 28 May 2010 16:08:43 +0530, Sripathi Kodi > > wrote: > > > From: M. Mohan Kumar > > > > > >

[Qemu-devel] Re: [V9fs-developer] [PATCH] virtio-9p: getattr server implementation for 9P2000.L protocol.

2010-06-30 Thread Aneesh Kumar K. V
On Fri, 28 May 2010 16:08:43 +0530, Sripathi Kodi wrote: > From: M. Mohan Kumar > > SYNOPSIS > > size[4] Tgetattr tag[2] fid[4] > > size[4] Rgetattr tag[2] lstat[n] > >DESCRIPTION > > The getattr transaction inquires about the file identified by fid. > The reply w

Re: [Qemu-devel] Re: [V9fs-developer] [PATCH] virtio-9p: getattr server implementation for 9P2000.L protocol.

2010-06-05 Thread Aneesh Kumar K. V
On Fri, 04 Jun 2010 07:59:42 -0700, "Venkateswararao Jujjuri (JV)" wrote: > Aneesh Kumar K. V wrote: > > On Thu, 3 Jun 2010 18:29:02 +0530, Sripathi Kodi > > wrote: > >> On Wed, 02 Jun 2010 19:49:24 +0530 > >> "Aneesh Kumar K. V" wrote: &g

[Qemu-devel] Re: [V9fs-developer] [PATCH] virtio-9p: getattr server implementation for 9P2000.L protocol.

2010-06-04 Thread Aneesh Kumar K. V
On Thu, 3 Jun 2010 18:29:02 +0530, Sripathi Kodi wrote: > On Wed, 02 Jun 2010 19:49:24 +0530 > "Aneesh Kumar K. V" wrote: > > > On Fri, 28 May 2010 16:08:43 +0530, Sripathi Kodi > > wrote: > > > From: M. Mohan Kumar > > > > > >

[Qemu-devel] Re: [V9fs-developer] [PATCH] virtio-9p: getattr server implementation for 9P2000.L protocol.

2010-06-02 Thread Aneesh Kumar K. V
On Fri, 28 May 2010 16:08:43 +0530, Sripathi Kodi wrote: > From: M. Mohan Kumar > > SYNOPSIS > > size[4] Tgetattr tag[2] fid[4] > > size[4] Rgetattr tag[2] lstat[n] > >DESCRIPTION > > The getattr transaction inquires about the file identified by fid. > The reply w

[Qemu-devel] Re: [V9fs-developer] [PATCH] [virtio-9p] Server side implementation for TLINK

2010-06-02 Thread Aneesh Kumar K. V
On Sun, 30 May 2010 09:40:38 -0700, "Venkateswararao Jujjuri (JV)" wrote: > Create a link. > > SYNOPSIS > > size[4] Tlink tag[2] dfid[4] oldpath[s] newpath[s] > > size[4] Rlink tag[2] > > DESCRIPTION > > Create a link 'newpath' in directory pointed by dfid linking to oldpath. > > Signed-off

[Qemu-devel] Re: [V9fs-developer] qemu:virtio-9p: [RFC] [PATCH 01/02] Send iounit to client for read/write operations

2010-06-02 Thread Aneesh Kumar K. V
On Tue, 1 Jun 2010 19:47:14 +0530, "M. Mohan Kumar" wrote: > Compute iounit based on the host filesystem block size and pass it to > client with open/create response. Also return iounit as statfs's f_bsize > for optimal block size transfers. > > Signed-off-by: M. Mohan Kumar > --- > hw/virtio-

[Qemu-devel] Re: [V9fs-developer] [PATCH] [virtio-9p] Flush the debug message out to the log file.

2010-06-02 Thread Aneesh Kumar K. V
On Tue, 1 Jun 2010 13:23:09 -0700, "Venkateswararao Jujjuri (JV)" wrote: > This patch fluesh the debug messages to the log file at the end of each > debug message. > > Signed-off-by: Venkateswararao Jujjuri > --- > hw/virtio-9p-debug.c |2 ++ > 1 files changed, 2 insertions(+), 0 deletio

Re: [Qemu-devel] [PATCH -v2 02/22] vrtio-9p: Implement P9_TVERSION for 9P

2010-03-29 Thread Aneesh Kumar K. V
On Fri, 26 Mar 2010 11:15:47 -0500, Anthony Liguori wrote: > On 03/16/2010 04:15 AM, Aneesh Kumar K.V wrote: > > From: Anthony Liguori > > > > [ki...@linux.vnet.ibm.com: malloc to qemu_malloc coversion] > > > > Signed-off-by: Anthony Liguori > > Signed-off-by: Aneesh Kumar K.V > > --- > > hw/vi

Re: [Qemu-devel] [PATCH -V2 00/22] virtio-9p: paravirtual file system passthrough

2010-03-23 Thread Aneesh Kumar K. V
On Tue, 23 Mar 2010 20:17:33 -0300, Luiz Capitulino wrote: > On Tue, 16 Mar 2010 14:44:58 +0530 > "Aneesh Kumar K.V" wrote: > > > Hi, > > > > > > This patch series adds a paravirtual file system passthrough mechanism to > > QEMU > > based on the 9P protocol. With the current implementation,

Re: [Qemu-devel] [PATCH 04/17] virtio-9p: Implement P9_TSTAT

2010-03-09 Thread Aneesh Kumar K. V
On Tue, 9 Mar 2010 12:30:08 +, Paul Brook wrote: > > Is there any reason (other than being coding style) in using qemu_free() > > instead of free()? As per qem-malloc.c qemu_free() is nothing but free(). > > The whole point of qemu_{malloc,free} is to isolate code from the system > implemen

[Qemu-devel] Re: [PATCH 02/17] vrtio-9p: Implement P9_TVERSION for 9P

2010-03-04 Thread Aneesh Kumar K. V
On Thu, 4 Mar 2010 11:23:24 +0200, "Michael S. Tsirkin" wrote: > On Wed, Mar 03, 2010 at 01:00:59PM -0600, Anthony Liguori wrote: > > [ki...@linux.vnet.ibm.com: malloc to qemu_malloc coversion] > > > > Signed-off-by: Anthony Liguori > > Signed-off-by: Aneesh Kumar K.V > > --- > > hw/virtio-9p.

Re: [Qemu-devel] [PATCH 04/17] virtio-9p: Implement P9_TSTAT

2010-03-04 Thread Aneesh Kumar K. V
On Wed, 3 Mar 2010 23:35:36 +0300 (MSK), malc wrote: > On Wed, 3 Mar 2010, Anthony Liguori wrote: > > > This get the mount to work on the guest > > > > [ki...@linux.vnet.ibm.com: malloc to qemu_malloc conversion] > > > > Signed-off-by: Anthony Liguori > > Signed-off-by: Gautham R Shenoy > > S