-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add traditional mem balloon device #6
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for your contribution :) please resolve the conflicts by rebasing your branch |
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 a lot for the PR! I have two suggestions regarding docs/comments, though.
Feel free to squash any changes. :)
#[derive(VolatileFieldAccess)] | ||
#[repr(C)] | ||
pub struct Config { | ||
#[access(ReadOnly)] // TODO: Not actually specified by the spec? |
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.
I think we can safely remove the TODO, right? Every time this field is mentioned in the spec, the driver reads it. It would also not make sense to make this driver-writable in the grand scheme of things.
#[access(ReadOnly)] // TODO: Not actually specified by the spec? | |
#[access(ReadOnly)] |
/// Deflate of the balloon is always? permitted on guest out of memory condition. | ||
/// | ||
/// TODO: Spec is a bit confusing on this feature, see <https://github.com/oasis-tcs/virtio-spec/issues/228> |
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.
Let's stick to the spec first and add notes afterwards:
/// Deflate of the balloon is always? permitted on guest out of memory condition. | |
/// | |
/// TODO: Spec is a bit confusing on this feature, see <https://github.com/oasis-tcs/virtio-spec/issues/228> | |
/// Deflate balloon on guest out of memory condition. | |
/// | |
/// <div class="warning"> | |
/// | |
/// The specification is a bit confusing on this feature, see [oasis-tcs/virtio-spec#228](https://github.com/oasis-tcs/virtio-spec/issues/228). | |
/// | |
/// </div> |
Add the Traditional Memory Balloon Device based on VIRTIO v1.2