Skip to contentSkip to conversation

shadow: fix audit mode.

PATCH New Gianluca Guida 1 participant 1 message Apr 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 shadow: fix audit mode.

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

xen/arch/x86/mm/shadow/multi.c +3 -0
diff -r 9fdcd3ab84b7 xen/arch/x86/mm/shadow/multi.c
@@ -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)) )

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel