aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/shadow.h
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-29 18:46:51 +0100
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-29 18:46:51 +0100
commit4b4593251a2c222a642a84533e0280a9ec291f6d (patch)
treede6ae4ca7c0a8ea0f1a84bedf107d41c0e8b77bd /xen/include/asm-x86/shadow.h
parentf61bc4e0b8d4ed5e7f65dc17aeb3c8a42755b346 (diff)
downloadxen-4b4593251a2c222a642a84533e0280a9ec291f6d.tar.gz
xen-4b4593251a2c222a642a84533e0280a9ec291f6d.tar.bz2
xen-4b4593251a2c222a642a84533e0280a9ec291f6d.zip
Revert accidental commit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r--xen/include/asm-x86/shadow.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 989768daa4..28d50466ea 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -662,14 +662,10 @@ static inline void shadow_sync_and_drop_references(
if ( likely(!shadow_mode_refcounts(d)) )
return;
- shadow_lock(d);
-
if ( page_out_of_sync(page) )
__shadow_sync_mfn(d, page_to_mfn(page));
shadow_remove_all_access(d, page_to_mfn(page));
-
- shadow_unlock(d);
}
#endif
@@ -703,46 +699,6 @@ get_shadow_ref(unsigned long smfn)
return 1;
}
- shadow_sync_and_drop_references(d, mfn_to_page(mfn));
- set_p2m_entry(d, gpfn, -1, &c1, &c2);
- set_gpfn_from_mfn(mfn, INVALID_M2P_ENTRY);
- shadow_unlock(d);
- domain_mmap_cache_destroy(&c1);
- domain_mmap_cache_destroy(&c2);
-}
-
-/************************************************************************/
-
-/*
- * Add another shadow reference to smfn.
- */
-static inline int
-get_shadow_ref(unsigned long smfn)
-{
- u32 x, nx;
-
- ASSERT(mfn_valid(smfn));
-
- x = mfn_to_page(smfn)->count_info;
- nx = x + 1;
-
- if ( unlikely(nx == 0) )
- {
- printk("get_shadow_ref overflow, gmfn=%" PRtype_info " smfn=%lx\n",
- mfn_to_page(smfn)->u.inuse.type_info & PGT_mfn_mask,
- smfn);
- BUG();
- }
-
- // Guarded by the shadow lock...
- //
- mfn_to_page(smfn)->count_info = nx;
-
- return 1;
-}
-
-extern void free_shadow_page(unsigned long smfn);
-
/*
* Drop a shadow reference to smfn.
*/