-
Notifications
You must be signed in to change notification settings - Fork 74
Update vhost-device-console backend & move it in main workspace #727
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
Update vhost-device-console backend & move it in main workspace #727
Conversation
Cool, thanks for that!
All these steps in one commit? This list should immediately make it clear that we need at least 3/4 separate commits. Please let's try to have commits as small as possible, also to make it easier for reviewers. |
9bf3173 to
a35f354
Compare
Thanks for the comment! I did split it into three difference commits, I believe that should be ok. |
stefano-garzarella
left a comment
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.
Thanks for the comment! I did split it into three difference commits, I believe that should be ok.
@TimosAmpel thanks for that!
We need to adjust coverage value on both main work space and staging workspace to make CI happy.
Also I suggest better commit title/description, here some suggestions:
- patch 1
vhost-device-console: use worker's epoll for input events
Eliminate the use of select and 'nix' package. This is done by
registering the input events (stdin or tcplistener) onto the main
worker's epoll.
- patch 2
vhost-device-console: improve tests
[add a little descriptions of the new tests]
- patch 3
vhost-device-console: promote to main workspace
The current implementation seems ready to be promoted to the
main workspace since the device supports .... [add what we support, and what is still missing]
c684280 to
23268c9
Compare
|
Hello @stefano-garzarella, thanks for your comments and sorry for my delayed answer. Since in the last commit vhost-device-console was move to Let me know if you have more comments regarding those updates. |
stefano-garzarella
left a comment
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.
@TimosAmpel great job with the coverage!
I tested it and I did a quick review. Just 1 comment, more curiosity, but in general LGTM, we can eventually improve the code later, but the main features are there.
Thanks for your work!
|
@TimosAmpel I just noticed that |
Thanks a lot for the review too! |
95edaa0 to
b35037b
Compare
The Cargo.lock files for both main and staging have been updated in 3rd patch (also the coverage under staging needed a bit of tuning, I see the CI is satisfied now) |
stefano-garzarella
left a comment
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.
|
Just as a reminder, when we merge this we need to do the following steps:
|
Very nice! Thanks for the review @stefano-garzarella, we'll do as soon as this is merged |
|
@stefano-garzarella btw all of us are at an employee meeting this week, we might have time from Saturday onwards. |
@epilys thanks for the update! Take your time, we don't need to rush ;-) |
stsquad
left a comment
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.
Looks good from here too.
Thanks for your feedback @stsquad. |
Eliminate the use of select and 'nix' package. This is done by registering the input events (stdin or tcplistener) onto the main worker's epoll. Signed-off-by: Timos Ampelikiotis <[email protected]>
Add tests for the new input events and increase overall test coverage. Signed-off-by: Timos Ampelikiotis <[email protected]>
The current implementation seems ready to be promoted to the main workspace since the device supports test coverage have been increased and the basic functionality is implemented. Cargo.lock files both in main and staging workspaces are updated. Support for VIRTIO_CONSOLE_F_SIZE and VIRTIO_CONSOLE_F_EMERG_WRITE is still missing. Signed-off-by: Timos Ampelikiotis <[email protected]>
b35037b to
76053f1
Compare
Hello @garzarella and @epilys, |
|
@TimosAmpel certainly, the usual workflow is to make an issue and a maintainer will assign themselves to make the release. I will make an issue myself in a moment |
Thanks @epilys, I will do so the next time :) |
Summary of the PR
This PR updates the current implementation of vhost-device-console and addresses
the comments noted at the PR #717.
Specifically,
Requirements
git commit -s), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafecode is properly documented.