Re: [Qemu-devel] [RFC Patch 1/3] chardev: add new socket fd parameter for unix socket

2016-06-28 Thread Wei Xu
On 2016年06月28日 14:48, Michael S. Tsirkin wrote: On Thu, Jun 23, 2016 at 12:46:46AM +0800, Wei Xu wrote: On 2016年06月22日 23:39, Eric Blake wrote: On 06/22/2016 09:25 AM, Wei Xu wrote: There have been comments on this patch, but i forgot adding this patch to the list, just forward it again.

Re: [Qemu-devel] [RFC Patch 1/3] chardev: add new socket fd parameter for unix socket

2016-06-28 Thread Michael S. Tsirkin
On Thu, Jun 23, 2016 at 12:46:46AM +0800, Wei Xu wrote: > On 2016年06月22日 23:39, Eric Blake wrote: > > On 06/22/2016 09:25 AM, Wei Xu wrote: > > > There have been comments on this patch, but i forgot adding this patch to > > > the list, just forward it again. > > > > > > When manage VMs via

Re: [Qemu-devel] [RFC Patch 1/3] chardev: add new socket fd parameter for unix socket

2016-06-27 Thread Wei Xu
Anyone can help on this, or at least help me with question 2 about how to test it using 'add-fd' command line? Q2. Does anybody know how can i test it? i'm going to fork a process firstly and create a socket like libvirt, then exec qemu and pass it in, just wondering how can i map the socket

Re: [Qemu-devel] [RFC Patch 1/3] chardev: add new socket fd parameter for unix socket

2016-06-22 Thread Wei Xu
On 2016年06月22日 23:39, Eric Blake wrote: On 06/22/2016 09:25 AM, Wei Xu wrote: There have been comments on this patch, but i forgot adding this patch to the list, just forward it again. When manage VMs via libvirt, qemu ofter runs with limited permission, thus qemu can't create a file/socket,

Re: [Qemu-devel] [RFC Patch 1/3] chardev: add new socket fd parameter for unix socket

2016-06-22 Thread Eric Blake
On 06/22/2016 09:25 AM, Wei Xu wrote: > There has been comments on this patch, but i forgot adding this patch to > the list, just forward it again. > > When manage VMs via libvirt, qemu ofter runs with limited permission, > thus qemu can't create a file/socket, this patch is to add a new >

[Qemu-devel] [RFC Patch 1/3] chardev: add new socket fd parameter for unix socket

2016-06-22 Thread Wei Xu
There has been comments on this patch, but i forgot adding this patch to the list, just forward it again. When manage VMs via libvirt, qemu ofter runs with limited permission, thus qemu can't create a file/socket, this patch is to add a new parameter 'sockfd' to accept fd opened and passed in