All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/4] Out-of-sync L1 shadows: Always unsync policy.
@ 2008-06-20 17:32 Gianluca Guida
  0 siblings, 0 replies; only message in thread
From: Gianluca Guida @ 2008-06-20 17:32 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]

Unsync policy: always unsync pages on guest writes.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>


[-- Attachment #2: oos-policy.always.patch --]
[-- Type: text/x-patch, Size: 682 bytes --]

diff -r e1c198471d4d xen/arch/x86/mm/shadow/multi.c
--- a/xen/arch/x86/mm/shadow/multi.c	Fri Jun 20 15:11:33 2008 +0100
+++ b/xen/arch/x86/mm/shadow/multi.c	Fri Jun 20 15:12:27 2008 +0100
@@ -3288,6 +3288,13 @@ static int sh_page_fault(struct vcpu *v,
         return 0;
     }
 
+#if (SHADOW_OPTIMIZATIONS & SHOPT_OUT_OF_SYNC)
+    /* Always unsync when writing to L1 page tables. */
+    if ( sh_mfn_is_a_page_table(gmfn)
+         && ft == ft_demand_write )
+        sh_unsync(v, gmfn, va);
+#endif /* OOS */
+
     /* Calculate the shadow entry and write it */
     l1e_propagate_from_guest(v, gw.l1e, gmfn, &sl1e, ft, p2mt);
     r = shadow_set_l1e(v, ptr_sl1e, sl1e, sl1mfn);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-20 17:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-20 17:32 [PATCH 4/4] Out-of-sync L1 shadows: Always unsync policy Gianluca Guida

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.