aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs
diff options
context:
space:
mode:
authorGeorge Dunlap <gdunlap@xensource.com>2007-09-19 11:58:04 +0100
committerGeorge Dunlap <gdunlap@xensource.com>2007-09-19 11:58:04 +0100
commitf0ad89dd9dfe20f03c6b49845a04521086ef32a2 (patch)
tree18e4dc7053b30fc63ddbf0cc01c344a49dcb31bf /buildconfigs
parentc8822fb01990bf7f48c02d9cc159ea40655c7d16 (diff)
downloadxen-f0ad89dd9dfe20f03c6b49845a04521086ef32a2.tar.gz
xen-f0ad89dd9dfe20f03c6b49845a04521086ef32a2.tar.bz2
xen-f0ad89dd9dfe20f03c6b49845a04521086ef32a2.zip
[shadow] Be smarter about what we check to avoid unnecessary brute-force searches
The old code checked only if the page was still a pagetable before doing a brute-force search, rather than checking if it was still shadowed as the type indicated. This meant that if a page was shadowed as two different types, it was guaranteed to do a full brute-force search even if all references could be found by up-pointers. This checks the proper thing so that it will only do a brute-force if necessary. It also re-orders the unshadows so that higher levels are done first. In many cases, lower-level shadows will be destroyed in the process of higher-level shadows being destroyed, again saving brute-force searches.
Diffstat (limited to 'buildconfigs')
0 files changed, 0 insertions, 0 deletions