[Rust-VMM] Crate for vhost-user device backend?

Liu, Jing2 jing2.liu at linux.intel.com
Fri Jan 18 01:47:42 UTC 2019



On 1/18/2019 1:07 AM, Boeuf, Sebastien wrote:
> On Thu, 2019-01-17 at 16:59 +0000, Dr. David Alan Gilbert wrote:
>> * Jiang Liu (liuj97 at gmail.com) wrote:
>>>
>>>
>>>> On Jan 17, 2019, at 11:00 PM, Liu, Jing2 <
>>>> jing2.liu at linux.intel.com> wrote:
>>>>
>>>> Hi Jiang,
>>>>
>>>> On 1/17/2019 7:32 PM, Jiang Liu wrote:
>>>>>> On Jan 17, 2019, at 7:30 PM, Dr. David Alan Gilbert <
>>>>>> dgilbert at redhat.com> wrote:
>>>>>>
>>>>>> * Jiang Liu (liuj97 at gmail.com) wrote:
>>>>>>>
>>>>>>>
>>>>>>>> On Jan 17, 2019, at 6:58 PM, Marc-André Lureau <
>>>>>>>> marcandre.lureau at gmail.com> wrote:
>>>>>>>>
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> On Thu, Jan 17, 2019 at 2:56 PM Jiang Liu <
>>>>>>>> liuj97 at gmail.com <mailto:liuj97 at gmail.com>> wrote:
>>>>>>>>>
>>>>>>>>> We are working on a vhostuser-rs crate, and planned to
>>>>>>>>> posted it for RFC later.
>>>>>>>>
>>>>>>>> Great news! Looking forward for it! Feel free to share
>>>>>>>> WIP if you want help.
>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On Jan 17, 2019, at 6:52 PM, Stefan Hajnoczi <
>>>>>>>>>> stefanha at redhat.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>> Has anyone implemented a vhost-user device backend in
>>>>>>>>>> Rust?
>>>>>>>>>>
>>>>>>>>>> QEMU's libvhost-user and DPDK's librte_vhost are C
>>>>>>>>>> implementations that
>>>>>>>>>> provide a device backend API.  They allow you to
>>>>>>>>>> implement
>>>>>>>>>> vhost-user-net, vhost-user-blk, and vhost-user-scsi
>>>>>>>>>> devices as a
>>>>>>>>>> separate process from the main emulator.
>>>>>>>
>>>>>>> We are working on this direction, but  enhancements to
>>>>>>> firecracker/rust-vmm are need to support
>>>>>>> vhostuser. For example we need to support memfd based
>>>>>>> memory slot management. It’s really
>>>>>>> great if we could cooperate on it.
>>>>>>
>>>>>> Are you working on it for the hypervisor side, or the device
>>>>>> side, or
>>>>>> both?
>>>>>
>>>>> Currently we are focusing on the hypervisor side and vhostuser
>>>>> transport layer. No work on the virtio backend device yet.
>>>>
>>>> What application will be the virtio backend on your scenario?
>>>>
>>>
>>> Hi Jing,
>>> 	Net and blk/scsi backends should be enough for most cases.
>>
>> It would be interesting for us to be able to wire virtio-fs to
>> firecracker, and it would also be interesting to do a Rust filesystem
>> client.
> 
> +1 here! Something that would be very useful to build a rust-vmm
> hypervisor with filesystem sharing support (and that is not 9p
> obviously).
++ too! I seems all the vhost-user device emulation, backend emulation 
and socket channel needs to be implemented. Not a small job I think :-p

Jing

> 
>>
>> Dave
>>
>>>
>>>> Jing
>>>>
>>>>>>
>>>>>> Dave
>>>>>>
>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Stefan
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Rust-vmm mailing list
>>>>>>>>>> Rust-vmm at lists.opendev.org
>>>>>>>>>>
> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Rust-vmm mailing list
>>>>>>>>> Rust-vmm at lists.opendev.org <mailto:
>>>>>>>>> Rust-vmm at lists.opendev.org>
>>>>>>>>>
> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
>>>>>>>>>   <
>>>>>>>>> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> Marc-André Lureau
>>>>>>> _______________________________________________
>>>>>>> Rust-vmm mailing list
>>>>>>> Rust-vmm at lists.opendev.org
>>>>>>> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
>>>>>>
>>>>>> --
>>>>>> Dr. David Alan Gilbert / dgilbert at redhat.com / Manchester, UK
>>>>>
>>>>> _______________________________________________
>>>>> Rust-vmm mailing list
>>>>> Rust-vmm at lists.opendev.org
>>>>> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
>>
>> --
>> Dr. David Alan Gilbert / dgilbert at redhat.com / Manchester, UK
>>
>> _______________________________________________
>> Rust-vmm mailing list
>> Rust-vmm at lists.opendev.org
>> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
> _______________________________________________
> Rust-vmm mailing list
> Rust-vmm at lists.opendev.org
> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
> 



More information about the Rust-vmm mailing list