[do not merge] debug libkrun on f42#961
Conversation
Signed-off-by: pengshanyu <yupengshan@hotmail.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds debugging helpers to verify KVM exposure to the qm container and to inspect the seccomp profile for memfd usage when running libkrun tests on Fedora 42. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Summary of ChangesHello @pengshanyu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request serves as a temporary debugging branch for Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The new
test -f /usr/share/qm/seccomp-no-rt.json && ...andverify_kvm_exposed_to_qmcalls are now executed at file load time, which may alter existing callers’ behavior if this script is sourced rather than executed; consider moving these into a guarded main function or behind a debug flag. - In
verify_kvm_exposed_to_qm, you log a FAIL when/dev/kvmis not exposed but still continue execution; if the subsequent steps depend on/dev/kvm, consider returning a non-zero status so callers can abort early when this prerequisite is missing.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The new `test -f /usr/share/qm/seccomp-no-rt.json && ...` and `verify_kvm_exposed_to_qm` calls are now executed at file load time, which may alter existing callers’ behavior if this script is sourced rather than executed; consider moving these into a guarded main function or behind a debug flag.
- In `verify_kvm_exposed_to_qm`, you log a FAIL when `/dev/kvm` is not exposed but still continue execution; if the subsequent steps depend on `/dev/kvm`, consider returning a non-zero status so callers can abort early when this prerequisite is missing.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Code Review
This pull request adds debugging checks to check_libkrun.sh to help diagnose issues on Fedora 42. While these changes are intended for debugging and not for merging, I've provided a suggestion to make the new checks more robust and the script's output clearer. My feedback focuses on using appropriate helper functions for status messages, ensuring the script fails fast when a check fails, and improving code readability by refactoring a complex one-liner into a dedicated function. These improvements should make the script more effective for debugging.
Signed-off-by: pengshanyu <yupengshan@hotmail.com>
Signed-off-by: pengshanyu <yupengshan@hotmail.com>
Signed-off-by: pengshanyu <yupengshan@hotmail.com>
|
Please refer this one |
Do not need to merge, debug libkrun on fedora42
The error I got from local debugging was inconsistent with the one in the pipeline.
Summary by Sourcery
Add additional runtime checks to help debug libkrun behavior in the qm container on Fedora 42.
Enhancements: