aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/shadow.h
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@xensource.com>2006-11-23 17:42:29 +0000
committerTim Deegan <Tim.Deegan@xensource.com>2006-11-23 17:42:29 +0000
commit63a54d2cb36f030d34832de059b4b559c673ff3c (patch)
treebb56f005d11b7425d2c4cda3de32b893164521d5 /xen/include/asm-x86/shadow.h
parent63aa5155c2e5c301b5cf89604210998a829deaa0 (diff)
downloadxen-63a54d2cb36f030d34832de059b4b559c673ff3c.tar.gz
xen-63a54d2cb36f030d34832de059b4b559c673ff3c.tar.bz2
xen-63a54d2cb36f030d34832de059b4b559c673ff3c.zip
[XEN] Simplify the shadow hash table.
Chain hash buckets through the shadow page_info structs instead of in separately allocated structures. This lets us get rid of some xenheap allocations and a domain_crash_synchronous() call. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r--xen/include/asm-x86/shadow.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 14f330f81c..0a990e0382 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -599,24 +599,6 @@ static inline unsigned int shadow_get_allocation(struct domain *d)
+ ((pg & ((1 << (20 - PAGE_SHIFT)) - 1)) ? 1 : 0));
}
-/*
- * Linked list for chaining entries in the shadow hash table.
- */
-struct shadow_hash_entry {
- struct shadow_hash_entry *next;
- mfn_t smfn; /* MFN of the shadow */
-#ifdef _x86_64_ /* Shorten 'n' so we don't waste a whole word on storing 't' */
- unsigned long n:56; /* MFN of guest PT or GFN of guest superpage */
-#else
- unsigned long n; /* MFN of guest PT or GFN of guest superpage */
-#endif
- unsigned char t; /* shadow type bits, or 0 for empty */
-};
-
-#define SHADOW_HASH_BUCKETS 251
-/* Other possibly useful primes are 509, 1021, 2039, 4093, 8191, 16381 */
-
-
#if SHADOW_OPTIMIZATIONS & SHOPT_CACHE_WALKS
/* Optimization: cache the results of guest walks. This helps with MMIO
* and emulated writes, which tend to issue very similar walk requests