From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27335 invoked from network); 9 Dec 2020 19:47:07 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 9 Dec 2020 19:47:07 -0000 Received: from mail-io1-f45.google.com ([209.85.166.45]) by ewsd; Wed Dec 9 14:42:49 -0500 2020 Received: by mail-io1-f45.google.com with SMTP id z5so2857122iob.11 for <9front@9front.org>; Wed, 09 Dec 2020 11:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=kEZUOlD0oT53lVUc03fwk42F/91ZzvFTBjCQr2kq2iU=; b=b5Lyd7O9fkhNTXpUWpnRrNIxfpDGp58D6Ulsi10Rl02AL4flpFOpapcBeQKiR3c918 BlqU3eXes7/ykhrVUfiBTuA8Gym35XZI5i6Y3uI0zIob2V5kLvtHXPbpLelhLOeCjBm5 IPK58prEbW/x+0xWrJ3cvdbfjuoYYeQ9JsO7T+7jW0S0Cjq0+KDjf49Fecvv5bzTRP2+ +j5ce77dZtxHfjclhk0AegLELmLogaOyZa7a5PPKMSt4By7UqcIaysgPNAZ5c6lGMJDL ryBdKWHjeYjJtQiJ1rqORjwZY+D+5Pi1f56a5Z2bpx365EQuT1T1Rh1t02hwokO/erox Wycg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=kEZUOlD0oT53lVUc03fwk42F/91ZzvFTBjCQr2kq2iU=; b=mOWeO9fJjcM4/noncvXt6Kei/agmSo8zt6lWQcrI0n0wsDBRudnsyzAy+wSrzSvjPs ua/5NUh+7J5VKsntGio+lf88X3QL6/CIXy5XJrDUie60X6+2BfNg6mAbA2xGkfv+scqY 5WLT9eRGdTRmtaD22UT5tREKDndMbXppyubhWpx/jlqZ7qzIGMszdeKRGRqXXvzGKmFz 2Wp/vm891CIjCqg9tHboTOM6mXkXZkHi/u5lSQ2awI0YmUfUE2b+Y/9ru9RaSB+Gr4gZ slU19x+lXfWrOBbo7sru/9k+vuwyHd0ZySjpXMUQdcb/x3JN4na659WgNtf0JcwGeP2I r7pg== X-Gm-Message-State: AOAM530ttjlmD9FgZ76reh5hDLjgJ5EPurj0OfNhvBTjgOF2NDaTkdsy ZD3NK1VeVPQp2BaY5ffuq9Bi8bEX4Rs= X-Google-Smtp-Source: ABdhPJyUMdDrjhroFGLWMMe7D4Y61+DBH/klYe6rf1KrVo9ZOQyKabpHE6AUD4ssi5ROlCDgcSuEew== X-Received: by 2002:a5e:dc43:: with SMTP id s3mr4914679iop.101.1607542966678; Wed, 09 Dec 2020 11:42:46 -0800 (PST) Return-Path: Received: from [10.0.1.5] (c-67-184-39-205.hsd1.il.comcast.net. [67.184.39.205]) by smtp.gmail.com with ESMTPSA id t26sm1322130ioi.11.2020.12.09.11.42.45 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2020 11:42:46 -0800 (PST) From: Xiao-Yong Jin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Date: Wed, 9 Dec 2020 13:42:45 -0600 References: To: 9front@9front.org In-Reply-To: Message-Id: <113209FF-35EA-4C62-B3D1-0CD39CE37BCF@gmail.com> X-Mailer: Apple Mail (2.3654.20.0.2.21) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: content-addressed HTML over ActivityPub browser engine-aware generator Subject: Re: [9front] kernel crash in bhyve Reply-To: 9front@9front.org Precedence: bulk Here is the boot output from the current 9pc64 with *nomtrr= Plan 9 wrmsr to register 0x401(0) on vcpu 0 125 holes free 0x00024000 0x0009f000 503808 0x00100000 0x00110000 65536 0x005f7000 0x136ff000 319848448 320417792 bytes free cpu0: 6785MHz GenuineIntel P6 (AX 000306A9 CX F69A6217 DX 9F8BFBFF) LAPIC: fee00000 0xffffff00fee00000 ELCR: 0260 cpu0: lapic clock at 268MHz #l0: virtio: 1000Mbps port 0x2080 irq 6 ea 52540000b008 1024M memory: 336M kernel data, 688M user, 1313M swap Here is the boot output after adding two memmapdump(). Plan 9 wrmsr to register 0x401(0) on vcpu 0 0000000000000000-0000000000020000 4 0000000000020000-000000000009fc00 2 000000000009fc00-00000000000a0000 4 00000000000a0000-00000000000c0000 80000001 00000000000c0000-00000000000d0000 4 00000000000d0000-00000000000f0000 1 00000000000f0000-0000000000100000 4 0000000000100000-0000000000110000 2 0000000000110000-00000000005f7000 4 00000000005f7000-0000000040000000 2 0000000040000000-0000000100000000 0 0000000000000000-00000000000a0000 4 00000000000a0000-00000000000c0000 80000001 00000000000c0000-00000000000d0000 4 00000000000d0000-00000000000f0000 1 00000000000f0000-0000000040000000 4 0000000040000000-0000000100000000 0 panic: rampage: out of memory dumpstack ktrace /kernel/path 0xffffffff801173c7 0xffffffff8001fbf8 < On Dec 9, 2020, at 1:05 PM, cinap_lenrek@felloff.net wrote: > > the wmsr 0x401 is harmless. its trying to initialize > the MCE registers. you can get rid of it by passing > *nomce= to the kernel. > > for the panic... > > is this a regression or the first time you tried it? > > the kernel calls rampage() initially to get memory > for the page tables todo the mappings at KZERO. > > if this is a regression, you might try the *nomtrr= > flag. maybe the mtrr's are giving strange cache > attributes which makes the kernel exclude it from > the memory map. > > the relevant line is here: > > /* RAM needs to be writeback */ > mtrrexclude(MemRAM, "wb"); > > maybe you can insert a call of memmapdump() before > and after this line? > > -- > cinap