7

I understand that qemu uses binary translation to emulate machines, so irrespective of the underlying architecture, it can provide emulation.
And, KVM uses Hardware Virtualization technique to make this process faster. Thus, KVM requires VT support from underlying architectures (which x86 processor provides).

I have emulated powerpc architecture with qemu over x86 architecture. My question is whether it is possible to run KVM over this powerpc architecture.

tshepang
  • 64,472
  • 86
  • 223
  • 290
db42
  • 293
  • 1
  • 8

3 Answers3

1

The ppc970mp supports virtualization, and kvm on a ppc97mp uses it as such.

MikeJC
  • 11
  • 1
1

KVM uses hardware acceleration. Usually it provides support for emulating only itself (i.e. Intel VT-x emulates Intel processors etc.) and I would be highly surprised it PowerPC provided any emulation of Intel processors (as it would require duplicating Intel functionality in PPC processor largly increasing cost and size of such unit).

However there are planned ports of KVM to PowerPC architecture which would allow to emulate PowerPC systems on PowerPC CPU efficiently.

Maciej Piechotka
  • 16,578
  • 11
  • 57
  • 93
  • Powerpc processors doesn't provide virtualization hardware support. So, KVM porting on powerpc doesn't depend on that support. From http://www.linux-kvm.org/page/PowerPC: "Current development is aimed at running 440 Linux kernels as guests on 440 Linux host. Since the 440 processor does not implement virtualization hardware support, this is done via "trap and emulate" of privileged instructions executed inside the guest. " So, even if qemu doesn't expose virtualization hardware support to the guest virtual machine, I think it is possible to run KVM (only for powerpc) on top of it. – db42 Dec 23 '10 at 09:56
  • My bad (I'm not specialist on PPC). However technically my answer is not wrong [KVM uses hardware acceleration now and it will allow emulate PPC on PPC efficiently I imagine (just not using hardware acceleration)]. – Maciej Piechotka Dec 24 '10 at 22:38
0

Powerpc has kvm implement. You can see the latest source code of qemu-kvm. There is kvm.c file in powerpc folder.

Edward Shen
  • 868
  • 4
  • 8