]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
x86 shadow: fix audit mode.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 5 May 2009 12:47:27 +0000 (13:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 5 May 2009 12:47:27 +0000 (13:47 +0100)
Splintered L1s can have the dirty bit clean because of vram tracking.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
xen-unstable changeset:   19584:86f659545f17
xen-unstable date:        Wed Apr 29 11:53:23 2009 +0100

xen/arch/x86/mm/shadow/multi.c

index 694cf229aaa37c3ab02247e885993961d0f9e88c..0eb6199f9ed7704ff682cbe8cbafdb97b53f5101 100644 (file)
@@ -5083,6 +5083,9 @@ int sh_audit_fl1_table(struct vcpu *v, mfn_t sl1mfn, mfn_t x)
         f = shadow_l1e_get_flags(*sl1e);
         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)