All of lore.kernel.org
 help / color / mirror / Atom feed
* dom0 boot failure with 256G
@ 2008-06-05  2:07 Mukesh Rathor
  2008-06-05  4:00 ` Ian Pratt
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Mukesh Rathor @ 2008-06-05  2:07 UTC (permalink / raw)
  To: xen-devel; +Cc: Kurt C. Hackel, Keir Fraser

Hi,

    I've been intensely debugging a dom0 crash right at boot in
    pagetable_init() with 256G. We are running 64bit hyp with 32bit dom0.
    This on xen 3.1.3, which seems to have fixes from changeset 16548.

    It boils down to this:

   crash occurs in dom0: mfn_to_pfn() during machine_to_phys_mapping[mfn]
   lookup  where mfn == 0x3f2ec09 is too big. The table starts at: 0xf5800000
   which I see comes from MACH2PHYS_VIRT_START.

   Trying to figure the hyp out, I notice phys addr is set as:

   d->arch.physaddr_bitsize =
           fls((1UL << 32) - HYPERVISOR_COMPAT_VIRT_START(d)) - 1
             + (PAGE_SIZE - 2);
   which is set to 0x1019, totally baffling me. I'd expect it to be 32,
   36, or 64????????

  moving along, in alloc_domheap_pages() :
    bits = domain_clamp_alloc_bitsize(d, bits ? : (BITS_PER_LONG+PAGE_SHIFT));

   domain_clamp_alloc_bitsize(struct domain *d, unsigned int bits)
   {
       if ( (d == NULL) || !is_pv_32on64_domain(d) )
               return bits;
       return min(d->arch.physaddr_bitsize, bits);
            ---> here : physaddr: 0x1019, bits:76 ?????
            ---> i'm thinking bits should be 36+12 == 48 ??
   }

    finally, call to alloc_heap_pages(...) returns frames too high, pg
    ptr is returned at : ffff82849df30000 (zone_hi == 0x27)


    On a side note, is my understanding correct that while a guest pfn must
    always be < 36 bits for a PAE 32 guest, the mfn doesn't have to be?


    thanks
    mukesh

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-06-07  0:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05  2:07 dom0 boot failure with 256G Mukesh Rathor
2008-06-05  4:00 ` Ian Pratt
2008-06-05  7:24   ` Keir Fraser
2008-06-05 12:16     ` Keir Fraser
2008-06-05 12:54       ` Jeremy Fitzhardinge
2008-06-05 12:58         ` Keir Fraser
2008-06-05 13:15           ` Jan Beulich
2008-06-05 13:17             ` Keir Fraser
2008-06-05 13:31             ` Jeremy Fitzhardinge
2008-06-06  2:48       ` Mukesh Rathor
2008-06-05 18:01   ` mukesh rathor
2008-06-05  7:30 ` Keir Fraser
2008-06-05  7:35 ` [PATCH] " Jan Beulich
2008-06-06  2:43   ` Mukesh Rathor
2008-06-06  7:05     ` Jan Beulich
2008-06-07  0:33       ` Mukesh Rathor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.