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

Merged
merged 1 commit into from
May 30, 2024

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.

@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

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>
@gkurz
Copy link
Member

gkurz commented May 29, 2024

/test

Copy link
Member

@gkurz gkurz left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @emanuellima1 !

Copy link
Contributor

@pmores pmores left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @emanuellima1 !

@gkurz gkurz merged commit b3cb19b into kata-containers:main May 30, 2024
292 of 303 checks passed
@emanuellima1 emanuellima1 deleted the rng-impl branch May 30, 2024 11:48
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