The error is: panic: Lock (sx) vm mem_segs not locked @ /usr/src/sys/amd64/vmm/vmm.c:1188 I'm on a1f28ec729f7491da8607e8eeaee1b0f547c60d0 I've included a picture of the error.
This seems to be an issue with pci-passthru, a vm with pci-passthru crashes the host, same vm without pci-passthru works
(In reply to mmatalka from comment #0) It doesn't appear the picture got attached. Are either of you able to reproduce on-demand? If so, please provide the steps to do so.
Created attachment 239289 [details] Screenshot of error
(In reply to Robert Wing from comment #2) Whoops, I have uploaded the image. For me it is as simple as compiling the commit I gave and doing service wifibox start
(In reply to mmatalka from comment #4) Alright, thanks for the info. I've proposed a fix at https://reviews.freebsd.org/D37962
With this patch I am able to boot the VM with pci-passthru again, thanks! The machine however freezes the system on reboot now - something I have not seen before, not sure if related
(In reply to bj.rn from comment #6) Also freezes on vm shutdown
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=ccf32a68f821c5c724fb9a5b4b9576925122292f commit ccf32a68f821c5c724fb9a5b4b9576925122292f Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2023-01-20 10:03:59 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2023-01-20 10:03:59 +0000 vmm: take exclusive mem_segs_lock when (un)assigning ppt dev PR: 268744 Reported by: mmatalka@gmail.com Reviewed by: corvink, markj, jhb Fixes: 67b69e76e8ee ("vmm: Use an sx lock to protect the memory map.") Differential Revision: https://reviews.freebsd.org/D37962 sys/amd64/vmm/vmm_dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
This is working for me. Thank you for the fast resolution.
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=eb37d3cc565e278d568b0454fc3b2b9cab4c3518 commit eb37d3cc565e278d568b0454fc3b2b9cab4c3518 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2023-01-20 10:03:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-01-26 22:05:13 +0000 vmm: take exclusive mem_segs_lock when (un)assigning ppt dev PR: 268744 Reported by: mmatalka@gmail.com Reviewed by: corvink, markj, jhb Fixes: 67b69e76e8ee ("vmm: Use an sx lock to protect the memory map.") Differential Revision: https://reviews.freebsd.org/D37962 (cherry picked from commit ccf32a68f821c5c724fb9a5b4b9576925122292f) sys/amd64/vmm/vmm_dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)