From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 15 12:38:51 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80B5F106564A; Wed, 15 Apr 2009 12:38:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 518DD8FC08; Wed, 15 Apr 2009 12:38:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id E459646B95; Wed, 15 Apr 2009 08:38:50 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id D0DDD8A04F; Wed, 15 Apr 2009 08:38:49 -0400 (EDT) From: John Baldwin To: Sergey Babkin Date: Wed, 15 Apr 2009 08:34:35 -0400 User-Agent: KMail/1.9.7 References: <1366225354.253456.1238948619308.JavaMail.root@vms124.mailsrvcs.net> <200904131256.44692.jhb@freebsd.org> <49E52E7B.34792757@verizon.net> In-Reply-To: <49E52E7B.34792757@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904150834.35880.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 15 Apr 2009 08:38:49 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=4.2 tests=RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org, Ivan Voras Subject: Re: Patch for MS Hyper V (virtualization) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 12:38:51 -0000 On Tuesday 14 April 2009 8:46:51 pm Sergey Babkin wrote: > John Baldwin wrote: > > Your printf() probably isn't in the right place. pci_add_map() uses > > PCIB_READ_CONFIG() directly and doesn't use pci_read_config(), so if your > > printf is in pci_read_config_method() in pci.c it won't see them. Try > > hooking the cfg operations in sys/amd64/pci/pci_cfgreg.c instead. > > The printf was in pci_write_config(). Yes, that won't catch the PCIB_WRITE_CONFIG()'s in pci_add_map(). -- John Baldwin