<div dir="ltr"><div>Dear Yocto Developers,</div><div><br></div><div>I&#39;m trying to get KVM added and working on a Yocto kernel I built up for a T4240 RDB (has a PowerPC CPU).  KVM isn&#39;t working and the reason why it isn&#39;t working seems to be I&#39;m missing the necessary kernel modules.  More specifically, I don&#39;t seem to have a kvm.ko file that I can load.  Here&#39;s how I attempted to add KVM to the kernel.</div><div><br></div><div>I went to the SDK install folder and ran &quot;. fsl-setup-env -m t4240rdb-64b&quot; and then &quot;bitbake virtual/kernel -c menuconfig&quot;.  After the GUI comes up, I went to Virtualization -&gt; KVM support for PowerPC E500MC/E5500/E6500 processors and hit &quot;Save&quot; to save the configuration.  I then went and copied the content of the .config file created by this into the kernel configuration file specified by the following path; &quot;build_t4240rdb-64b/virt1.config&quot;.  This path was specified by the variable KERNEL_DEFCONFIG in sources/meta_freescale/conf/machine/t4240rdb-64b.conf.  Here&#39;s what I currently have in the kernel configuration file (i.e. the virt1.config file I mentioned above):</div><div><br></div><div><a href="https://gist.github.com/WayneZhenLi/4172cd4a819b71a11b85fc5aaa57ebd1" target="_blank">https://gist.github.com/WayneZhenLi/4172cd4a819b71a11b85fc5aaa57ebd1</a></div><div><br></div><div>After this, I built the kernel by running &quot;bitbake -c compile -f virtual/kernel&quot; and rebuilt the full linux image.  I re-added everything to the SD card and booted up the T4240 RDB with the newly modified Yocto kernel.  At this point if I run lsmod, only the following two kernel modules show up:</div><div><br>Module                  Size  Used by<br>nfsd                  100940  11<br>exportfs                6723  1 nfsd</div><div><br></div><div>But if I do a 
&quot;find . -name &quot;kvm&quot;&quot; I get the following: <br></div><div><br></div><div>
<div>./usr/src/kernel/Documentation/virtual/kvm<br>./usr/src/kernel/arch/arm/kvm<br>./usr/src/kernel/arch/arm64/kvm<br>./usr/src/kernel/arch/mips/kvm<br>./usr/src/kernel/arch/powerpc/kvm<br>./usr/src/kernel/arch/s390/kvm<br>./usr/src/kernel/arch/tile/kvm<br>./usr/src/kernel/arch/x86/kvm<br>./usr/src/kernel/drivers/s390/kvm<br>./usr/src/kernel/include/config/kvm<br>./usr/src/kernel/include/config/have/kvm<br>./usr/src/kernel/include/kvm<br>./usr/src/kernel/virt/kvm<br>./dev/kvm</div><div>./sys/devices/virtual/misc/kvm<br>./sys/class/misc/kvm<br>./sys/kernel/debug/kvm<br>./sys/module/kvm</div><div><br></div><div>So it does look like kvm-related files were added to the Yocto kernel because of the changes I made to the kernel configuration file.  But there is no kvm.ko (or any .ko file related to kvm) anywhere in the file system.</div><div><br></div><div>Is there something I&#39;m doing wrong here?  Am I missing important lines in my kernel configuration file?  Let me know your thoughts.</div><div><br></div><div>-Thanks!, Wayne Li<br></div>

</div></div>