-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add support for vhost device input v1 #561
Add support for vhost device input v1 #561
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some early feedback :). Nothing extraordinary...
ea09275
to
6d8fc1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments, mostly on Error handling. But I think overall it looks fairly good already :).
|
||
for handle in handles { | ||
handle.join().map_err(|_| Error::FailedJoiningThreads)??; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, when reconsidering the suggestion to use a thread::scope was not super great here... You would still need to manually .join() in order to report the error properly. That said, I am a bit confused about the error that you ran into...
But lets just keep the code as you had it initially. We probably need some helper to terminate threads as soon any thread fails... But that is out of scope for this PR of course.
2848be7
to
6d6390c
Compare
6d6390c
to
50a6d17
Compare
https://github.com/rust-vmm/vm-memory/pull/274/files will hopefully allow us to get rid of Default trait impl in the future. |
50a6d17
to
3d2d27d
Compare
This patch is to add support for vhost input device emulation. The code skeleton heavily reuses vhost-device-i2c and vhost-device-rng, including sharing the same license, and how to create the multi-thread mode and daemon for backend virtual device. It gives detailed usage for enabling virtual input device for guest in the README.md. Signed-off-by: Leo Yan <[email protected]>
This patch adds test cases for verification vhost input backend. Signed-off-by: Leo Yan <[email protected]>
Head branch was pushed to by a user without write access
3d2d27d
to
c271be6
Compare
Summary of the PR
This patch set is to add vhost backend for emulation input device.
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commitmessage has max 60 characters for the summary and max 75 characters for each
description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.