Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emanuellima1
Copy link
Contributor

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

@emanuellima1
Copy link
Contributor Author

@pmores @gkurz @beraldoleal please review this PR

Copy link
Member

@beraldoleal beraldoleal left a 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>
@pmores
Copy link
Contributor

pmores commented May 17, 2024

It doesn't seem to run when I test it: qemu-system-x86_64: Could not open '/dev/urandom ': No such file or directory


object_params.push("rng-random".to_owned());
object_params.push(format!("id={}", self.id));
object_params.push(format!("filename={} ", self.filename));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
object_params.push(format!("filename={} ", self.filename));
object_params.push(format!("filename={}", self.filename));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/medium Average sized task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants