-
Notifications
You must be signed in to change notification settings - Fork 179
hotplug_gpu: updated since hotunplug is not supported for NVIDIA GPUs #6613
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughRemoved NVIDIA GPU hot-unplug/replug validation from the hotplug GPU test. The test now performs hotplug, driver validation, and final exclusivity checks only. Documentation/log text updated to reflect lack of hot-unplug support. Unused import removed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant T as Test Runner
participant L as libvirt/Host
participant G as Guest VM
participant D as NVIDIA Driver
rect rgb(235, 245, 255)
note over T,L: Current flow (hotplug-only)
T->>L: Attach GPU (hostdev) to VM
L-->>G: Device appears in guest
T->>G: Validate via nvidia-smi / driver presence
T->>L: Final exclusivity check
end
sequenceDiagram
autonumber
participant T as Test Runner
participant L as libvirt/Host
participant G as Guest VM
participant D as NVIDIA Driver
rect rgb(255, 240, 240)
note over T,L: Removed flow (unplug/replug)
T->>L: Detach GPU (hostdev) from VM
L-->>G: Device removed event
T-x G: (Removed) Validate device absence
T-x L: (Removed) Re-attach GPU and re-validate
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (2)
Comment |
0292073 to
0ada0bf
Compare
Signed-off-by: Julia Graham <[email protected]>
0ada0bf to
835a3e8
Compare
| gpu_test.nvidia_smi_check(vm_session) | ||
|
|
||
| test.log.info("TEST_STEP: Check gpu device exclusivity") | ||
| res = virsh.attach_device(vm.name, gpu_dev.xml, debug=True) |
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.
The device will be hotplugged in Line 29, these lines can be removed I think.
| test.log.info("TEST_STEP: Check gpu device exclusivity") | ||
| res = virsh.attach_device(vm.name, gpu_dev.xml, debug=True) | ||
| libvirt.check_result(res, "in use") | ||
| gpu_test.check_gpu_dev(vm) |
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.
I would suggest keeping this check.
Summary by CodeRabbit
Tests
Documentation