This commit is contained in:
Ian Jackson committed 2011-03-03 18:52:09 +00:00
commit 1153faff43
2 files changed
+5 -3

No files matched your search

+1
View File
@@ -53,6 +53,7 @@ defines = [ "__i386__",
# all archs
"xen_pfn_to_cr3",
"xen_cr3_to_pfn",
"XEN_LEGACY_MAX_VCPUS",
"MAX_GUEST_CMDLINE" ];
+4 -3
View File
@@ -61,11 +61,12 @@ unsigned long xc_translate_foreign_address(xc_interface *xch, uint32_t dom,
return 0;
if (domctl.u.address_size.size == 64) {
pt_levels = 4;
paddr = ctx.x64.ctrlreg[3] & ~0xfffull;
paddr = (uint64_t)xen_cr3_to_pfn_x86_64(ctx.x64.ctrlreg[3])
<< PAGE_SHIFT;
} else {
pt_levels = 3;
paddr = (((uint64_t) xen_cr3_to_pfn(ctx.x32.ctrlreg[3]))
<< PAGE_SHIFT);
paddr = (uint64_t)xen_cr3_to_pfn_x86_32(ctx.x32.ctrlreg[3])
<< PAGE_SHIFT;
}
}
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.