From: Avi K. <av...@qu...> - 2008-01-12 19:58:42
|
Christoph Lameter wrote: > On Thu, 10 Jan 2008, Avi Kivity wrote: > > >> Actually sharing memory is possible even without this patch; one simply >> mmap()s a file into the address space of both guests. Or are you referring to >> something else? >> > > A file from where? If a file is read by two guests then they will have > distinct page structs. > > 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. -- Any sufficiently difficult bug is indistinguishable from a feature. |