]> xenbits.xensource.com Git - xen.git/commitdiff
vmx: Fix address of EPT identity-map pagetable that is passed from the
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Apr 2008 13:33:42 +0000 (14:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Apr 2008 13:33:42 +0000 (14:33 +0100)
domain builder down to the hypervisor.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxc/xc_hvm_build.c

index ae3178b0e1c5b648b8924c8dfb49dfc66dae1c9e..30ac5b4951fa6d169838e4ace920378de64c66a9 100644 (file)
@@ -298,7 +298,7 @@ static int setup_guest(int xc_handle,
                        _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_PSE);
     munmap(ident_pt, PAGE_SIZE);
     xc_set_hvm_param(xc_handle, dom, HVM_PARAM_IDENT_PT,
-                     special_page_nr + SPECIALPAGE_IDENT_PT);
+                     (special_page_nr + SPECIALPAGE_IDENT_PT) << PAGE_SHIFT);
 
     /* Insert JMP <rel32> instruction at address 0x0 to reach entry point. */
     entry_eip = elf_uval(&elf, elf.ehdr, e_entry);