All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] shadow: fix audit mode.
@ 2009-04-28 14:46 Gianluca Guida
  0 siblings, 0 replies; only message in thread
From: Gianluca Guida @ 2009-04-28 14:46 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

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

Splintered L1s can have the dirty bit clean because of vram tracking.

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

[-- Attachment #2: fix-audit.patch --]
[-- Type: text/x-diff, Size: 737 bytes --]

diff -r 9fdcd3ab84b7 xen/arch/x86/mm/shadow/multi.c
--- a/xen/arch/x86/mm/shadow/multi.c	Mon Apr 27 15:40:09 2009 +0100
+++ b/xen/arch/x86/mm/shadow/multi.c	Tue Apr 28 15:45:21 2009 +0100
@@ -4987,6 +4987,9 @@ int sh_audit_fl1_table(struct vcpu *v, m
         f &= ~(_PAGE_AVAIL0|_PAGE_AVAIL1|_PAGE_AVAIL2);
         if ( !(f == 0 
                || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_RW|
+                        _PAGE_ACCESSED) 
+               || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_ACCESSED)
+               || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_RW|
                         _PAGE_ACCESSED|_PAGE_DIRTY) 
                || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_ACCESSED|_PAGE_DIRTY)
                || sh_l1e_is_magic(*sl1e)) )

[-- 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:[~2009-04-28 14:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 14:46 [PATCH] shadow: fix audit mode 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.