mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86 shadow: fix audit mode.
Splintered L1s can have the dirty bit clean because of vram tracking. Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
This commit is contained in:
1 parent
9d85142e67
commit
ea5f19324f
1 file changed
+3
@@ -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)
|
||||
|
||||