Speed up shadow of x86_64 Linux guests using 3 paging levels.

Linux kernel 2.6.9 or older uses 3 paging levels and its direct map is
from 0x10000000000.

Signed-off-by: Xin Li <xin.b.li@intel.com>
This commit is contained in:
Tim Deegan committed 2006-11-14 18:21:51 +00:00
1 parent acdee1b65e
commit 051c099e2e
1 file changed
+3 -1
+3 -1
View File
@@ -1953,9 +1953,11 @@ int shadow_remove_write_access(struct vcpu *v, mfn_t gmfn,
case 3: GUESS(0x70381C00000UL + (fault_addr >> 27), 3); break;
}
/* Linux direct map at 0xffff810000000000 */
/* 64bit Linux direct map at 0xffff810000000000; older kernels
* had it at 0x0000010000000000UL */
gfn = sh_mfn_to_gfn(v->domain, gmfn);
GUESS(0xffff810000000000UL + (gfn << PAGE_SHIFT), 4);
GUESS(0x0000010000000000UL + (gfn << PAGE_SHIFT), 4);
}
#endif /* CONFIG_PAGING_LEVELS >= 4 */
#endif /* CONFIG_PAGING_LEVELS >= 3 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.