error when build linux kernel with kvm

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error when build linux kernel with kvm

Jump to solution
3,209 Views
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 Kudos
Reply
1 Solution
3,145 Views
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. 

View solution in original post

0 Kudos
Reply
5 Replies
3,193 Views
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 Kudos
Reply
3,165 Views
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!

Tags (2)
0 Kudos
Reply
2,951 Views
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 Kudos
Reply
2,884 Views
stedylan
Contributor II

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

Tags (2)
0 Kudos
Reply
3,146 Views
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 Kudos
Reply