]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86 shadow: fix audit mode.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 29 Apr 2009 10:53:23 +0000 (11:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 29 Apr 2009 10:53:23 +0000 (11:53 +0100)
Splintered L1s can have the dirty bit clean because of vram tracking.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
xen/arch/x86/mm/shadow/multi.c

index 4e1fe8a7c040d18eb760dd0114aff939028159f4..072dda0b6b59c92e2e9f64203dde106076f35364 100644 (file)
@@ -4986,6 +4986,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)