From owner-freebsd-current@FreeBSD.ORG Fri Oct 11 03:39:04 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B287C78C for ; Fri, 11 Oct 2013 03:39:04 +0000 (UTC) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (mail.scsiguy.com [70.89.174.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 734CE2281 for ; Fri, 11 Oct 2013 03:39:04 +0000 (UTC) Received: from [192.168.0.99] (macbook.scsiguy.com [192.168.0.99]) (authenticated bits=0) by aslan.scsiguy.com (8.14.7/8.14.5) with ESMTP id r9B3d3XD024512 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 10 Oct 2013 21:39:03 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Content-Type: multipart/mixed; boundary="Apple-Mail=_C263034D-6B06-4F6C-95A3-5C9D2C086C9F" Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: undefined reference to xenpci_alloc_space From: "Justin T. Gibbs" In-Reply-To: <5256F4BA.80209@gmx.net> Date: Thu, 10 Oct 2013 21:39:03 -0600 Message-Id: <3E0575B1-D8F9-49B6-85C1-6594F03A26B2@scsiguy.com> References: <5256F4BA.80209@gmx.net> To: Michael Schmiedgen X-Mailer: Apple Mail (2.1510) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (aslan.scsiguy.com [70.89.174.89]); Thu, 10 Oct 2013 21:39:03 -0600 (MDT) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2013 03:39:04 -0000 --Apple-Mail=_C263034D-6B06-4F6C-95A3-5C9D2C086C9F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Oct 10, 2013, at 12:40 PM, Michael Schmiedgen = wrote: > Hi List, >=20 > is it intended that kernel does not build if >=20 > device xenpci >=20 > is omitted in the kernel config? I get the following error: >=20 > linking kernel > gnttab.o: In function `gnttab_resume': > /usr/src/sys/xen/gnttab.c:(.text+0xe47): undefined reference to = `xenpci_alloc_space' >=20 > Thanks, > Michael > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org" >=20 XENHVM depends on xenpci, so you must remove XENHVM if you remove xenpci. Perhaps we should make a change similar to the attached patch in order to make this clear? -- Justin --Apple-Mail=_C263034D-6B06-4F6C-95A3-5C9D2C086C9F Content-Disposition: attachment; filename=GENERIC.diff Content-Type: application/octet-stream; name="GENERIC.diff" Content-Transfer-Encoding: 7bit Index: amd64/conf/GENERIC =================================================================== --- amd64/conf/GENERIC (revision 256304) +++ amd64/conf/GENERIC (working copy) @@ -72,7 +72,6 @@ options KDTRACE_FRAME # Ensure frames are compil options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel -options XENHVM # Include Xen support # Debugging support. Always need this: options KDB # Enable kernel debugger support. @@ -345,8 +344,10 @@ device virtio_balloon # VirtIO Memory Balloon dev # HyperV drivers device hyperv # HyperV drivers -# Xen support -device xenpci # Generic Xen bus +# Xen HVM Guest Optimizations +# NOTE: XENHVM depends on xenpci. They must be added or removed together. +options XENHVM # Xen HVM kernel infrastructure +device xenpci # Xen HVM Hypervisor services driver # VMware support device vmx # VMware VMXNET3 Ethernet Index: i386/conf/GENERIC =================================================================== --- i386/conf/GENERIC (revision 256304) +++ i386/conf/GENERIC (working copy) @@ -72,7 +72,6 @@ options MAC # TrustedBSD MAC Framework options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel -options XENHVM # Include Xen support # Debugging support. Always need this: options KDB # Enable kernel debugger support. @@ -356,8 +355,10 @@ device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device -# Xen support -device xenpci # Generic Xen bus +# Xen HVM Guest Optimizations +# NOTE: XENHVM depends on xenpci. They must be added or removed together. +options XENHVM # Xen HVM kernel infrastructure +device xenpci # Xen HVM Hypervisor services driver # VMware support device vmx # VMware VMXNET3 Ethernet --Apple-Mail=_C263034D-6B06-4F6C-95A3-5C9D2C086C9F--