-
Notifications
You must be signed in to change notification settings - Fork 992
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: Add RNG to QEMU cmdline #9639
base: main
Are you sure you want to change the base?
Conversation
@pmores @gkurz @beraldoleal please review this PR |
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.
Hi @emanuellima1, just a small note for the future PRs:
It's best to avoid creating new PRs to replace old ones, as we might "lose" some comments and suggestions from previous reviewers. Pushing to the same PR helps track the history and progress of changes more effectively and centralizes discussions.
If a new PR is really necessary, it's helpful to tag the original reviewers to maintain continuity and ensure everyone's input was considered.
Other than @gkurz's comments, looks good to me, thanks.
It creates this line, as the Golang runtime does: -object rng-random,id=rng0,filename=/dev/urandom -device virtio-rng-pci,rng=rng0 Signed-off-by: Emanuel Lima <emlima@redhat.com>
It doesn't seem to run when I test it: |
|
||
object_params.push("rng-random".to_owned()); | ||
object_params.push(format!("id={}", self.id)); | ||
object_params.push(format!("filename={} ", self.filename)); |
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.
object_params.push(format!("filename={} ", self.filename)); | |
object_params.push(format!("filename={}", self.filename)); |
It creates this line, as the Golang runtime does:
-object rng-random,id=rng0,filename=/dev/urandom -device virtio-rng-pci,rng=rng0,max-bytes=1024,period=1000