Hello Community,
I want to build linux kernel with kvm feature, but I met some problems: implicit declaration of function '__tlbi_ipas2e1is', and also '__tlbi_vmalls12e1is' and '__tlbi_alle1is'. How can I fix this problem?
Solved! Go to Solution.
Hello @stedylan,
There is no current support from NXP to use KVM in the S32G3, I'm sorry for the inconveniences. In theory the A53 cores could support KVM (as mentioned in this article https://lwn.net/Articles/557132/) but the implementation should be on your side.
What I can recommend is to try using the ubuntu build, you follow the steps in section 3.1.3 BSP Ubuntu Build of the user manual [Linux BSP 40.0 User Manual for S32G3 platforms], you might be able to enable KVM more easily in that configuration.
If the KVM is not specifically required I can recommend also traying Linux containers, you can learn more abut them in section 24 Virtualization of the same document. And the Xen Hypervisor you have already mentioned.
Again, I apologize for the inconveniences.
Let me know if this information was useful.
Hello @stedylan ,
Checking the latest BSP user manual (BSP41) I don't see anything relevant related to KVM, can you provide more details about your setup?
Thanks in advance for the information,
Best regards
Hello alejandro_e:
Thank you for your reply. Last I was using bsp 38, and I update yocto version to BSP40, and find this patch https://lists.yoctoproject.org/g/linux-yocto/message/14190 , finally build successfully.
But I met another problem when init kvm driver: kvm [1]: HYP mode not available.
I'm using S32G399. I read the manual, it doesn't show any information about kvm but xen.
Does S32G399 not support kvm? If support, how can I fix this problem.
And the manual only shows xen not kvm, why not using kvm instead xen?
Thanks!
Hello @stedylan,
There is no current support from NXP to use KVM in the S32G3, I'm sorry for the inconveniences. In theory the A53 cores could support KVM (as mentioned in this article https://lwn.net/Articles/557132/) but the implementation should be on your side.
What I can recommend is to try using the ubuntu build, you follow the steps in section 3.1.3 BSP Ubuntu Build of the user manual [Linux BSP 40.0 User Manual for S32G3 platforms], you might be able to enable KVM more easily in that configuration.
If the KVM is not specifically required I can recommend also traying Linux containers, you can learn more abut them in section 24 Virtualization of the same document. And the Xen Hypervisor you have already mentioned.
Again, I apologize for the inconveniences.
Let me know if this information was useful.