Re: [kvm-ppc-devel] RFC/patch portability: split kvm_vm_ioctl v2

Hollis Blanchard
2007-10-26T14:35:25Z

On Fri, 2007-10-26 at 10:21 +0200, Carsten Otte wrote:
>
> As Xiantao pointed out, x86 and ia64 can share the same memory setup
> code. But s390 and ppc don't. Therefore, I vote for putting it into
> x86 for now, and come up with an approach to share between x86 and
> ia64 later on.

The only thing in the current ioctl code that doesn't make sense for
PowerPC is the rmap stuff. The concept of "slots" as memory extents is
just fine.

Originally, I think the only question was how to register the slots on
the kernel side. Today that is done with separate
KVM_SET_USER_MEMORY_REGION ioctls, one for each guest physical region.

Izik's idea (as I understand it) is to have one ioctl registering all of
RAM, and then multiple "configure slot" ioctls that tell the kernel how
to divide that area into the guest physical address space. That seems
more awkward to me and I don't seem a benefit.

--
Hollis Blanchard
IBM Linux Technology Center