[meta-virtualization] [RFC 2/3] xen: Split Xen PCI kernel config into dom0 / guest VM.

Philip Tricca flihp at twobit.us
Tue Feb 11 18:45:06 PST 2014


Dom0 kernel builds the PCI backend drive in directly and omits the
frontend driver (what would be its backend?). The guest kernel builds
the frontend in and the backend gets built as a module.

Signed-off-by: Philip Tricca <flihp at twobit.us>

diff --git a/recipes-kernel/linux/linux-yocto/xen-common.cfg b/recipes-kernel/linux/linux-yocto/xen-common.cfg
index 4e796b9..56ab040 100644
--- a/recipes-kernel/linux/linux-yocto/xen-common.cfg
+++ b/recipes-kernel/linux/linux-yocto/xen-common.cfg
@@ -17,8 +17,6 @@ CONFIG_XEN_MAX_DOMAIN_MEMORY=500
 CONFIG_XEN_SAVE_RESTORE=y
 CONFIG_PARAVIRT_CLOCK=y
 CONFIG_HIBERNATE_CALLBACKS=y
-CONFIG_PCI_XEN=y
-CONFIG_XEN_PCIDEV_FRONTEND=y
 CONFIG_SYS_HYPERVISOR=y
 CONFIG_XEN_BLKDEV_FRONTEND=y
 CONFIG_XEN_BLKDEV_BACKEND=m
@@ -47,7 +45,6 @@ CONFIG_XEN_XENBUS_FRONTEND=y
 CONFIG_XEN_GNTDEV=m
 CONFIG_XEN_GRANT_DEV_ALLOC=m
 CONFIG_SWIOTLB_XEN=y
-CONFIG_XEN_PCIDEV_BACKEND=m
 CONFIG_XEN_PRIVCMD=y
 CONFIG_XEN_ACPI_PROCESSOR=m
 CONFIG_XEN_MCE_LOG=y
diff --git a/recipes-kernel/linux/linux-yocto/xen-dom0.cfg b/recipes-kernel/linux/linux-yocto/xen-dom0.cfg
index e69de29..422b769 100644
--- a/recipes-kernel/linux/linux-yocto/xen-dom0.cfg
+++ b/recipes-kernel/linux/linux-yocto/xen-dom0.cfg
@@ -0,0 +1,2 @@
+CONFIG_XEN_PCIDEV_BACKEND=y
+CONFIG_XEN_PCIDEV_FRONTEND=n
diff --git a/recipes-kernel/linux/linux-yocto/xen-guest.cfg b/recipes-kernel/linux/linux-yocto/xen-guest.cfg
index e69de29..edf1748 100644
--- a/recipes-kernel/linux/linux-yocto/xen-guest.cfg
+++ b/recipes-kernel/linux/linux-yocto/xen-guest.cfg
@@ -0,0 +1,2 @@
+CONFIG_XEN_PCIDEV_BACKEND=m
+CONFIG_XEN_PCIDEV_FRONTEND=y
-- 
1.7.10.4



More information about the meta-virtualization mailing list