Skip to contentSkip to conversation

powerpc64 port anyone?

Lguest Hollis Blanchard 3 participants 4 messages Apr 22, 2009 – Apr 26, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Wartan Hachaturow
Quoted 3 lines · Rusty Russell

Well, I think the x86_64 port is dead; nothing has been done on it in over a year. POWER could be done, but you'd have to know a lot about POWER (or learn a lot about POWER).

Quoted 7 lines

As far as I understand, major issues would be to make lguest 64-bit, and invent a POWER replacement for your creative use of i386 segmentation. I need to refresh my memories on power memory management :)

Probably, a powerpc32 would be easier for a start -- and benefit those lacking PowerVM :)

Probably easier, yeah.

Quoted 3 lines

It looks like powerpc is currently missing any kind of software
virtualization: kvm is x86, XenPPC seems to be dead, and so is OpenVZ's powerpc port.

KVM supports embedded PowerPC (440 and e500 at the moment), and there has been some work to port it to ppc64 cores like 970 (without using the hardware extensions, since these are unavailable on shipping systems). If you're interested, you should check out the trees at
http://powerkvm.org .

What hardware do you have available? Qemu has made great progress in PowerPC target support in the last 6 months, and that can be very convenient even when you have real hardware.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center
#1 lore raw
Quoted 5 lines · Hollis Blanchard

KVM supports embedded PowerPC (440 and e500 at the moment), and there has been some work to port it to ppc64 cores like 970 (without using the hardware extensions, since these are unavailable on shipping systems). If you're interested, you should check out the trees at
http://powerkvm.org .

Wow, didn't know about that port. I'll have a look.
Do I understand right that, all other things being equal, lguest should be easier to port than full KVM?

Quoted 1 line

What hardware do you have available?

G5, p5, QS22, JS22, lots of PS3's.
No ppc32, though, but that should be quite easy to get.

Signature · 1 line
Regards, Wartan.
#2 lore raw
In reply to Hollis Blanchard
Quoted 8 lines · Wartan Hachaturow
Quoted 5 lines · Hollis Blanchard

KVM supports embedded PowerPC (440 and e500 at the moment), and there has been some work to port it to ppc64 cores like 970 (without using the hardware extensions, since these are unavailable on shipping systems). If you're interested, you should check out the trees at
http://powerkvm.org .

Wow, didn't know about that port. I'll have a look.

The main port was PowerPC 440, and that and e500 support are already upstream in KVM. Some details are available here:
http://www.linux-kvm.org/page/PowerPC

The 970/Cell stuff Alex is doing is only loosely connected to that (ppc64 supervisor mode is very different from 440/e500), and that's the first URL I gave you.

Quoted 2 lines

Do I understand right that, all other things being equal, lguest should be easier to port than full KVM?

For PowerPC at least, it's not significant. KVM emulates hardware's behavior when necessary, while lguest modifies the guest to make hypercalls in those exact same places (avoiding the need for emulation). That's not really the hard part of the implementation though, which is why I say it's not significant.

Also, KVM allows you to run potentially any out-of-the-box kernel, without needing to port it to another interface.

If you need to, you can still add hypercalls to KVM, but in general it's best to do that only in performance-critical areas. Functionality first, performance second.

Quoted 4 lines
Quoted 1 line

What hardware do you have available?

G5, p5, QS22, JS22, lots of PS3's.
No ppc32, though, but that should be quite easy to get.

That's quite a collection. :)

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center
#3 lore raw
In reply to Hollis Blanchard
Quoted 14 lines · Hollis Blanchard
Quoted 11 lines · Wartan Hachaturow
Quoted 8 lines · Hollis Blanchard

KVM supports embedded PowerPC (440 and e500 at the moment), and there
has been some work to port it to ppc64 cores like 970 (without using the
hardware extensions, since these are unavailable on shipping systems).
If you're interested, you should check out the trees at
http://powerkvm.org .

Quoted 1 line

Wow, didn't know about that port. I'll have a look.

Quoted 8 lines

The main port was PowerPC 440, and that and e500 support are already upstream in KVM. Some details are available here:
http://www.linux-kvm.org/page/PowerPC

The 970/Cell stuff Alex is doing is only loosely connected to that (ppc64 supervisor mode is very different from 440/e500), and that's the
first URL I gave you.

Actually "my 970 stuff" virtualizes ppc32 on ppc64, so we don't have to mess with conflicting kernel address rooms.

The architecture as is however should allow you to easily add ppc32 host support as well as ppc64 guest support, as long as you prevent the memory segments to collide (BAT for ppc32, 0xc/0xd SLB entries for ppc64).

So I for my part would welcome any help I can get to have KVM run smoothly on non-embedded POWER :-).

Alex