In initvalues(start_info_t) function at "[[src]]/sys/i386/xen/xen_machdep.c"

IdlePDTnew, IdlePTDnew, etc are only declared under PAE enabled guests as

#ifdef PAE
        vm_paddr_t IdlePDPTma, IdlePDPTnewma;
        vm_paddr_t IdlePTDnewma[4];
        pd_entry_t *IdlePDPTnew, *IdlePTDnew;
        vm_paddr_t pdir_shadow_ma;

However It's used later in the function without constraining it to certain
guests ( without #ifdef PAE ), one of those is

memcpy(((uint8_t *)IdlePTDnew) + ((unsigned int)(KERNBASE >> 18)),
            ((uint8_t *)IdlePTD) + ((KERNBASE >> 18) & PAGE_MASK),

Is the current non-PAE xen guest implementation broke intentionally, or is
this a merge issue or something ?

( This issue arises as a compile-time error as soon as you remove the
"options PAE" in the XEN configuration file for the build )

Karim Allah Ahmed.
LinkedIn <>
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to