From owner-freebsd-virtualization@freebsd.org Sun Nov 8 14:43:53 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1E0A2463C02 for ; Sun, 8 Nov 2020 14:43:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CTcMF08jkz3msx for ; Sun, 8 Nov 2020 14:43:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 039C4463AAF; Sun, 8 Nov 2020 14:43:53 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0361246377D for ; Sun, 8 Nov 2020 14:43:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CTcMD6cGnz3mfg for ; Sun, 8 Nov 2020 14:43:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D5FCA214E5 for ; Sun, 8 Nov 2020 14:43:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0A8EhqrS003116 for ; Sun, 8 Nov 2020 14:43:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0A8EhqE7003113 for virtualization@FreeBSD.org; Sun, 8 Nov 2020 14:43:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 250802] bhyve exited with status 134 when GPU PCI passthrough Date: Sun, 08 Nov 2020 14:43:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mr.xanto@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Nov 2020 14:43:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250802 --- Comment #34 from mr.xanto@gmail.com --- (In reply to Konstantin Belousov from comment #32) Aplied patches: https://pastebin.com/fAEepFn6 and https://pastebin.com/ARYK653R. Unhandled ps2 keyboard command 0x02 Unhandled ps2 keyboard command 0x02 Thread 11 "vcpu 0" received signal SIGSEGV, Segmentation fault. [Switching to LWP 101448 of process 54659] write_mem (ctx=3D0x800299080, vcpu=3D0, gpa=3D3731705856, wval=3D0, size=3D= 4) at /usr/src/usr.sbin/bhyve/mem.c:287 287 rma.val =3D &wval; (gdb) backtrace #0 write_mem (ctx=3D0x800299080, vcpu=3D0, gpa=3D3731705856, wval=3D0, siz= e=3D4) at /usr/src/usr.sbin/bhyve/mem.c:287 #1 0x000000000023d874 in passthru_write (ctx=3D0x800299080, vcpu=3D0, pi=3D0x800ad4780, baridx=3D1, offset=3D, size=3D4, value=3D0) at /usr/src/usr.sbin/bhyve/pci_passthru.c:930 #2 0x00000000002368ba in pci_emul_mem_handler (ctx=3D0x800299080, vcpu=3D0, dir=3D, addr=3D, size=3D4, val=3D0x7fffdebf61= 40, arg1=3D0x800ad4780, arg2=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:416 #3 0x00000000002285f7 in rw_mem_cb (ctx=3D0x800299080, vcpu=3D0, paddr=3D0, mr=3D0x7fffdebf6000, arg=3D) at /usr/src/usr.sbin/bhyve/mem.= c:267 #4 0x0000000000228494 in access_memory (ctx=3D0x800299080, vcpu=3D0, paddr=3D3731705856, cb=3D0x2285d0 , arg=3D0x7fffdebf6130) at /usr/src/usr.sbin/bhyve/mem.c:215 #5 0x0000000000228638 in write_mem (ctx=3D0x800299080, vcpu=3D0, gpa=3D373= 1705856, wval=3D, size=3D) at /usr/src/usr.sbin/bhyve/mem.c:290 #6 0x000000000023d874 in passthru_write (ctx=3D0x800299080, vcpu=3D0, pi=3D0x800ad4780, baridx=3D1, offset=3D, size=3D4, value=3D0) at /usr/src/usr.sbin/bhyve/pci_passthru.c:930 #7 0x00000000002368ba in pci_emul_mem_handler (ctx=3D0x800299080, vcpu=3D0, dir=3D, addr=3D, size=3D4, val=3D0x7fffdebf61= 40, arg1=3D0x800ad4780, arg2=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:416 #8 0x00000000002285f7 in rw_mem_cb (ctx=3D0x800299080, vcpu=3D0, paddr=3D0, mr=3D0x7fffdebf6000, arg=3D) at /usr/src/usr.sbin/bhyve/mem.= c:267 #9 0x0000000000228494 in access_memory (ctx=3D0x800299080, vcpu=3D0, paddr=3D3731705856, cb=3D0x2285d0 , arg=3D0x7fffdebf6270) at /usr/src/usr.sbin/bhyve/mem.c:215 #10 0x0000000000228638 in write_mem (ctx=3D0x800299080, vcpu=3D0, gpa=3D373= 1705856, wval=3D, size=3D) at /usr/src/usr.sbin/bhyve/mem.c:290 #11 0x000000000023d874 in passthru_write (ctx=3D0x800299080, vcpu=3D0, pi=3D0x800ad4780, baridx=3D1, offset=3D, size=3D4, value=3D0) at /usr/src/usr.sbin/bhyve/pci_passthru.c:930 #12 0x00000000002368ba in pci_emul_mem_handler (ctx=3D0x800299080, vcpu=3D0, dir=3D, addr=3D, size=3D4, val=3D0x7fffdebf61= 40, arg1=3D0x800ad4780, arg2=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:416 and many other frames. bhyvectl --get-all https://pastebin.com/fRmHDX4b --=20 You are receiving this mail because: You are the assignee for the bug.=