NetBSD Problem Report #51743

From  Mon Dec 26 05:26:47 2016
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 276797A2D3
	for <>; Mon, 26 Dec 2016 05:26:47 +0000 (UTC)
Message-Id: <>
Date: Mon, 26 Dec 2016 05:26:46 +0000 (UTC)
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
NetBSD kvm 7.99.52 NetBSD 7.99.52 (KVM) #527: Mon Dec 26 13:58:06 JST 2016  ozaki-r@rangeley:(hidden) amd64
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.
Build a kernel with DEBUG, and boot it on a KVM.

NetBSD Home
NetBSD PR Database Search

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