From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 17 05:14:44 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 564FCDB0 for ; Mon, 17 Nov 2014 05:14:44 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 19A9ACBF for ; Mon, 17 Nov 2014 05:14:43 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 531241279B; Mon, 17 Nov 2014 15:14:41 +1000 (EST) Received: from Peters-MacBook-Pro.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZU11703 (AUTH peterg@ptree32.com.au); Mon, 17 Nov 2014 15:14:39 +1000 Message-ID: <5469843D.4010004@freebsd.org> Date: Sun, 16 Nov 2014 21:14:37 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: John-Mark Gurney Subject: Re: bhyve remote kgdb does not support kernel modules... References: <20141115093713.GY24601@funkthat.com> <20141115094340.GZ24601@funkthat.com> In-Reply-To: <20141115094340.GZ24601@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org 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: Mon, 17 Nov 2014 05:14:44 -0000 Hi John-Mark, >> 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? To add to Julian's reply, there's also some info in the thread starting at http://docs.FreeBSD.org/cgi/mid.cgi?5363F399.40709 > 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 You'd have to write some code to glue the MI gdb/gdb_main.c packet handler to the routines in ddb/db_watch.c. (I'm sure this exists somewhere out there - certainly did at my previous workplace). If you want to take that on, we can do the other piece which is to context-switch the debug registers on guest entry/exit. later, Peter.