ia64/xen-unstable

changeset 14727:1ec1affb1b50

xen: No need for shadow_drop_references() in remove_page().

Because:
guest_physmap_remove_page()
-> p2m_remove_page()
-> set_p2m_entry()
-> paging_write_p2m_entry()
-> shadow_write_p2m_entry()

And shadow_write_p2m_entry() calls sh_remove_all_*() fns.

Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Wed Apr 04 22:47:20 2007 +0100 (2007-04-04)
parents f4318c89291a
children adf7f391be71
files xen/common/memory.c
line diff
     1.1 --- a/xen/common/memory.c	Wed Apr 04 21:49:04 2007 +0100
     1.2 +++ b/xen/common/memory.c	Wed Apr 04 22:47:20 2007 +0100
     1.3 @@ -173,12 +173,6 @@ int guest_remove_page(struct domain *d, 
     1.4      if ( test_and_clear_bit(_PGC_allocated, &page->count_info) )
     1.5          put_page(page);
     1.6  
     1.7 -    if ( unlikely((page->count_info & PGC_count_mask) != 1) )
     1.8 -    {
     1.9 -        shadow_drop_references(d, page);
    1.10 -        /* NB: still may have foreign references to the page at this stage */
    1.11 -    }
    1.12 -
    1.13      guest_physmap_remove_page(d, gmfn, mfn);
    1.14  
    1.15      put_page(page);