ia64/xen-unstable

changeset 7698:d25bdfb2576e

Fixed a bug in the audit code.
We don't hold a type refcount to the user's ptbase frame in
shadow refcounting mode.
author mafetter@seana.research.intel-research.net
date Tue Nov 08 11:36:55 2005 +0100 (2005-11-08)
parents dd0e2e9fa4e6
children 0f62ea79cd8d
files xen/arch/x86/audit.c
line diff
     1.1 --- a/xen/arch/x86/audit.c	Tue Nov 08 11:36:37 2005 +0100
     1.2 +++ b/xen/arch/x86/audit.c	Tue Nov 08 11:36:55 2005 +0100
     1.3 @@ -412,7 +412,7 @@ int audit_adjust_pgtables(struct domain 
     1.4          for_each_vcpu(d, v)
     1.5          {
     1.6              if ( pagetable_get_paddr(v->arch.guest_table) )
     1.7 -                adjust(&frame_table[pagetable_get_pfn(v->arch.guest_table)], 1);
     1.8 +                adjust(&frame_table[pagetable_get_pfn(v->arch.guest_table)], !shadow_mode_refcounts(d));
     1.9              if ( pagetable_get_paddr(v->arch.shadow_table) )
    1.10                  adjust(&frame_table[pagetable_get_pfn(v->arch.shadow_table)], 0);
    1.11              if ( v->arch.monitor_shadow_ref )