From: Ian Jackson Date: Tue, 15 Jul 2008 17:55:44 +0000 (+0100) Subject: Enable PCI passthrough by default. X-Git-Tag: xen-3.3.0-rc1~26 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4cff5e1870b39a4a0a12e99dcb4f900c2992aeb4;p=qemu-xen-4.0-testing.git Enable PCI passthrough by default. Patch from Jean Guyader / Samuel Thibault. Signed-off-by: Jean Guyader Signed-off-by: Ian Jackson --- diff --git a/xen-hooks.mak b/xen-hooks.mak index 4e8b1fa2..af977efe 100644 --- a/xen-hooks.mak +++ b/xen-hooks.mak @@ -39,11 +39,20 @@ OBJS += tpm_tis.o ifdef CONFIG_STUBDOM CONFIG_PASSTHROUGH=1 -OBJS += xenfbfront.o +else + ifeq (,$(wildcard /usr/include/pci)) +$(warning *** pciutils-devl package not found - missing /usr/include/pci) +$(warning *** PCI passthrough capability has been disabled) + else +CONFIG_PASSTHROUGH=1 + endif endif ifdef CONFIG_PASSTHROUGH -OBJS+= pass-through.o +OBJS+= pass-through.o pt-msi.o +LIBS += -lpci +CFLAGS += -DCONFIG_PASSTHROUGH +$(info *** PCI passthrough capability has been enabled ***) endif BAD_OBJS += gdbstub.o acpi.o apic.o