error when build linux kernel with kvm

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

error when build linux kernel with kvm

跳至解决方案
3,220 次查看
stedylan
Contributor II

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?

0 项奖励
回复
1 解答
3,156 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

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. 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
3,204 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

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?

  • What is the BSP version you are using?
  • Are you working with manual build or Yocto build?
  • Are you working with the S32G2 or S32G3?
  • What are the steps you are following to add KVM to your kernel?

Thanks in advance for the information,

Best regards

0 项奖励
回复
3,176 次查看
stedylan
Contributor II
 

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!

标记 (2)
0 项奖励
回复
2,962 次查看
MarvinYane
Contributor I
Hello,

I have the same question with you, it seems the official release of S32G does not support KVM. Are you still working on it? have you solved it?
0 项奖励
回复
2,895 次查看
stedylan
Contributor II

I'm not working with it. It shows kvm initiation failed at kernel starting.

标记 (2)
0 项奖励
回复
3,157 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

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. 

0 项奖励
回复