mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
bitkeeper revision 1.1159.223.81 (42091872lrObHIRNczDaqDeQw3NmyA)
debug memory audit cleanups + comment fix from Jon Mason. Signed-off-by: ian.pratt@cl.cam.ac.uk
This commit is contained in:
1 parent
055935cf6d
commit
faf69408ee
3 files changed
+12
-8
No files matched your search
@@ -1,11 +1,11 @@
|
||||
/******************************************************************************
|
||||
* arch/xen/drivers/netif/backend/main.c
|
||||
* drivers/xen/netback/netback.c
|
||||
*
|
||||
* Back-end of the driver for virtual block devices. This portion of the
|
||||
* driver exports a 'unified' block-device interface that can be accessed
|
||||
* Back-end of the driver for virtual network devices. This portion of the
|
||||
* driver exports a 'unified' network-device interface that can be accessed
|
||||
* by any operating system that implements a compatible front end. A
|
||||
* reference front-end implementation can be found in:
|
||||
* arch/xen/drivers/netif/frontend
|
||||
* drivers/xen/netfront/netfront.c
|
||||
*
|
||||
* Copyright (c) 2002-2004, K A Fraser
|
||||
*/
|
||||
|
||||
@@ -578,8 +578,11 @@ void domain_relinquish_memory(struct domain *d)
|
||||
|
||||
/* Drop the in-use reference to the page-table base. */
|
||||
if ( pagetable_val(d->mm.pagetable) != 0 )
|
||||
{
|
||||
put_page_and_type(&frame_table[pagetable_val(d->mm.pagetable) >>
|
||||
PAGE_SHIFT]);
|
||||
d->mm.pagetable = mk_pagetable(0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Relinquish GDT mappings. No need for explicit unmapping of the LDT as
|
||||
|
||||
@@ -2098,8 +2098,8 @@ void audit_domain(struct domain *d)
|
||||
|
||||
|
||||
/* PHASE 1 */
|
||||
|
||||
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], -1, 1);
|
||||
if( pagetable_val(d->mm.pagetable) )
|
||||
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], -1, 1);
|
||||
|
||||
list_ent = d->page_list.next;
|
||||
for ( i = 0; (list_ent != &d->page_list); i++ )
|
||||
@@ -2352,9 +2352,10 @@ void audit_domain(struct domain *d)
|
||||
|
||||
spin_unlock(&d->page_alloc_lock);
|
||||
|
||||
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], 1, 1);
|
||||
if( pagetable_val(d->mm.pagetable) )
|
||||
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], 1, 1);
|
||||
|
||||
printk("Audit %d: Done. ctot=%d ttot=%d\n", d->id, ctot, ttot );
|
||||
printk("Audit %d: Done. pages=%d ctot=%d ttot=%d\n", i, d->id, ctot, ttot );
|
||||
|
||||
if ( d != current )
|
||||
domain_unpause(d);
|
||||
|
||||