From nobody@FreeBSD.org  Wed Jun 30 12:46:23 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DB989106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jun 2010 12:46:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CA9A28FC20
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jun 2010 12:46:23 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5UCkN2N067264
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jun 2010 12:46:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o5UCkNuL067263;
	Wed, 30 Jun 2010 12:46:23 GMT
	(envelope-from nobody)
Message-Id: <201006301246.o5UCkNuL067263@www.freebsd.org>
Date: Wed, 30 Jun 2010 12:46:23 GMT
From: Yuriy Kohut <ykohut@onapp.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: panic: HYPERVISOR_update_va_mapping
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148262
>Category:       kern
>Synopsis:       [xen] [panic] HYPERVISOR_update_va_mapping
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-xen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 30 12:50:06 UTC 2010
>Closed-Date:    Sun Nov 28 16:33:43 UTC 2010
>Last-Modified:  Sun Nov 28 16:33:43 UTC 2010
>Originator:     Yuriy Kohut
>Release:        Build based on CVS tag=RELENG_8
>Organization:
UK2, OnApp
>Environment:
Not available.
Arch: i386
release=cvs tag=RELENG_8
>Description:
Build is based on CVS tag=RELENG_8 according to the documentation
('Preparing the Guest' chapter) at:
http://forums.freebsd.org/showthread.php?t=10268

When Xen DomU is booted, its kernel panics.

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> 
db> where
Tracing pid 0 tid 0 td 0xc03e3d70
kdb_enter(c036e498,c036e498,c03938bb,c067acb4,0,...) at kdb_enter+0x3a
panic(c03938bb,c039bce1,c039b9f3,4f5,0,...) at panic+0x136
pmap_mapdev_attr(0,0,500,6,c067ad44,...) at pmap_mapdev_attr+0x13d
pmap_mapbios(0,0,500,1,c067ad44,...) at pmap_mapbios+0x27
x86bios_call(c22e53c0,0,0,76,c0372b69,...) at x86bios_call+0x212
module_register_init(c03deb90,1020800,1020800,67f000,0,...) at module_register_init+0xa7
mi_startup(67f000,0,0,0,0,...) at mi_startup+0x96
btext() at btext+0x95
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-xen 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jul 3 11:18:21 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148262 

From: Juergen Lock <nox@jelal.kn-bremen.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/148262: [xen] [panic] HYPERVISOR_update_va_mapping
Date: Sat, 2 Oct 2010 17:31:51 +0200

 Oops forgot to Cc bug-followup@ ...
 
 Subject: Re: kern/148262: [xen] [panic] HYPERVISOR_update_va_mapping
 In-Reply-To: <201007031118.o63BIvvB062963@freefall.freebsd.org>
 Cc: freebsd-bugs@FreeBSD.org, freebsd-xen@FreeBSD.org,
         Yuriy Kohut <ykohut@onapp.com>, jkim@FreeBSD.org
 
 [kern/149853 is a duplicate of this]
 
 I don't use xen myself here but I helped someone on irc troubleshoot
 the same crash (before I saw these PRs), and found out the reason it
 didn't happen on 8.0 is the x86bios code is new in 8.1 and xen doesn't
 like this call in x86bios_map_mem():
 
 	x86bios_ivt = pmap_mapbios(X86BIOS_IVT_BASE, X86BIOS_IVT_SIZE);
 
 see:
 
 	http://fxr.watson.org/fxr/source/compat/x86bios/x86bios.c?v=FREEBSD8#L498
 
 It seems the only consumers of x86bios are atkbd(4), dpms(4), and
 vesa(4), and indeed removing atkbd(4) from the xen kernel got his
 domU running.
 
 (And now that I just looked at /sys/i386/conf/XEN in svn I see this
 was already fixed in r204157, it only never got MFCd.)

From: yura <yura.kohut@gmail.com>
To: bug-followup@FreeBSD.org, ykohut@onapp.com
Cc:  
Subject: Re: kern/148262: [xen] [panic] HYPERVISOR_update_va_mapping
Date: Tue, 5 Oct 2010 17:39:21 +0300

 --0016e64699666bc4560491dfa03d
 Content-Type: text/plain; charset=ISO-8859-1
 
 I have built new FreeBSD XEN kernel based the RELENG_8_1
 
 The problem still exists.
 
 The kernel config file /sys/i386/conf/XEN version is:
 $FreeBSD: src/sys/i386/conf/XEN,v 1.9.2.1.4.1 2010/06/14 02:09:06 kensmith
 Exp $
 
 
 The problem is still on RELENG_8 too.
 
 ---
 Regards
 Yuriy Kohut.
 
 --0016e64699666bc4560491dfa03d
 Content-Type: text/html; charset=ISO-8859-1
 
 I have built new FreeBSD XEN kernel based the RELENG_8_1<br><br>The problem still exists.<br><br>The kernel config file /sys/i386/conf/XEN version is:<br>$FreeBSD: src/sys/i386/conf/XEN,v 1.9.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $<br>
 <br><br>The problem is still on RELENG_8 too.<br><br clear="all">---<br>Regards<br>Yuriy Kohut.<br>
 
 --0016e64699666bc4560491dfa03d--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148262: commit references a PR
Date: Sun, 28 Nov 2010 16:25:22 +0000 (UTC)

 Author: cperciva
 Date: Sun Nov 28 16:25:16 2010
 New Revision: 216008
 URL: http://svn.freebsd.org/changeset/base/216008
 
 Log:
   MFC r204157: Remove atkbd and friends, since they cause the XEN kernel
   to panic.
   
   PR:		kern/148262, kern/149853
 
 Modified:
   stable/8/sys/i386/conf/XEN
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/i386/conf/XEN
 ==============================================================================
 --- stable/8/sys/i386/conf/XEN	Sun Nov 28 16:09:40 2010	(r216007)
 +++ stable/8/sys/i386/conf/XEN	Sun Nov 28 16:25:16 2010	(r216008)
 @@ -66,12 +66,12 @@ options 	SMP			# Symmetric MultiProcesso
  device		apic			# I/O APIC
  
  
 -device		atkbdc		# AT keyboard controller
 -device		atkbd		# AT keyboard
 +#device		atkbdc		# AT keyboard controller
 +#device		atkbd		# AT keyboard
  device		psm		# PS/2 mouse
  device		pci
  
 -device		kbdmux		# keyboard multiplexer
 +#device		kbdmux		# keyboard multiplexer
  
  # Pseudo devices.
  device		loop		# Network loopback
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: cperciva 
State-Changed-When: Sun Nov 28 16:32:49 UTC 2010 
State-Changed-Why:  
Fix MFCed to stable/8 as r216008. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148262 
>Unformatted:
