Re: [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces

2011-02-09 Thread Daniel P. Berrange
On Tue, Feb 08, 2011 at 05:47:42PM +0530, M. Mohan Kumar wrote: > Hi, > > Is it okay to fork the chroot process in the fsdev parameter parsing time? > Can > we ask other initialization routines to not create threads till chroot > process > is forked? > > Following code snippet forks the chroo

Re: [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces

2011-02-08 Thread M. Mohan Kumar
Hi, Is it okay to fork the chroot process in the fsdev parameter parsing time? Can we ask other initialization routines to not create threads till chroot process is forked? Following code snippet forks the chroot process during fsdev parameter parsing to avoid the problems associated with fork

Re: [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces

2011-02-01 Thread Stefan Hajnoczi
On Tue, Feb 1, 2011 at 10:32 AM, Daniel P. Berrange wrote: > There is a subtle problem with using fork() in a multi-threaded > program that I was recently made aware of in libvirt. In short > if you have a multi-threaded program that calls fork(), then > the child process must only use POSIX funct

Re: [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces

2011-02-01 Thread Daniel P. Berrange
On Tue, Feb 01, 2011 at 10:55:39AM +0530, M. Mohan Kumar wrote: > Implement chroot server side interfaces like sending the file > descriptor to qemu process, reading the object request from socket etc. > Also add chroot main function and other helper routines. > > Signed-off-by: M. Mohan Kumar >

[Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces

2011-01-31 Thread M. Mohan Kumar
Implement chroot server side interfaces like sending the file descriptor to qemu process, reading the object request from socket etc. Also add chroot main function and other helper routines. Signed-off-by: M. Mohan Kumar --- Makefile.objs |1 + hw/9pfs/virtio-9p-chroot.c | 212