From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 15 09:43:42 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6AE7C02 for ; Sat, 15 Nov 2014 09:43:42 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 78B95100 for ; Sat, 15 Nov 2014 09:43:41 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id sAF9hfNx073648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 15 Nov 2014 01:43:41 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id sAF9heoB073647 for freebsd-virtualization@freebsd.org; Sat, 15 Nov 2014 01:43:40 -0800 (PST) (envelope-from jmg) Date: Sat, 15 Nov 2014 01:43:40 -0800 From: John-Mark Gurney To: freebsd-virtualization@freebsd.org Subject: Re: bhyve remote kgdb does not support kernel modules... Message-ID: <20141115094340.GZ24601@funkthat.com> References: <20141115093713.GY24601@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141115093713.GY24601@funkthat.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Sat, 15 Nov 2014 01:43:41 -0800 (PST) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 15 Nov 2014 09:43:42 -0000 John-Mark Gurney wrote this message on Sat, Nov 15, 2014 at 01:37 -0800: > So, I got remote kgdb working w/ bhyve, but kernel modules aren't > loaded... > > I'm getting: > (kgdb) bt > #0 kdb_enter (why=0xffffffff8102ee88 "panic", msg=) > at ../../../kern/subr_kdb.c:444 > #1 0xffffffff8094aa79 in vpanic (fmt=, > ap=) at ../../../kern/kern_shutdown.c:739 > #2 0xffffffff8094a8c9 in kassert_panic (fmt=) > at ../../../kern/kern_shutdown.c:634 > #3 0xffffffff8093583c in __mtx_lock_flags (c=0xfffff80002919720, opts=0, > file=0xffffffff81c3f0fa "/usr/home/jmg/freebsd.p4/opencrypto/sys/modules/aesni/../../crypto/aesni/aesni.c", line=442) at ../../../kern/kern_mutex.c:217 > #4 0xffffffff81c3e3a7 in ?? () > #5 0xfffff80002a474a0 in ?? () > #6 0xfffff80002919720 in ?? () > > Where those should be in the aesni.ko module... If I run kgdb on a > local machine, it properly finds the kernel modules... Any hits on > how to fix this? Also, any plans to support the Z2 write-watchpoint packet? (kgdb) watch *(char *)0xfffff80002919708 Hardware watchpoint 1: *(char *) 18446735277659625224 (kgdb) c Continuing. Can't clear hardware watchpoints without the 'Z2' (write-watchpoint) packet -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."