* Copy-on write sharing
@ 2012-05-31 8:39 zhangzhi
2012-05-31 9:23 ` Tim Deegan
0 siblings, 1 reply; 3+ messages in thread
From: zhangzhi @ 2012-05-31 8:39 UTC (permalink / raw)
To: xen-devel
Hi, list,
xen 4.0 release has said that it had a special feature of copy-on write
sharing of identical memory pages between VMs (HVM only).
I just wanna know the source code that illustrate this feature.
Is anyone have an idea about the this feature as well as its specific source
code? thanks.
--
View this message in context: http://xen.1045712.n5.nabble.com/Copy-on-write-sharing-tp5709207.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Copy-on write sharing
2012-05-31 8:39 Copy-on write sharing zhangzhi
@ 2012-05-31 9:23 ` Tim Deegan
[not found] ` <BLU147-W3164E67F10FCA98668A999CC0B0@phx.gbl>
0 siblings, 1 reply; 3+ messages in thread
From: Tim Deegan @ 2012-05-31 9:23 UTC (permalink / raw)
To: zhangzhi; +Cc: xen-devel
Hi,
At 01:39 -0700 on 31 May (1338428371), zhangzhi wrote:
> xen 4.0 release has said that it had a special feature of copy-on write
> sharing of identical memory pages between VMs (HVM only).
> I just wanna know the source code that illustrate this feature.
The code inside the hypervisor lives in xen/arch/x86/mm/, mostly in the
file mem_sharing.c.
The user-space interface is in libxc, in tools/libxc/xc_memshr.c
An example program that uses it is tools/tests/mem-sharing/memshrtool.c.
This feature is not built in to the higher-level tools (libxl &c) at the
moment; originally there were extensions to blktap that could
automatically share pages that were read from disk if the VMs' disks
came from the same source image, but I think that's all bitrotted. If
anyone wanted to try to get that working again, I'm sure it would be
welcome!
Cheers,
Tim.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-01 8:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31 8:39 Copy-on write sharing zhangzhi
2012-05-31 9:23 ` Tim Deegan
[not found] ` <BLU147-W3164E67F10FCA98668A999CC0B0@phx.gbl>
2012-06-01 8:32 ` Tim Deegan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).