summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorChris Patterson <cjp256@gmail.com>2013-10-09 22:22:49 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-10-10 23:32:26 -0400
commitb531d002621336f533c23dfd3f8665fb17861c55 (patch)
treecb993e344156d4eaf1e1426508b6df3fd82489dc /recipes-kernel
parent06bb47de22dc957c903b12faeeafe2e08bc4d626 (diff)
downloadmeta-virtualization-b531d002621336f533c23dfd3f8665fb17861c55.tar.gz
linux-yocto/xen: update fragment to support both dom0 and typical xen guests.
Updated linux kernel fragment to match defaults as defined in the 3.10 kernel's Kconfig files. If defaults were not specified, modules were were used unless required by another built-in option. As such, The core frontend drivers are included by default and the backend drivers are built as modules. This allows privileged, PV, HVM, and PVHVM guests to work properly without additional kernel configuration or modules required in initramfs (from a Xen support perspective). This also removes CONFIG_KVM_GUEST which was erroneously included previously. Signed-off-by: Chris Patterson <cjp256@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-yocto/xen.cfg13
-rw-r--r--recipes-kernel/linux/linux-yocto/xen.scc4
-rw-r--r--recipes-kernel/linux/linux-yocto_3.10.bbappend2
-rw-r--r--recipes-kernel/linux/linux-yocto_3.4.bbappend2
-rw-r--r--recipes-kernel/linux/linux-yocto_3.8.bbappend2
5 files changed, 11 insertions, 12 deletions
diff --git a/recipes-kernel/linux/linux-yocto/xen.cfg b/recipes-kernel/linux/linux-yocto/xen.cfg
index e7d774e8..4e796b95 100644
--- a/recipes-kernel/linux/linux-yocto/xen.cfg
+++ b/recipes-kernel/linux/linux-yocto/xen.cfg
@@ -15,15 +15,14 @@ CONFIG_XEN_PRIVILEGED_GUEST=y
15CONFIG_XEN_PVHVM=y 15CONFIG_XEN_PVHVM=y
16CONFIG_XEN_MAX_DOMAIN_MEMORY=500 16CONFIG_XEN_MAX_DOMAIN_MEMORY=500
17CONFIG_XEN_SAVE_RESTORE=y 17CONFIG_XEN_SAVE_RESTORE=y
18CONFIG_KVM_GUEST=y
19CONFIG_PARAVIRT_CLOCK=y 18CONFIG_PARAVIRT_CLOCK=y
20CONFIG_HIBERNATE_CALLBACKS=y 19CONFIG_HIBERNATE_CALLBACKS=y
21CONFIG_PCI_XEN=y 20CONFIG_PCI_XEN=y
22CONFIG_XEN_PCIDEV_FRONTEND=m 21CONFIG_XEN_PCIDEV_FRONTEND=y
23CONFIG_SYS_HYPERVISOR=y 22CONFIG_SYS_HYPERVISOR=y
24CONFIG_XEN_BLKDEV_FRONTEND=m 23CONFIG_XEN_BLKDEV_FRONTEND=y
25CONFIG_XEN_BLKDEV_BACKEND=m 24CONFIG_XEN_BLKDEV_BACKEND=m
26CONFIG_XEN_NETDEV_FRONTEND=m 25CONFIG_XEN_NETDEV_FRONTEND=y
27CONFIG_XEN_NETDEV_BACKEND=m 26CONFIG_XEN_NETDEV_BACKEND=m
28CONFIG_INPUT_MISC=y 27CONFIG_INPUT_MISC=y
29CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y 28CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
@@ -39,9 +38,9 @@ CONFIG_FB_DEFERRED_IO=y
39CONFIG_XEN_FBDEV_FRONTEND=y 38CONFIG_XEN_FBDEV_FRONTEND=y
40CONFIG_XEN_BALLOON=y 39CONFIG_XEN_BALLOON=y
41CONFIG_XEN_SCRUB_PAGES=y 40CONFIG_XEN_SCRUB_PAGES=y
42CONFIG_XEN_DEV_EVTCHN=m 41CONFIG_XEN_DEV_EVTCHN=y
43CONFIG_XEN_BACKEND=y 42CONFIG_XEN_BACKEND=y
44CONFIG_XENFS=m 43CONFIG_XENFS=y
45CONFIG_XEN_COMPAT_XENFS=y 44CONFIG_XEN_COMPAT_XENFS=y
46CONFIG_XEN_SYS_HYPERVISOR=y 45CONFIG_XEN_SYS_HYPERVISOR=y
47CONFIG_XEN_XENBUS_FRONTEND=y 46CONFIG_XEN_XENBUS_FRONTEND=y
@@ -49,7 +48,7 @@ CONFIG_XEN_GNTDEV=m
49CONFIG_XEN_GRANT_DEV_ALLOC=m 48CONFIG_XEN_GRANT_DEV_ALLOC=m
50CONFIG_SWIOTLB_XEN=y 49CONFIG_SWIOTLB_XEN=y
51CONFIG_XEN_PCIDEV_BACKEND=m 50CONFIG_XEN_PCIDEV_BACKEND=m
52CONFIG_XEN_PRIVCMD=m 51CONFIG_XEN_PRIVCMD=y
53CONFIG_XEN_ACPI_PROCESSOR=m 52CONFIG_XEN_ACPI_PROCESSOR=m
54CONFIG_XEN_MCE_LOG=y 53CONFIG_XEN_MCE_LOG=y
55CONFIG_XEN_HAVE_PVMMU=y 54CONFIG_XEN_HAVE_PVMMU=y
diff --git a/recipes-kernel/linux/linux-yocto/xen.scc b/recipes-kernel/linux/linux-yocto/xen.scc
index 6c68bda7..b588e5df 100644
--- a/recipes-kernel/linux/linux-yocto/xen.scc
+++ b/recipes-kernel/linux/linux-yocto/xen.scc
@@ -1,4 +1,4 @@
1define KFEATURE_DESCRIPTION "Xen Dom0 Support" 1define KFEATURE_DESCRIPTION "Xen Kernel Support"
2define KFEATURE_COMPATIBILITY board 2define KFEATURE_COMPATIBILITY arch
3 3
4kconf non-hardware xen.cfg 4kconf non-hardware xen.cfg
diff --git a/recipes-kernel/linux/linux-yocto_3.10.bbappend b/recipes-kernel/linux/linux-yocto_3.10.bbappend
index cc7fd98b..c029c05e 100644
--- a/recipes-kernel/linux/linux-yocto_3.10.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.10.bbappend
@@ -15,5 +15,5 @@ module_autoload_kvm-intel = "kvm-intel"
15# aufs kernel support required for xen-image-minimal 15# aufs kernel support required for xen-image-minimal
16KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" 16KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
17 17
18# xen dom0 kernel support 18# xen kernel support
19SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" 19SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend
index 448d57f7..bf84725a 100644
--- a/recipes-kernel/linux/linux-yocto_3.4.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend
@@ -12,5 +12,5 @@ module_autoload_kvm = "kvm"
12module_autoload_kvm-amd = "kvm-amd" 12module_autoload_kvm-amd = "kvm-amd"
13module_autoload_kvm-intel = "kvm-intel" 13module_autoload_kvm-intel = "kvm-intel"
14 14
15# xen dom0 kernel support 15# xen kernel support
16SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" 16SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
diff --git a/recipes-kernel/linux/linux-yocto_3.8.bbappend b/recipes-kernel/linux/linux-yocto_3.8.bbappend
index cc7fd98b..c029c05e 100644
--- a/recipes-kernel/linux/linux-yocto_3.8.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.8.bbappend
@@ -15,5 +15,5 @@ module_autoload_kvm-intel = "kvm-intel"
15# aufs kernel support required for xen-image-minimal 15# aufs kernel support required for xen-image-minimal
16KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" 16KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
17 17
18# xen dom0 kernel support 18# xen kernel support
19SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" 19SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"