From owner-freebsd-xen@FreeBSD.ORG Tue Dec 2 22:30:54 2014 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AE82F303 for ; Tue, 2 Dec 2014 22:30:54 +0000 (UTC) Received: from mail-pd0-x22f.google.com (mail-pd0-x22f.google.com [IPv6:2607:f8b0:400e:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 76171D5F for ; Tue, 2 Dec 2014 22:30:54 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id y10so14011496pdj.6 for ; Tue, 02 Dec 2014 14:30:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dpdtech.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=xI1lwGVC3SM1l2eBj644Gkk9u8enW+7vZS+x8/nyuDM=; b=L9r9r32tdRz60mFSVWhrARa5F8onlFZFtY0Xp2X/Nw0Wq0IBF+iQ+0STMGuQXUEJz0 Ko4sq3iUUXLcGInJzX6KBOqhG4KrhPncF/tUPRMb0uLgcE9+cQtW/xZl+QeF7Wh6csn2 +4PctGwKoXWnwDVur+rY5ym6HT/ep5knQDf10= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=xI1lwGVC3SM1l2eBj644Gkk9u8enW+7vZS+x8/nyuDM=; b=JfNM9kOFtE7F5Y2ZPqtw2+domv2m5VhpHb3YwclwQCQJttp+gt/6k79+oAIHNJBrp/ o6CF6A/NnYV6b+L5ct50/DHBd7shPEgYecO/jGLDrswhkY0FUptxiQx0qJKom8dgQO01 TTCWCUXS48krVBwcYfNbTZ/5Iq9ULNb5zy6e7MUnifggf5PjV5wH3ZmbKf2Vq2BfrPm3 OiZA7CaRcQDndQW0dZVIfUcQYC4uj13MFsGYC79XAHZ6ekY/d9FWU+n0tTIAxIqcPH4O G8khxgU3OwpbYr0G6B0RoK+/6B7RtpUK+A5Wk0mNbKCzzLYdHc08teyFjg4TTCmEwyCI 5oeQ== X-Gm-Message-State: ALoCoQljULAwrnWYkoBoSMgUsvN4hbF5LyKqABuVzwm1Q9xXS1wA+dzuGrZIdr8di6QoUtbKMfkh X-Received: by 10.70.51.232 with SMTP id n8mr2756687pdo.9.1417559453822; Tue, 02 Dec 2014 14:30:53 -0800 (PST) Received: from 173-13-188-41-sfba.hfc.comcastbusiness.net (173-13-188-41-sfba.hfc.comcastbusiness.net. [173.13.188.41]) by mx.google.com with ESMTPSA id i10sm21281362pdr.21.2014.12.02.14.30.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 14:30:53 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_82D2C7DD-0726-4302-A88A-A379DD7AE26A"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Attempting to Get Xen FreeBSD Dom0 working From: "David P. Discher" In-Reply-To: Date: Tue, 2 Dec 2014 14:30:56 -0800 Message-Id: <221B193A-5DE8-4BFF-BEFF-69C9A292BC22@dpdtech.com> References: <481F7D02-BFE9-4E35-A475-5A8A05A801CE@dpdtech.com> <547DFCC0.6030003@citrix.com> To: Will Andrews X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2014 22:30:54 -0000 --Apple-Mail=_82D2C7DD-0726-4302-A88A-A379DD7AE26A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 sweet - thanks - Will - As far as what=92s built - it is = git://xenbits.xen.org/people/royger/freebsd.git with branch pvh_dom0_v8: root@borg:/usr/src # git status On branch pvh_dom0_v8 Your branch is up-to-date with 'origin/pvh_dom0_v8=92. [=85] And the line numbers: #0 sched_switch (td=3D0xfffff800c9108940, newtd=3D, flags=3D) at /usr/src/sys/kern/sched_ule.c:1940 1940 cpuid =3D PCPU_GET(cpuid); =09 (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 =09 (kgdb) l *AcpiWalkNamespace+0xa8 0xffffffff80337c98 is in AcpiWalkNamespace = (/usr/src/sys/contrib/dev/acpica/components/namespace/nsxfeval.c:671). 666 { 667 Status =3D AE_BAD_PARAMETER; 668 goto UnlockAndExit2; 669 } 670 671 Status =3D AcpiNsWalkNamespace (Type, StartObject, = MaxDepth, 672 ACPI_NS_WALK_UNLOCK, DescendingCallback, 673 AscendingCallback, Context, = ReturnValue); 674 675 UnlockAndExit2: =09 (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) =09 - David P. Discher http://davidpdischer.com/ AIM: DavidDPD | Y!M: daviddpdz=20 On Dec 2, 2014, at 2:10 PM, Will Andrews wrote: > On Tue, Dec 2, 2014 at 2:26 PM, David P. Discher = wrote: >> Can you or someone point me to how to get the line numbers ? Since = this is panic-ing before swap on/dumpon =85 I=92m 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. >=20 > You can just run 'kgdb' when you boot up and type in 'l *name+off', > for instance, from your previous email: >=20 >> 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 >=20 > On my system this yields: >=20 > sol# kgdb > [...] --Apple-Mail=_82D2C7DD-0726-4302-A88A-A379DD7AE26A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUfj2hAAoJEEmwU6XuhYWOBS8H/2kWmsFk3hqmkNhZpb3ARSZe DRUlbnFoKJr2QRQEn8nCCxPfiBk9L2dgBVuiPDE2nkPKzYIGTjgeDyGtRISa0dUm IWk5QPt5hcRd6ncHHWMOXssTAmOKwz+G7oiyqsQSwBzA4GAFnGduhXtQp4M5thP0 8e/ScwNDYSEi6kncyWlOksXrUeAz+OELYf0MqyJEutPmGmU8uIxUn6/frBApDSQb htKOGFYd0GFO1g1S9BIO86x9Ghg9aJTuigaVy/QBWpTBUo5J57ciGn28SqZw5nUl WjsJB3eeepW8J+i57na6hUsHPp0Q0oGjC927jQOx/zAJTm587hFK8mTIp83w9+E= =zC7r -----END PGP SIGNATURE----- --Apple-Mail=_82D2C7DD-0726-4302-A88A-A379DD7AE26A--