From: Avi K. <av...@qu...> - 2008-01-15 07:38:33
|
Christoph Lameter wrote: > On Sat, 12 Jan 2008, Avi Kivity wrote: > > >> Two kvm instances mmap() the file (from anywhere) into the guest address >> space. That memory is shared, and will be backed by the same page structs at >> the same offset. >> > > Duh. Impossible. Two instances of Linux cannot share page structs. So how > are you doing this? Or is this just an idea? > > I was describing one Linux host running two guest instances. The page structs are in the host, so they are shared by mmap(). kvm userspace is just an ordinary host process, it can mmap() any file it likes and then assign that virtual memory range to the guest (as guest physical memory). -- error compiling committee.c: too many arguments to function |