NetBSD Problem Report #51743

From www@NetBSD.org  Mon Dec 26 05:26:47 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 276797A2D3
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 Dec 2016 05:26:47 +0000 (UTC)
Message-Id: <20161226052646.0F0F07A340@mollari.NetBSD.org>
Date: Mon, 26 Dec 2016 05:26:46 +0000 (UTC)
From: ozaki-r@netbsd.org
Reply-To: ozaki-r@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: Kernel with DEBUG fails to boot up on KVM since introducing uvm_hotplug(9) 
X-Send-Pr-Version: www-1.0

>Number:         51743
>Category:       kern
>Synopsis:       Kernel with DEBUG fails to boot up on KVM since introducing uvm_hotplug(9)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 26 05:30:00 +0000 2016
>Originator:     Ryota Ozaki
>Release:        -current
>Organization:
>Environment:
NetBSD kvm 7.99.52 NetBSD 7.99.52 (KVM) #527: Mon Dec 26 13:58:06 JST 2016  ozaki-r@rangeley:(hidden) amd64
qemu-kvm-2.8.0-1.fc25.x86_64
>Description:
A kernel with DEBUG fails to boot up on a KVM since the commit
"Introduce uvm_hotplug(9) to the kernel.".

Before introducing the feature, a kernel boots up with the following message:

  >> NetBSD/x86 PXE boot, Revision 5.1 (from NetBSD 6.0)
  >> Memory: 625/1046288 k
  Press return to boot now, any other key for boot menu
  booting netbsd - starting in 0 seconds.     
  PXE BIOS Version 2.1
  Using PCI device at bus 0 device 6 function 0
  Ethernet address 52:54:00:bb:18:46
  6091699+3349216+984352 [646536+430846]=0xc299b0
  kernel text is mapped with 4 large pages and 0 normal pages
  ksyms: checking .text
  ksyms: checking .rodata
  ksyms: checking .eh_frame
  ...

After introducing the feature, the kernel seems to hang before outputting
"kernel text is mapped ...". boot -x doesn't show nothing. Removing
virtio balloon doesn't help as well.

If disable DEBUG. the kernel boots up successfully.

Note that a kernel with or without DEBUG boots up on a physical machine
(and ESXi as saying by hikaru@) without any problems.
>How-To-Repeat:
Build a kernel with DEBUG, and boot it on a KVM.
>Fix:
n/a

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.