Date: Thu, 10 Oct 2013 21:39:03 -0600 From: "Justin T. Gibbs" <gibbs@scsiguy.com> To: Michael Schmiedgen <schmiedgen@gmx.net> Cc: freebsd-current@freebsd.org Subject: Re: undefined reference to xenpci_alloc_space Message-ID: <3E0575B1-D8F9-49B6-85C1-6594F03A26B2@scsiguy.com> In-Reply-To: <5256F4BA.80209@gmx.net> References: <5256F4BA.80209@gmx.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Oct 10, 2013, at 12:40 PM, Michael Schmiedgen <schmiedgen@gmx.net> wrote: > Hi List, > > is it intended that kernel does not build if > > device xenpci > > is omitted in the kernel config? I get the following error: > > linking kernel > gnttab.o: In function `gnttab_resume': > /usr/src/sys/xen/gnttab.c:(.text+0xe47): undefined reference to `xenpci_alloc_space' > > 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" > 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 [-- Attachment #2 --] 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 Ethernethelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E0575B1-D8F9-49B6-85C1-6594F03A26B2>
