Problem using Topaz and QEMU/KVM together

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

Problem using Topaz and QEMU/KVM together

跳至解决方案
1,965 次查看
jrodrigo
Contributor II

Hello,

For the t1040RDB we are using Topaz to create two partitions in the system (1 and 3 cores respectively). The idea is to load a fsl-image-virt image in one of them (the one with 3 cores) in order to be able to virtualize with QEMU/KVM. We have managed to set up everything and have the Linux image running, but when we try to telnet to a VM started with the command:

qemu-system-ppc64 -enable-kvm -m 512 -mem-path /var/lib/hugetlbfs/pagesize-4MB -nographic -M ppce500 -kernel /boot/uImage -initrd /images/fsl-image-minimal-t1040rdb.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200" -serial tcp::4444,server,telnet

We get the following error:

QEMU 1.7.0 monitor - type 'help' for more information

(qemu) QEMU waiting for connection on: telnet:0.0.0.0:4444,server

e500_mmu_host_init: need to know host tlb size

kvm_init_vcpu failed: Operation not permitted

So, first of all, is it possible to have Topaz and QEMU/KVM working together? If so, how can we solve this issue? Then, even though we could manage to run VMs in this scenario, would their performance be greatly restricted due to the overhead introduced by both hypervisors? Are there any other considerations to take into account regarding performance (such as the possibility to use Direct I/O, etc.)?

Thanks,

Juan

标记 (1)
0 项奖励
回复
1 解答
1,710 次查看
scottwood
NXP Employee
NXP Employee

Neither Topaz, nor KVM on booke, support nested virtualization.  The hardware wasn't designed for it.

在原帖中查看解决方案

6 回复数
1,711 次查看
scottwood
NXP Employee
NXP Employee

Neither Topaz, nor KVM on booke, support nested virtualization.  The hardware wasn't designed for it.

1,710 次查看
jrodrigo
Contributor II

Hi Scott,

Is it possible to use LXC together with Topaz?

Is there any hardware that support nested virtualization? For example the serie T4XXX?

Thanks,

Juan.

0 项奖励
回复
1,710 次查看
scottwood
NXP Employee
NXP Employee

Yes, you can use LXC as that does not require hardware virtualization support.

No, t4 (e6500) is also booke.  None of the QorIQ PPC chips support nested virtualization.

1,710 次查看
jrodrigo
Contributor II

Thanks Scott.

Juan.

0 项奖励
回复
1,710 次查看
jrodrigo
Contributor II

Hi Scott,

Does it make sense to use Topaz and LXCs?

Thanks,

Juan.

0 项奖励
回复
1,710 次查看
scottwood
NXP Employee
NXP Employee

If the combination does something useful for you, sure.

0 项奖励
回复