<br><br><div class="gmail_quote">On 24 May 2010 07:33, Pasi Kärkkäinen <span dir="ltr"><<a href="mailto:pasik@iki.fi">pasik@iki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Xen block backend driver running in dom0 directly submits BIOs bypassing dom0 kernel caches.<br>
So Xen *could* take advantage of dom0 kernel caches, but they've chosen not to,<br>
to keep things consistent.<br><br></blockquote><div><br></div><div>To clarify this a bit.   If the backend did cache writes then you would have two bad side effects: you would need more memory overall because pages would be cached twice (once in the guest, once in the host).</div>
<div><br></div><div>The second effect is a bit more serious.  If an application running in the guest uses O_DIRECT or fsync(2) then it rather hopes that the semantics of those things are being honoured.  If a commit of (say) a credit card payment made to safe storage is no much thing then someone is going to get very cross :-)</div>
<div><br></div><div>The same thing applies equally to Xen and KVM.</div><div><br></div><div>jch</div></div>