Skip to content
This repository was archived by the owner on Oct 24, 2022. It is now read-only.
This repository was archived by the owner on Oct 24, 2022. It is now read-only.

Questions on usage, perhaps to expand the documentation? #3

@stsquad

Description

@stsquad

Hi,

A lot of this is almost certainly down to my lack of experience with Rust but it can't hurt to improve the documentation on usage.

Can vhost-user-backend be used in a single-threaded daemon?

As I understand it the Send/Sync traits are all about how to deal with concurrency for the struct. Does this mean you have to spawn additional threads for each request being serviced or can you have a simple single-threaded daemon?

Which method do incoming vhost-user messages arrive at?

I thought it was handle_event but the comments imply this is for specific FD's and not the standard vhost-user FD. A rough outline of the main message loop would be helpful here.

Can you point to any canonical use cases of vhost-user-backend?

I'm familiar with the virtiofsd daemon but it has a lot going on. A list of other known users of the crate would help in seeing example use and how to plumb things together.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions