Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2013 16:02:07 +0200
From:      =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= <roger.pau@citrix.com>
To:        "Eggert, Lars" <lars@netapp.com>
Cc:        "freebsd-xen@freebsd.org" <freebsd-xen@FreeBSD.org>
Subject:   Re: Xen 4.2 PV fails to boot -CURRENT PV domU
Message-ID:  <522DD4DF.10607@citrix.com>
In-Reply-To: <D5A11CB8-6E77-47F9-9110-B9A4EAB93745@netapp.com>
References:  <455A20DD-3985-45EC-AC51-A3AFD33180F1@netapp.com> <522DB6A2.5050205@citrix.com> <C28354B7-1453-416A-9984-296BA9C76A0D@netapp.com> <D5A11CB8-6E77-47F9-9110-B9A4EAB93745@netapp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 09/09/13 15:13, Eggert, Lars wrote:
> Hi,
> 
> On Sep 9, 2013, at 14:06, "Eggert, Lars" <lars@netapp.com>
>  wrote:
>> thanks, let me try your suggestion/patch.
> 
> I applied the patch and tried booting. That failed (as expected) with a "bad pte" panic:
> 
> ...
> Trying to mount root from ufs:/dev/ada0s1a []...
> start_init: trying /sbin/init
> dumpon: /dev/da1s1a: No such file or directory
> pid 40 (sh), uid 0: exited on signal 11
> TPTE at 0xbf840258  IS ZERO @ VA 0804b000
> panic: bad pte
> cpuid = 0
> KDB: enter: panic
> [ thread pid 40 tid 100032 ]
> Stopped at      kdb_enter+0x3d: movl    $0,kdb_why
> 
> I then reverted r244237. The domU now boots a bit further, but there still seem to be significant issues. Below is the complete log.

Applying the patch I've sent and reverting r244237 seems to be enough 
for me, I can get the guest to boot fine. This is the cmdline that I 
use for booting:

boot_verbose=1,vfs.root.mountfrom=ufs:/dev/xbd0p2,kern.hz=100,hw.mca.enabled=0

WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
Copyright (c) 1992-2013 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 10.0-CURRENT #72 06b2ac0: Mon Sep  9 15:54:59 CEST 2013
    root@:/usr/obj/usr/src/sys/XEN i386
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 3066.888 MHz processor.
CPU: Intel(R) Xeon(R) CPU           W3550  @ 3.07GHz (3066.89-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x106a5  Family = 0x6  Model = 0x1a  Stepping = 5
  Features=0xbfe3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x9ce3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT>
  AMD Features=0x28100000<NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>

Data TLB: 4 KB pages, 4-way set associative, 64 entries
1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
L2 cache: 256 kbytes, 8-way associative, 64 bytes/line
real memory  = 536870912 (512 MB)
Physical memory chunk(s):
0x000000000085f000 - 0x000000001f6a0fff, 518266880 bytes (126530 pages)
avail memory = 515629056 (491 MB)
random device not loaded; using insecure entropy
ULE: setup cpu 0
Event-channel device installed.
null: <null device, zero device>
nfslock: pseudo-device
io: <I/O>
random: <Software, Yarrow> initialized
mem: <memory>
Pentium Pro MTRR support enabled
xc0: <Xen Console> on motherboard
xenstore0: <XenStore> on motherboard
Grant table initialized
xen_et0: <Xen PV Clock> on motherboard
Event timer "XENTIMER" frequency 1000000000 Hz quality 950
Timecounter "XENTIMER" frequency 1000000000 Hz quality 950
xen_et0: registered as a time-of-day clock (resolution 10000000us, adjustment 5.000000000s)
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 4096
lo0: bpf attached
xctrl0: <Xen Control Device> on xenstore0
xenbusb_front0: <Xen Frontend Devices> on xenstore0
xenbusb_add_device: Device device/suspend/event-channel ignored. State 6
xn0: <Virtual Network Interface> at device/vif/0 on xenbusb_front0
xn0: bpf attached
xn0: Ethernet address: 00:16:3e:47:d4:52
xenbusb_back0: <Xen Backend Devices> on xenstore0
xn0: backend features: feature-sg feature-gso-tcp4
xbd0: 20480MB <Virtual Block Device> at device/vbd/51712 on xenbusb_front0
xbd0: features: flush, write_barrier
xbd0: synchronize cache commands enabled.
GEOM: new disk xbd0
TSC timecounter discards lower 1 bit(s)
Timecounter "TSC-low" frequency 1533444000 Hz quality 800
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/xbd0p2 []...
WARNING: / was not properly dismounted
WARNING: /: mount pending error: blocks 0 files 1
start_init: trying /sbin/init
Setting hostuuid: ee840805-6f57-4031-b4b8-919d4ac8021a.
Setting hostid: 0xf9f637d0.
No suitable dump device was found.
Entropy harvesting: interrupts ethernet point_to_pointsha256: /kernel: No such file or directory
 kickstart.
swapon: /dev/ad0p3: No such file or directory
Starting file system checks:
** SU+J Recovering /dev/xbd0p2
** Reading 33554432 byte journal from inode 4.
** Building recovery table.
** Resolving unreferenced inode list.
** Processing journal entries.
** 17 journal records in 1024 bytes for 53.12% utilization
** Freed 0 inodes (0 dirs) 0 blocks, and 0 frags.

***** FILE SYSTEM MARKED CLEAN *****
Mounting local file systems:.
Writing entropy file:.
xn0: link state changed to DOWN
xn0: link state changed to UP
Starting Network: lo0 xn0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
xn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=503<RXCSUM,TXCSUM,TSO4,LRO>
	ether 00:16:3e:47:d4:52
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet manual
	status: active
Starting devd.
Starting dhclient.
DHCPDISCOVER on xn0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 172.16.1.1
DHCPREQUEST on xn0 to 255.255.255.255 port 67
DHCPACK from 172.16.1.1
bound to 172.16.1.107 -- renewal in 43200 seconds.
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
add net fe80::: gateway ::1
add net ff02::: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
realpath: /dev/dumpdev: No such file or directory
/etc/rc: WARNING: Dump device does not exist.  Savecore not run.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Clearing /tmp (X related).
Updating motd:.
Performing sanity check on sshd configuration.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.




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