mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Merge
This commit is contained in:
commit
1153faff43
2 files changed
+5
-3
No files matched your search
@@ -53,6 +53,7 @@ defines = [ "__i386__",
|
||||
|
||||
# all archs
|
||||
"xen_pfn_to_cr3",
|
||||
"xen_cr3_to_pfn",
|
||||
"XEN_LEGACY_MAX_VCPUS",
|
||||
"MAX_GUEST_CMDLINE" ];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||