Attempting to Get Xen FreeBSD Dom0 working

David P. Discher dpd at dpdtech.com
Tue Dec 2 22:30:54 UTC 2014


sweet - thanks - Will -

As far as what’s built - it is git://xenbits.xen.org/people/royger/freebsd.git with branch pvh_dom0_v8:

	root at borg:/usr/src # git status
	On branch pvh_dom0_v8
	Your branch is up-to-date with 'origin/pvh_dom0_v8’.
	[…]

And the line numbers:

	#0  sched_switch (td=0xfffff800c9108940, newtd=<value optimized out>, flags=<value optimized out>)
		at /usr/src/sys/kern/sched_ule.c:1940
	1940			cpuid = PCPU_GET(cpuid);
	
	(kgdb)  l *AcpiNsWalkNamespace+0x31
	0xffffffff803376f1 is in AcpiNsWalkNamespace (/usr/src/sys/contrib/dev/acpica/components/namespace/nswalk.c:90).
	85	        return (ParentNode->Child);
	86	    }
	87
	88	    /* Otherwise just return the next peer */
	89
	90	    return (ChildNode->Peer);
	91	}
	92
	93
	94	/*******************************************************************************
	Current language:  auto; currently minimal
	
	(kgdb)  l *AcpiWalkNamespace+0xa8
	0xffffffff80337c98 is in AcpiWalkNamespace (/usr/src/sys/contrib/dev/acpica/components/namespace/nsxfeval.c:671).
	666	    {
	667	        Status = AE_BAD_PARAMETER;
	668	        goto UnlockAndExit2;
	669	    }
	670
	671	    Status = AcpiNsWalkNamespace (Type, StartObject, MaxDepth,
	672	                ACPI_NS_WALK_UNLOCK, DescendingCallback,
	673	                AscendingCallback, Context, ReturnValue);
	674
	675	UnlockAndExit2:
	
	(kgdb) l *acpi_pci_attach+0x154
	0xffffffff80371d94 is in acpi_pci_attach (/usr/src/sys/dev/acpica/acpi_pci.c:321).
	316		 */
	317		pci_add_children(dev, domain, busno, sizeof(struct acpi_pci_devinfo));
	318		AcpiWalkNamespace(ACPI_TYPE_DEVICE, acpi_get_handle(dev), 1,
	319		    acpi_pci_save_handle, NULL, dev, NULL);
	320
	321		return (bus_generic_attach(dev));
	322	}
	323
	324	#ifdef ACPI_DMAR
	325	bus_dma_tag_t dmar_get_dma_tag(device_t dev, device_t child);
	(kgdb)
	



-
David P. Discher
http://davidpdischer.com/
AIM: DavidDPD | Y!M: daviddpdz 



On Dec 2, 2014, at 2:10 PM, Will Andrews <will at firepipe.net> wrote:

> On Tue, Dec 2, 2014 at 2:26 PM, David P. Discher <dpd at dpdtech.com> wrote:
>> Can you or someone point me to how to get the line numbers ?  Since this is panic-ing before swap on/dumpon … I’m not sure out to get the dump and load into kgdb with the symbols.  My guess is that I need to use remote debugging to do this.
> 
> You can just run 'kgdb' when you boot up and type in 'l *name+off',
> for instance, from your previous email:
> 
>>      db> bt
>>      Tracing pid 0 tid 100000 td 0xffffffff8180bbf0
>>      AcpiNsWalkNamespace() at AcpiNsWalkNamespace+0x31/frame 0xffffffff82322940
>>      AcpiWalkNamespace() at AcpiWalkNamespace+0xa8/frame 0xffffffff823229a0
>>      acpi_pci_attach() at acpi_pci_attach+0x154/frame 0xffffffff823229f0
> 
> On my system this yields:
> 
> sol# kgdb
> [...]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-xen/attachments/20141202/edc24bfe/attachment.sig>


More information about the freebsd-xen mailing list