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

Carsten Otte
2007-10-26T08:17:07Z

Izik Eidus wrote:
> btw, if you look at kvmctl, we already do it,
> so it is good question if it better to leave this work to userspace
> (like it do now)
> or do the mapping to userspace from the kernel to userspace (using the
> mmap syscall)
>
> (i like the secoend option beacuse it would be easier to work with qemu
> like this)
I think we should leave it to userland. This was userland is free to
use whatever it wants:
- malloc() to get anonymous memory
- mmap() to get file backed memory
- posix or sysv shared memory
- hugetlbfs to save translation steps

so long,
Carsten