<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 7:08 AM, Mihai Prica <span dir="ltr"><<a href="mailto:mihai.prica@intel.com" target="_blank">mihai.prica@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Signed-off-by: Mihai Prica <<a href="mailto:mihai.prica@intel.com">mihai.prica@intel.com</a>><br>

---<br>
 recipes-kernel/linux/linux-yocto/kvm-enable.scc |    4 ++++<br>
 recipes-kernel/linux/linux-yocto/kvm.cfg        |    4 ++++<br>
 recipes-kernel/linux/linux-yocto_3.4.bbappend   |    1 +<br>
 3 files changed, 9 insertions(+)<br>
 create mode 100644 recipes-kernel/linux/linux-yocto/kvm-enable.scc<br>
 create mode 100644 recipes-kernel/linux/linux-yocto/kvm.cfg<br>
<br>
diff --git a/recipes-kernel/linux/linux-yocto/kvm-enable.scc b/recipes-kernel/linux/linux-yocto/kvm-enable.scc<br>
new file mode 100644<br>
index 0000000..0b5f4fc<br>
--- /dev/null<br>
+++ b/recipes-kernel/linux/linux-yocto/kvm-enable.scc<br>
@@ -0,0 +1,4 @@<br>
+define KFEATURE_DESCRIPTION "Enable KVM host support"<br>
+define KFEATURE_COMPATIBILITY board<br>
+<br>
+kconf non-hardware kvm.cfg<br>
diff --git a/recipes-kernel/linux/linux-yocto/kvm.cfg b/recipes-kernel/linux/linux-yocto/kvm.cfg<br>
new file mode 100644<br>
index 0000000..0cfcf58<br>
--- /dev/null<br>
+++ b/recipes-kernel/linux/linux-yocto/kvm.cfg</blockquote><div><br></div><div style>We already have an identical config fragment within the kernel tree itself:</div><div style><br></div><div style><a href="http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.4/tree/meta/cfg/kernel-cache/features/kvm/qemu-kvm-enable.scc?h=meta">http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.4/tree/meta/cfg/kernel-cache/features/kvm/qemu-kvm-enable.scc?h=meta</a><br>
</div><div style><br></div><div style>and</div><div style><br></div><div style><a href="http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.4/tree/meta/cfg/kernel-cache/features/kvm/qemu-kvm.cfg?h=meta">http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.4/tree/meta/cfg/kernel-cache/features/kvm/qemu-kvm.cfg?h=meta</a><br>
</div><div style><br></div><div style>If there's a reason why the in-tree version won't work, we should definitely fix it</div><div style>there first. Having a copy outside of the kernel itself is going to cause us maintenance</div>
<div style>issues down the road.</div><div style><br></div><div style>Since at the moment, these fragments are targeted to linux-yocto, so there's no reason</div><div style>to avoid using the meta data that follows the tree, since we get re-use and the added</div>
<div style>benefit that I won't break any virtualization use cases when working on the kernel :)</div><div style><br></div><div style>Cheers,</div><div style><br></div><div style>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
@@ -0,0 +1,4 @@<br>
+CONFIG_KVM=y<br>
+CONFIG_KVM_INTEL=y<br>
+CONFIG_KVM_AMD=y<br>
+CONFIG_TUN=y<br>
diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend<br>
index 5b163ff..71bead2 100644<br>
--- a/recipes-kernel/linux/linux-yocto_3.4.bbappend<br>
+++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend<br>
@@ -4,5 +4,6 @@ SRC_URI += "file://xt-checksum.scc \<br>
             file://ebtables.scc \<br>
            file://vswitch.scc \<br>
            file://lxc.scc \<br>
+            file://kvm-enable.scc \<br>
            "<br>
<span class=""><font color="#888888"><br>
--<br>
1.7.9.5<br>
<br>
_______________________________________________<br>
meta-virtualization mailing list<br>
<a href="mailto:meta-virtualization@yoctoproject.org">meta-virtualization@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/meta-virtualization" target="_blank">https://lists.yoctoproject.org/listinfo/meta-virtualization</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
</div></div>