From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gianluca Guida Subject: [PATCH] shadow: fix audit mode. Date: Tue, 28 Apr 2009 15:46:53 +0100 Message-ID: <49F716DD.3020807@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010206080908060103060604" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------010206080908060103060604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Splintered L1s can have the dirty bit clean because of vram tracking. Signed-off-by: Gianluca Guida --------------010206080908060103060604 Content-Type: text/x-diff; name="fix-audit.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-audit.patch" 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)) ) --------------010206080908060103060604 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------010206080908060103060604--