Statistics
| Branch: | Revision:

root / hw / 9pfs / virtio-9p.h @ a8aec295

History | View | Annotate | Download (8.9 kB)

# Date Author Comment
e7303c43 04/23/2013 06:37 pm KONRAD Frederic

virtio-9p: add the virtio-9p device.

Create virtio-9p-device which extends virtio-device, so it can be connected on
virtio-bus.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

234a336f 04/23/2013 06:37 pm KONRAD Frederic

virtio-9p-pci: switch to the new API.

Here the virtio-9p-pci is modified for the new API. The device
virtio-9p-pci extends virtio-pci. It creates and connects a
virtio-9p-device during the init. The properties are not changed.

Signed-off-by: KONRAD Frederic <>...

13daf6ca 04/23/2013 06:37 pm KONRAD Frederic

virtio-9p: cleanup: QOM casts.

As the virtio-9p-pci is switched to the new API, we can use QOM casts.

Signed-off-by: KONRAD Frederic <>
Message-id:
Signed-off-by: Anthony Liguori <>

0d09e41a 04/08/2013 07:13 pm Paolo Bonzini

hw: move headers to include/

Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches....

60653b28 03/01/2013 02:57 pm Paolo Bonzini

virtio-9p: remove PCI dependencies from hw/9pfs/

Also move the 9p.h file to 9pfs/virtio-9p-device.h, for consistency
with the corresponding .c file.

Signed-off-by: Paolo Bonzini <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

10925bf0 01/04/2012 04:21 pm M. Mohan Kumar

hw/9pfs: Move pdu_marshal/unmarshal code to a seperate file

Move p9 marshaling/unmarshaling code to a separate file so that
proxy filesytem driver can use these calls. Also made marshaling
code generic to accept "struct iovec" instead of V9fsPDU.

Signed-off-by: M. Mohan Kumar <>...

2f008a8c 12/21/2011 09:07 am Aneesh Kumar K.V

hw/9pfs: Use the correct signed type for different variables

Signed-off-by: Aneesh Kumar K.V <>

e9a0152b 12/04/2011 07:05 pm Aneesh Kumar K.V

hw/9pfs: use migration blockers to prevent live migration when virtfs export path is mounted

Now when you try to migrate with VirtFS export path mounted, you get a proper QMP error:

(qemu) migrate tcp:localhost:4444
Migration is disabled when VirtFS export path '/tmp/' is mounted in the guest using mount_tag 'v_tmp'...

9db221ae 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Add synthetic file system support using 9p

This patch create a synthetic file system with mount tag
v_synth when -virtfs_synth command line option is specified
in qemu. The synthetic file system can be mounted in guest
using 9p using the below command line...

cc720ddb 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Abstract open state of fid to V9fsFidOpenState

To implement synthetic file system in Qemu we may not really
require file descriptor and Dir *. Make generic code use
V9fsFidOpenState instead.

Signed-off-by: Aneesh Kumar K.V <>

9844081b 10/15/2011 01:00 pm M. Mohan Kumar

hw/9pfs: Add open flag mapping

Some of the flags are OS/arch dependent we need to use
9P defined value on wire,

Based on the original patch from Venkateswararao Jujjuri <>

Signed-off-by: M. Mohan Kumar <>
Signed-off-by: Aneesh Kumar K.V <>

c98f1d4a 10/15/2011 01:00 pm Aneesh Kumar K.V

hw/9pfs: Use export_flag for indicating whether fs driver use path names.

This allows us to remove another member from the struct

Signed-off-by: Aneesh Kumar K.V <>

ea60f315 10/15/2011 01:00 pm M. Mohan Kumar

virtio-9p: Use 9P specific Lock constants

Use 9P specific lock constants instead of arch specific lock constants.

Signed-off-by: M. Mohan Kumar <>
Signed-off-by: Aneesh Kumar K.V <>

70c18fc0 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Make v9fs_string* functions non-static

We will use them later in other files

Signed-off-by: Aneesh Kumar K.V <>

02cb7f3a 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Use read-write lock for protecting fid path.

On rename we take the write lock and this ensure path
doesn't change as we operate on them.

Signed-off-by: Aneesh Kumar K.V <>

2289be19 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Move fid pathname tracking to seperate data type.

This enables us to add handles to track fids later. The
V9fsPath added is similar to V9fsString except that the
size include the NULL byte also.

Signed-off-by: Aneesh Kumar K.V <>

532decb7 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Add fs driver specific details to fscontext

Add a new context flag PATHNAME_FSCONTEXT and indicate whether
the fs driver track fid using path names. Also add a private
pointer that help us to track fs driver specific values in there

Signed-off-by: Aneesh Kumar K.V <>

bccacf6c 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Implement TFLUSH operation

Signed-off-by: Aneesh Kumar K.V <>

7834cf77 09/09/2011 12:37 pm Aneesh Kumar K.V

hw/9pfs: add 9P2000.L unlinkat operation

unlinkat - Remove a directory entry

size4 Tunlinkat tag2 dirfid4 name[s] flag4
size4 Runlinkat tag2

older Tremove have the below request format

size4 Tremove tag2 fid4

The remove message is used to remove a directory entry either file or directory...

89bf6593 09/09/2011 12:16 pm Aneesh Kumar K.V

hw/9pfs: add 9P2000.L renameat operation

rename - change name of file or directory

size4 Trenameat tag2 olddirfid4 oldname[s] newdirfid4 newname[s]
size4 Rrenameat tag2

older Trename have the below request format

size4 Trename tag2 fid4 newdirfid4 name[s]...

63236c15 09/08/2011 04:52 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream-3' into staging

541dc0d4 09/03/2011 01:45 pm Stefan Weil

Use new macro QEMU_PACKED for packed structures

Most changes were made using these commands:

git grep -la '__attribute__((packed))'|xargs perl -pi -e 's/__attribute__\(\(packed\)\)/QEMU_PACKED/'
git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/'...

84dfb926 08/25/2011 05:46 pm Aneesh Kumar K.V

hw/9pfs: Add reference counting for fid

Signed-off-by: Aneesh Kumar K.V <>

7a462745 08/25/2011 05:46 pm Aneesh Kumar K.V

hw/9pfs: Add file descriptor reclaim support

[M. Mohan Kumar <> removed some unused variables]

Signed-off-by: Aneesh Kumar K.V <>

b81d685e 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_wstat to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

3fa2a8d1 08/22/2011 07:14 am Venkateswararao Jujjuri

hw/9pfs: Update v9fs_symlink to use coroutines

Signed-off-by: Venkateswararao Jujjuri <>
Signed-off-by: Aneesh Kumar K.V <>

baaa86d9 08/22/2011 07:14 am Venkateswararao Jujjuri

hw/9pfs: Update v9fs_create to use coroutines

Signed-off-by: Venkateswararao Jujjuri <>
Signed-off-by: Aneesh Kumar K.V <>

3cc19c0c 08/22/2011 06:53 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_walk to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

36f8981f 08/22/2011 06:51 am Venkateswararao Jujjuri

hw/9pfs: Update v9fs_lcreate to use coroutines

Signed-off-by: Venkateswararao Jujjuri <>
Signed-off-by: Aneesh Kumar K.V <>

e4e414a4 08/22/2011 06:48 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_getlock to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

0c27bf2a 08/22/2011 06:44 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_lock to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

930b1e17 08/08/2011 09:21 pm Aneesh Kumar K.V

hw/9pfs: Update vfs_rename to use coroutines

I guess TRENAME 9p operation needs an update. The 9p op should
more similar renameat. Otherwise anything other than path cannot track
the fid.

Signed-off-by: Aneesh Kumar K.V <>

ae1ef571 08/08/2011 09:20 pm Venkateswararao Jujjuri

hw/9pfs: Update v9fs_remove to use coroutines

Signed-off-by: Venkateswararao Jujjuri <>
Signed-off-by: Aneesh Kumar K.V <>

88a4763e 08/08/2011 09:12 pm Aneesh Kumar K.V

hw/9pfs: Update v9fs_statfs to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

8db21ce7 08/08/2011 09:12 pm Aneesh Kumar K.V

hw/9pfs: Update v9fs_getattr to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

65c05f9a 08/08/2011 09:12 pm Aneesh Kumar K.V

hw/9pfs: Update v9fs_setattr to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

f10ff58d 08/08/2011 09:12 pm Aneesh Kumar K.V

hw/9pfs: Update v9fs_xattrcreate to use coroutines

Signed-off-by: Aneesh Kumar K.V <>

7a5ca31e 08/08/2011 09:09 pm Venkateswararao Jujjuri

hw/9pfs: Update v9fs_readlink to use coroutine

Signed-off-by: Venkateswararao Jujjuri <>
Signed-off-by: Aneesh Kumar K.V <>

ff06030f 08/08/2011 10:35 am Venkateswararao Jujjuri (JV)

[virtio-9p] Change all pdu handlers to coroutines.

This patch changes the top level handlers to coroutines and sets the base.
It will be followed up with series of patches to convert all filesystem
calls to threaded coroutines pushing all blocking clals in VirtFS out...

faa44e3d 06/01/2011 08:25 pm Venkateswararao Jujjuri (JV)

[virtio-9p] Make rpath thread safe

Current rpath inline function is heavily used in all system calls.
This function has a static buffer making it a non-thread safe function.
This patch introduces new thread-safe routine and makes use of it.

Signed-off-by: Venkateswararao Jujjuri "<>

f4f61d27 06/01/2011 08:24 pm Aneesh Kumar K.V

virtio-9p: Move device specific code to virtio-9p-device

Signed-off-by: Aneesh Kumar K.V <>
Signed-off-by: Venkateswararao Jujjuri (JV) <>

4f8dee2d 04/27/2011 06:27 pm Harsh Prateek Bora

v9fs_walk: As per 9p2000 RFC, MAXWELEM >= nwnames >= 0.

The nwnames field in TWALK message is assumed to be >=0 and <= MAXWELEM
which is defined as macro P9_MAXWELEM (16) in virtio-9p.h as per 9p2000
RFC. Appropriate changes are required in V9fsWalkState and v9fs_walk....

353ac78d 04/27/2011 06:24 pm Aneesh Kumar K.V

virtio-9p: move 9p files around

Now that we start adding more files related to 9pfs
it make sense to move them to a separate directory

Signed-off-by: Aneesh Kumar K.V <>
Signed-off-by: Venkateswararao Jujjuri <>