From owner-freebsd-xen@freebsd.org Thu May 24 11:26:13 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D88E5EE8540 for ; Thu, 24 May 2018 11:26:12 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CCAA84F27 for ; Thu, 24 May 2018 11:26:12 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id f6-v6so4071304wmc.4 for ; Thu, 24 May 2018 04:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8Zi6QcnvaMzANxr8ommRKuN3XJdiAnNCiE2bPkJ6TcI=; b=c+dwsz2Bh36z7gkzQybA+JzKatkdDWge5UIpXQNrXRSDGabi3cp2s6cVyWj0riwVei 9qT6A95RagI8VbP9xJ2NVRdyRbmtGtqwC4Ig6t2SmXewJu/p5C6eyOLS58poUBrxkMVe qq+PS9PnmlVNp5+I+5+btV5vQSYRQcwcoigkVzXc3VBQEypHLVcCRjZvcjb1GRcghCNf Nigu8c/NNCcMPHv+nYMSTfOiYEDjZSFAmTvUrk/Hk+/0QBP5SHC1Kc4ckYuLqIqjH7gF r9Zbi2cGMJ0dCLN65QiSJRBCTzTqPcoJrswTSxFzthW9QhTnNSmPpWzurRpfSoGQPU0z JSrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8Zi6QcnvaMzANxr8ommRKuN3XJdiAnNCiE2bPkJ6TcI=; b=bgDkn5gOaDowJ1sfHh3Mcq3V7Snp9cZ53hNa2hnX3nVN45daQbk8ye+QrZnQG38eoG voLtG7xNJ7ZnUiIbmdTonQNW9IfL5r7ijy81Ov9JhX1mxfV4WELUFImnH+US6nCtrr5W q9sz83WCwHafRrK4t0vw+KMgN+p06VY4JOoO1MXgsnZn6KL3Y1Nl1AxVrAfrQyQwsl/V uvmAcpl/Bu8vsfgE+we1lW+Mvo/jm15tLozjtVRJQFedxieGNSmp9GWuWCbzfQACraEn UShIZaHb/E3j9v3D3veoIXReJ4ODojGfKYXps+P8wle2TxOG2qew8q2i+GgIj/GI3sCu cGhA== X-Gm-Message-State: ALKqPwdnL5hmTI6OfbwmwCChbjG6j16/bmVRwL68+1yvMCbyl8v3vtKG vtYOWR7exL54gUFdttE2hH02FvLwhIVGdKVM5As= X-Google-Smtp-Source: AB8JxZp+ehWo30gfHGlX063oKTxo/KWHd59UIoM/RLhjZjFwWv7mZXIIeYXGXmUh+m2AI+6RIHmH2jxPmqwXED23vmM= X-Received: by 2002:aa7:d056:: with SMTP id n22-v6mr11649489edo.193.1527161171057; Thu, 24 May 2018 04:26:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:aa21:0:0:0:0:0 with HTTP; Thu, 24 May 2018 04:25:30 -0700 (PDT) In-Reply-To: <20180523151108.cxize3bblbpw3ewc@MBP-de-Roger.citrite.net> References: <20180519081030.qhzyjdrpwcekmcac@MacBook-Pro-de-Roger.local> <20180521090310.c46eexnwe4c7w62x@MacBook-Pro-de-Roger.local> <20180523081547.2vvthg42vmphvbex@MacBook-Pro-de-Roger.local> <20180523151108.cxize3bblbpw3ewc@MBP-de-Roger.citrite.net> From: Pratyush Yadav Date: Thu, 24 May 2018 16:55:30 +0530 Message-ID: Subject: Re: Xen kernel fails to boot, d0v1 triple fault looks like the cuplrit To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Cc: FreeBSD-Xen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.26 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: Thu, 24 May 2018 11:26:13 -0000 On Wed, May 23, 2018 at 8:41 PM, Roger Pau Monn=C3=A9 wrote: > On Wed, May 23, 2018 at 08:27:29PM +0530, Pratyush Yadav wrote: >> Hi, >> >> I think we have different pv.c files. For me, line 113 is: >> /* Xen init_ops implementation. */ >> >> The declarations of doublefault_stach, mce_stack, etc are in line 101. >> >> Similarly, line 329 for me is: >> { >> >> in function xen_pv_parse_symtab(void). The declarations your diff >> mentions in line 329 are in line 224. >> >> This is in sync with the official repository [0]. Maybe you have >> modifications that are not yet upstream? > > Sorry, I did indeed have other changes in pv.c. I'm appending the > patch on top of current HEAD. > >> Anyway, I manually made the changes. It still does not boot (I used >> make kernel -DKERNFAST, but I don't think that should make a >> difference). > > FWIW, I think the recommended way is KERNFAST=3D1. Thanks! > Can you paste the error? I think you should no longer get a triple > page fault in mp_machdep.c:307. > Yeah, the address does change. RIP now points to ffffffff80b52fbe. I ran addr2line on it and it points to ./machine/pcpu.h:231 I didn't write the full error because it is a lot of typing which takes time. Most of it is probably not useful information. If you do want the full error log, let me know and I'll type it out. One thing, I simply ran make kernel. Does that update kernel.debug, or do I have to do something else to update it? --=20 Regards, Pratyush Yadav