[meta-virtualization] [PATCH 1/2] linux-yocto: added kernel configuration for KVM

Bruce Ashfield bruce.ashfield at gmail.com
Mon Jan 7 05:42:57 PST 2013


On Mon, Jan 7, 2013 at 7:08 AM, Mihai Prica <mihai.prica at intel.com> wrote:

> Signed-off-by: Mihai Prica <mihai.prica at intel.com>
> ---
>  recipes-kernel/linux/linux-yocto/kvm-enable.scc |    4 ++++
>  recipes-kernel/linux/linux-yocto/kvm.cfg        |    4 ++++
>  recipes-kernel/linux/linux-yocto_3.4.bbappend   |    1 +
>  3 files changed, 9 insertions(+)
>  create mode 100644 recipes-kernel/linux/linux-yocto/kvm-enable.scc
>  create mode 100644 recipes-kernel/linux/linux-yocto/kvm.cfg
>
> diff --git a/recipes-kernel/linux/linux-yocto/kvm-enable.scc
> b/recipes-kernel/linux/linux-yocto/kvm-enable.scc
> new file mode 100644
> index 0000000..0b5f4fc
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-yocto/kvm-enable.scc
> @@ -0,0 +1,4 @@
> +define KFEATURE_DESCRIPTION "Enable KVM host support"
> +define KFEATURE_COMPATIBILITY board
> +
> +kconf non-hardware kvm.cfg
> diff --git a/recipes-kernel/linux/linux-yocto/kvm.cfg
> b/recipes-kernel/linux/linux-yocto/kvm.cfg
> new file mode 100644
> index 0000000..0cfcf58
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-yocto/kvm.cfg


We already have an identical config fragment within the kernel tree itself:

http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.4/tree/meta/cfg/kernel-cache/features/kvm/qemu-kvm-enable.scc?h=meta

and

http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.4/tree/meta/cfg/kernel-cache/features/kvm/qemu-kvm.cfg?h=meta

If there's a reason why the in-tree version won't work, we should
definitely fix it
there first. Having a copy outside of the kernel itself is going to cause
us maintenance
issues down the road.

Since at the moment, these fragments are targeted to linux-yocto, so
there's no reason
to avoid using the meta data that follows the tree, since we get re-use and
the added
benefit that I won't break any virtualization use cases when working on the
kernel :)

Cheers,

Bruce


>

@@ -0,0 +1,4 @@
> +CONFIG_KVM=y
> +CONFIG_KVM_INTEL=y
> +CONFIG_KVM_AMD=y
> +CONFIG_TUN=y
> diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend
> b/recipes-kernel/linux/linux-yocto_3.4.bbappend
> index 5b163ff..71bead2 100644
> --- a/recipes-kernel/linux/linux-yocto_3.4.bbappend
> +++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend
> @@ -4,5 +4,6 @@ SRC_URI += "file://xt-checksum.scc \
>              file://ebtables.scc \
>             file://vswitch.scc \
>             file://lxc.scc \
> +            file://kvm-enable.scc \
>             "
>
> --
> 1.7.9.5
>
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20130107/421c40f3/attachment.html>


More information about the meta-virtualization mailing list