diff options
| author | Chris Patterson <cjp256@gmail.com> | 2013-10-09 22:22:49 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-10 23:32:26 -0400 |
| commit | b531d002621336f533c23dfd3f8665fb17861c55 (patch) | |
| tree | cb993e344156d4eaf1e1426508b6df3fd82489dc /recipes-kernel | |
| parent | 06bb47de22dc957c903b12faeeafe2e08bc4d626 (diff) | |
| download | meta-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.cfg | 13 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto/xen.scc | 4 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_3.10.bbappend | 2 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_3.4.bbappend | 2 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_3.8.bbappend | 2 |
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 | |||
| 15 | CONFIG_XEN_PVHVM=y | 15 | CONFIG_XEN_PVHVM=y |
| 16 | CONFIG_XEN_MAX_DOMAIN_MEMORY=500 | 16 | CONFIG_XEN_MAX_DOMAIN_MEMORY=500 |
| 17 | CONFIG_XEN_SAVE_RESTORE=y | 17 | CONFIG_XEN_SAVE_RESTORE=y |
| 18 | CONFIG_KVM_GUEST=y | ||
| 19 | CONFIG_PARAVIRT_CLOCK=y | 18 | CONFIG_PARAVIRT_CLOCK=y |
| 20 | CONFIG_HIBERNATE_CALLBACKS=y | 19 | CONFIG_HIBERNATE_CALLBACKS=y |
| 21 | CONFIG_PCI_XEN=y | 20 | CONFIG_PCI_XEN=y |
| 22 | CONFIG_XEN_PCIDEV_FRONTEND=m | 21 | CONFIG_XEN_PCIDEV_FRONTEND=y |
| 23 | CONFIG_SYS_HYPERVISOR=y | 22 | CONFIG_SYS_HYPERVISOR=y |
| 24 | CONFIG_XEN_BLKDEV_FRONTEND=m | 23 | CONFIG_XEN_BLKDEV_FRONTEND=y |
| 25 | CONFIG_XEN_BLKDEV_BACKEND=m | 24 | CONFIG_XEN_BLKDEV_BACKEND=m |
| 26 | CONFIG_XEN_NETDEV_FRONTEND=m | 25 | CONFIG_XEN_NETDEV_FRONTEND=y |
| 27 | CONFIG_XEN_NETDEV_BACKEND=m | 26 | CONFIG_XEN_NETDEV_BACKEND=m |
| 28 | CONFIG_INPUT_MISC=y | 27 | CONFIG_INPUT_MISC=y |
| 29 | CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y | 28 | CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y |
| @@ -39,9 +38,9 @@ CONFIG_FB_DEFERRED_IO=y | |||
| 39 | CONFIG_XEN_FBDEV_FRONTEND=y | 38 | CONFIG_XEN_FBDEV_FRONTEND=y |
| 40 | CONFIG_XEN_BALLOON=y | 39 | CONFIG_XEN_BALLOON=y |
| 41 | CONFIG_XEN_SCRUB_PAGES=y | 40 | CONFIG_XEN_SCRUB_PAGES=y |
| 42 | CONFIG_XEN_DEV_EVTCHN=m | 41 | CONFIG_XEN_DEV_EVTCHN=y |
| 43 | CONFIG_XEN_BACKEND=y | 42 | CONFIG_XEN_BACKEND=y |
| 44 | CONFIG_XENFS=m | 43 | CONFIG_XENFS=y |
| 45 | CONFIG_XEN_COMPAT_XENFS=y | 44 | CONFIG_XEN_COMPAT_XENFS=y |
| 46 | CONFIG_XEN_SYS_HYPERVISOR=y | 45 | CONFIG_XEN_SYS_HYPERVISOR=y |
| 47 | CONFIG_XEN_XENBUS_FRONTEND=y | 46 | CONFIG_XEN_XENBUS_FRONTEND=y |
| @@ -49,7 +48,7 @@ CONFIG_XEN_GNTDEV=m | |||
| 49 | CONFIG_XEN_GRANT_DEV_ALLOC=m | 48 | CONFIG_XEN_GRANT_DEV_ALLOC=m |
| 50 | CONFIG_SWIOTLB_XEN=y | 49 | CONFIG_SWIOTLB_XEN=y |
| 51 | CONFIG_XEN_PCIDEV_BACKEND=m | 50 | CONFIG_XEN_PCIDEV_BACKEND=m |
| 52 | CONFIG_XEN_PRIVCMD=m | 51 | CONFIG_XEN_PRIVCMD=y |
| 53 | CONFIG_XEN_ACPI_PROCESSOR=m | 52 | CONFIG_XEN_ACPI_PROCESSOR=m |
| 54 | CONFIG_XEN_MCE_LOG=y | 53 | CONFIG_XEN_MCE_LOG=y |
| 55 | CONFIG_XEN_HAVE_PVMMU=y | 54 | CONFIG_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 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Xen Dom0 Support" | 1 | define KFEATURE_DESCRIPTION "Xen Kernel Support" |
| 2 | define KFEATURE_COMPATIBILITY board | 2 | define KFEATURE_COMPATIBILITY arch |
| 3 | 3 | ||
| 4 | kconf non-hardware xen.cfg | 4 | kconf 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 |
| 16 | KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" | 16 | KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" |
| 17 | 17 | ||
| 18 | # xen dom0 kernel support | 18 | # xen kernel support |
| 19 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" | 19 | SRC_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" | |||
| 12 | module_autoload_kvm-amd = "kvm-amd" | 12 | module_autoload_kvm-amd = "kvm-amd" |
| 13 | module_autoload_kvm-intel = "kvm-intel" | 13 | module_autoload_kvm-intel = "kvm-intel" |
| 14 | 14 | ||
| 15 | # xen dom0 kernel support | 15 | # xen kernel support |
| 16 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" | 16 | SRC_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 |
| 16 | KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" | 16 | KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" |
| 17 | 17 | ||
| 18 | # xen dom0 kernel support | 18 | # xen kernel support |
| 19 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" | 19 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" |
