Re: [ANNOUNCE] kvm-46 release

Avi Kivity
2007-10-13T07:13:32Z

Gerd Hoffmann wrote:
> Avi Kivity wrote:
>
>> We've now switched to allocating guest memory in userspace rather than
>> in the kernel.
>>
>
> Hmm, a quick glimpse over kvmctl.h doesn't show an obvious way how to
> use that. If I want to back vm memory with a file mapping, how can I do
> that?
>

kvmctl.h doesn't expose an API for that currently, though is should be
fairly trivial to do so. The kernel API is straightforward: take this
bunch of memory and present it to a guest at some address. The kernel
doesn't care if the memory came from a file mmap() or some other source.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.