Bug 241393

Summary: Suspend resume does not work after using bhyve
Product: Base System Reporter: mmatalka
Component: bhyveAssignee: freebsd-virtualization (Nobody) <virtualization>
Status: Open ---    
Severity: Affects Only Me CC: mmatalka
Priority: --- Keywords: bhyve
Version: CURRENT   
Hardware: amd64   
OS: Any   

Description mmatalka 2019-10-21 12:05:53 UTC
I am still working on making this reproducible, but I have fairly consistently seen on my machine over several builds of CURRENT that suspend and resume work if I have not used bhyve, but if I have, the machine fails to resume and I have to hard-restart.  I am stopping bhyve before suspending.

FreeBSD bsdell 13.0-CURRENT FreeBSD 13.0-CURRENT #35 r353099: Fri Oct  4 12:14:25 CEST 2019     root@bsdell:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

I'm using a Dell XPS 13.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-10-21 12:10:05 UTC
Thank you for your report

Along with steps to reproduce, the following would also be handy:

- /var/run/dmesg.boot (as an attachment)
- pciconf -lv (as an attachment)
- /var/log/messages during suspend/resume cycle (as an attachment)
Comment 2 mmatalka 2019-11-17 13:40:13 UTC
I think believing this was bhyve related was not correct.  Maybe using bhyve makes it more likely to trigger the actual issue but sometimes my machine resumes just fine after running bhyve.  Sometimes it does even if I haven't stopped the VM.  And sometimes it doesn't resume after not running bhyve.  It's pretty hit-or-miss.  I am no sure what the root cause is.