[Bug 203643] [bhyve] NetBSD causes bhyve to exit on AMD processors

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 13 Mar 2025 02:55:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203643

--- Comment #10 from NAKAJI Hiroyuki <nakaji@kankyo-u.ac.jp> ---
I modified sys/amd64/vmm/amd/svm.c, but got same "Abort trap".

--- a/sys/amd64/vmm/amd/svm.c
+++ b/sys/amd64/vmm/amd/svm.c
@@ -142,8 +142,8 @@ flush_by_asid(void)
 static __inline int
 decode_assist(void)
 {
-
-       return (svm_feature & AMD_CPUID_SVM_DECODE_ASSIST);
+       return 1;
+       /* return (svm_feature & AMD_CPUID_SVM_DECODE_ASSIST); */
 }

 static void

The command lines:
# make -C /usr/src/sys/modules/vmm obj depend all install
# kldunload vmm
# kldload vmm
# vm install -f netbsd-10 NetBSD-10.99.12-amd64-dvd.iso
# cat netbsd-10/bhyve.log
vm exit[0]
        reason          SVM
        rip             0xffffffff80234d9f
        inst_length     2
        exitcode        0x7b
        exitinfo1       0x3f8021c
        exitinfo2       0xffffffff80234da1

I'll try graphics="yes" later. Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.