Commit 28a6bc3
Rafael Garcia
fix(devices): prevent false positive warnings for instances without GPU devices
detectSuspiciousVMMProcesses was using ListAllInstanceDevices to build the
set of known running instances, but that method only returns instances with
devices attached. This caused legitimate cloud-hypervisor processes for
instances without GPU passthrough to be incorrectly flagged as 'untracked'
with misleading advice to run gpu-reset.sh.
Fix: Call IsInstanceRunning directly for each discovered process instead of
pre-building a map from ListAllInstanceDevices. This correctly identifies
all running instances regardless of device attachment.1 parent 712e328 commit 28a6bc3
1 file changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 672 | | |
685 | 673 | | |
686 | 674 | | |
| |||
697 | 685 | | |
698 | 686 | | |
699 | 687 | | |
700 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
701 | 692 | | |
702 | | - | |
| 693 | + | |
703 | 694 | | |
704 | 695 | | |
705 | 696 | | |
706 | 697 | | |
707 | 698 | | |
708 | 699 | | |
709 | 700 | | |
710 | | - | |
| 701 | + | |
711 | 702 | | |
712 | 703 | | |
713 | 704 | | |
| |||
0 commit comments