Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2010 15:10:02 GMT
From:      Yuriy Kohut <ykohut@onapp.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/149853: kernel panic: HYPERVISOR_update_va_mapping
Message-ID:  <201008211510.o7LFA2at055231@www.freebsd.org>
Resent-Message-ID: <201008211520.o7LFK1Ko036691@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         149853
>Category:       kern
>Synopsis:       kernel panic: HYPERVISOR_update_va_mapping
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 15:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Yuriy Kohut
>Release:        8.1-RELEASE
>Organization:
UK2, OnApp
>Environment:
FreeBSD 8.1-RELEASE #1: Sat Aug 21 21:25:02 EEST 2010 root@freebsd81:/mnt/usr/src/sys/XEN i386
>Description:
WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.1-RELEASE #1: Sat Aug 21 21:25:02 EEST 2010
    root@freebsd81:/mnt/usr/src/sys/XEN i386
Xen reported: 2333.412 MHz processor.
Timecounter "ixen" frequency 1000000000 Hz quality 0
CPU: Intel(R) Xeon(R) CPU            5148  @ 2.33GHz (2333.41-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6f6  Family = 6  Model = f  Stepping = 6
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA>
  AMD Features=0x20100000<NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant

Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries
1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size
1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
L2 cache: 4096 kbytes, 16-way associative, 64 bytes/line
real memory  = 115343360 (110 MB)
Physical memory chunk(s):
0x00000000004f1000 - 0x0000000006bb2fff, 107749376 bytes (26306 pages)
avail memory = 106258432 (101 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
panic: HYPERVISOR_update_va_mapping(((unsigned long)(va)), (pa | 0x002 | 0x001 | pgeflag | pmap_cache_bits(mode, 0)), UVMF_INVLPG| UVMF_ALL) < 0: /usr/src/sys/i386/xen/pmap.c:1269
cpuid = 0
KDB: enter: panic
[thread pid 0 tid 0 ]
Stopped at      kdb_enter+0x3a: movl    $0,kdb_why
db> [root@vl-radar-box1 ~]# xm console nynU5Rfkh02U

db> 
db> where
Tracing pid 0 tid 0 td 0xc03db2f0
kdb_enter(c0367720,c0367720,c038b851,c04b4cb4,0,...) at kdb_enter+0x3a
panic(c038b851,c0393c99,c03939ab,4f5,0,...) at panic+0x136
pmap_mapdev_attr(0,0,500,6,c04b4d44,...) at pmap_mapdev_attr+0x13d
pmap_mapbios(0,0,500,1,c04b4d44,...) at pmap_mapbios+0x27
x86bios_call(c0cca3c0,0,0,76,c036bd11,...) at x86bios_call+0x212
module_register_init(c03d6130,6020800,6020800,4b9000,0,...) at module_register_init+0xa7
mi_startup(4b9000,0,0,0,0,...) at mi_startup+0x96
btext() at btext+0x95
>How-To-Repeat:
1. Get Xen Dom0 installed.
Xen version: 3.0.3 x86_64
The same isuue reproduced on Xen 3.4.2 x86_64 too.


2. Get FreeBSD DomU image ready like described at:
http://forums.freebsd.org/showthread.php?t=10268

3. FreeBSD DomU config file:
# cat /etc/xen/nynU5Rfkh02U
kernel = "/var/lib/xen/images/kernel.nynU5Rfkh02U"
memory = "110"
name = "nynU5Rfkh02U"
vcpus = "1"
vid = "13"
sanip = "10.200.200.19"

vif = [ 'mac=00:16:3e:f3:a5:6f, bridge=xenbr0, ip=68.169.47.45, vifname=nynU5Rfkh02U, rate=0Mb/s' ]
disk = [ 'phy:/dev/iscsi_0_13,sda,w', 'phy:/dev/iscsi_0_133,sdb,w' ]

extra = "boot_verbose=1"
extra += ",vfs.root.mountfrom=ufs:/dev/da0"
extra += ",kern.hz=100"

4. Create Xen DomU, run:
# xm create nynU5Rfkh02U -c
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008211510.o7LFA2at055231>