error when build linux kernel with kvm

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

error when build linux kernel with kvm

ソリューションへジャンプ
3,210件の閲覧回数
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,146件の閲覧回数
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,194件の閲覧回数
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,166件の閲覧回数
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,952件の閲覧回数
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,885件の閲覧回数
stedylan
Contributor II

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

タグ(2)
0 件の賞賛
返信
3,147件の閲覧回数
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 件の賞賛
返信