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
runtime-rs: ch: Unbreak CH driver #8803
runtime-rs: ch: Unbreak CH driver #8803
Conversation
} | ||
|
||
pub(crate) fn resize_memory(&self, _new_mem_mb: u32) -> Result<(u32, MemoryConfig)> { | ||
todo!() | ||
// No resize currently - see https://github.com/kata-containers/kata-containers/issues/8801 |
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.
@jodh-intel, I think it's worth adding a message here saying that the resize is not currently implemented.
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.
Done. I've also converted the 1st commit to return an error as that doesn't break the default use-case but does provide a GH issue URL too.
2e01ca4
to
5d93a69
Compare
Remove the `todo!()` macro which would cause a runtime crash and replace with a implementation that returns an error as a stop-gap until kata-containers#8800 is implemented. Fixes: kata-containers#8785. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Replace the `todo!()` calls with a minimal NOP implementation to return the CH driver to working order since the `todo!()`'s forcibly crash the driver at runtime. Full implementations for these APIs will be added on issues kata-containers#8800, kata-containers#8801, and kata-containers#8802. Fixes: kata-containers#8784. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
5d93a69
to
29e0de4
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.
lgtm, thanks @jodh-intel!
/test |
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 @jodh-intel
Unfortunately, PR #6876 broke running runtime-rs with Cloud Hypervisor so add minimal implementations of the new APIs to allow CH to be used with runtime-rs.
Full implementations will be added later on issues #8800, #8801, and #8802.