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

Raymond Danks ray.danks at se-eng.com
Mon Jan 7 09:26:23 PST 2013


I'm going to show my lack of knowledge in this area, but I know this is 
going to come up when I push a xen.cfg that I apparently never added.

Is it possible to do something along the lines of PACKAGE_CONFIG in the 
linux-yocto.bbappend?  For example, in the libvirt package one can use 
PACKAGE_CONFIG to construct a "minimal" build of libvirt.  What would be 
the method for one to do the same in this package?

Yes, I imagine that worst case there can be a SRC_URI_distro definition 
that includes only the .scc files required for that "minimal" image 
build, but it seems like we want to keep away from that as much as 
possible being that this isn't a distro layer.

Thanks,
Ray

On 01/07/2013 05:08 AM, Mihai Prica 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
> @@ -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 \
>   	    "
>   




More information about the meta-virtualization mailing list