[Bug 219112] Machine will not wake from suspend if KVM VM is running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=219112

--- Comment #6 from Brandon Nielsen (nielsenb@xxxxxxxxxxx) ---
(In reply to Sean Christopherson from comment #5)
> Heh, that was quite the rabbit hole.  Poking around reminded me of a bug
> report from Tejun about KVM worker threads not freezing in certain
> scenarios[*].
> 
> Long explanation very short, can you try setting KVM's "nx_huge_pages"
> module param to "never"?  E.g. via
> 
>   echo "never" | sudo tee /sys/module/kvm/parameters/nx_huge_pages
> 
> Note, the module param is writable even while KVM is loaded, but it needs to
> be set to "never' _before_ launching any VMs, in which case KVM won't spawn
> the associated worker thread.  I.e. the "never" setting only affects worker
> threads for new VMs.
> 
> AFAIK, that's the only problematic flavor of worker thread in KVM.  If that
> makes the suspend/resume problem go away, then odds are very good the
> underlying issue is the same one Tejun reported.
> 
> [*] https://lore.kernel.org/all/ZyAnSAw34jwWicJl@xxxxxxxxxxxxxxx

Interesting, so on my Intel laptop that is set to "Y", on my AMD desktop that
is set to "N", in both cases, setting it to "never" seems to fix suspend. I
can't find the documentation for that particular tunable, but that seems odd.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux