Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vhost-device-rng: add support for standalone daemons #394

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stsquad
Copy link
Collaborator

@stsquad stsquad commented Jul 10, 2023

This is fairly simple for the backend we just need to implement the specs message. The handling of GET/SET_STATUS is done by vhost internals.

Summary of the PR

This demonstrates the changes for enabling standalone at the daemon level.

This is fairly simple for the backend we just need to implement the
specs message. The handling of GET/SET_STATUS is done by vhost
internals.

Signed-off-by: Alex Bennée <[email protected]>
@@ -28,6 +28,7 @@ use vmm_sys_util::eventfd::{EventFd, EFD_NONBLOCK};

const QUEUE_SIZE: usize = 1024;
const NUM_QUEUES: usize = 1;
const VIRTIO_ID_RNG: u32 = 4;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably virtio-bindings should get extended with virtio_ids.h bindings?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this for scsi recently, so I can propose a PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants