From nobody@FreeBSD.org  Thu Feb 17 00:07:09 2011
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 E7CF51065673
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Feb 2011 00:07:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D8C9F8FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Feb 2011 00:07:09 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p1H079ZW026737
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Feb 2011 00:07:09 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p1H0789R026736;
	Thu, 17 Feb 2011 00:07:09 GMT
	(envelope-from nobody)
Message-Id: <201102170007.p1H0789R026736@red.freebsd.org>
Date: Thu, 17 Feb 2011 00:07:09 GMT
From: ALex <al@o.dp.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. Not Work SMP
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         154833
>Category:       kern
>Synopsis:       [xen]: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. Not Work SMP
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-xen
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 17 00:10:10 UTC 2011
>Closed-Date:    
>Last-Modified:  Mon Mar 21 03:23:24 UTC 2011
>Originator:     ALex
>Release:        FREEBSD 8.2RC3
>Organization:
hosting & mail services
>Environment:
FreeBSD b5.o.dp.ua 8.2-RC3 FreeBSD 8.2-RC3 #0: Thu Feb 17 01:30:32 EET 2011     root@b5.o.dp.ua:/usr/obj/d01/src/sys/xen_o_dp_ua_2011-02-17  i386

>Description:
Copyright (c) 1992-2011 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.2-RC3 #0: Thu Feb 17 01:30:32 EET 2011
    root@b5.o.dp.ua:/usr/obj/d01/src/sys/xen_o_dp_ua_2011-02-17 i386
Xen reported: 2812.420 MHz processor.
Timecounter "ixen" frequency 1953125 Hz quality 0
CPU: AMD Athlon(tm) II X4 630 Processor (2812.42-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100f52  Family = 10  Model = 5  Stepping = 2
  Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802009<SSE3,MON,CX16,POPCNT>
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
  TSC: P-state invariant
Data TLB: 48 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 268435456 (256 MB)
Physical memory chunk(s):
0x0000000000584000 - 0x000000000fafbfff, 257392640 bytes (62840 pages)
avail memory = 253796352 (242 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
SMP: Added CPU 2 (AP)
ULE: setup cpu 0
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
io: <I/O>
mem: <memory>
random: <entropy source, Software, Yarrow>
null: <null device, zero device>
nfslock: pseudo-device
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: <Xen Hypervisor Clock> on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 1000000us)
xs_probe: Probe retuns 0
xenstore0: <XenStore> on motherboard
Grant table initialized
xc0: <Xen Console> on motherboard
Device configuration finished.
procfs registered
Timecounters tick every 1.000 msec
[XEN] hypervisor wallclock nudged; nudging TOD.
IP Filter: v4.1.28 initialized.  Default = pass all, Logging = disabled
ipfw2 (+ipv6) initialized, divert enabled, nat enabled, rule-based forwarding enabled, default to accept, logging disabled
ipfw0: bpf attached
DUMMYNET with IPv6 initialized (100131)
load_dn_sched dn_sched PRIO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
load_dn_sched dn_sched WF2Q+ loaded
lo0: bpf attached
load_dn_sched dn_sched FIFO loaded
xenbusb_front0: <Xen Frontend Devices> on xenstore0
xn0: <Virtual Network Interface> at device/vif/0 on xenbusb_front0
xn0: bpf attached
xn0: Ethernet address: 00:0c:29:2e:61:85
xenbusb_back0: <Xen Backend Devices> on xenstore0
xctrl0: <Xen Control Device> on xenstore0
xbd0: 2000MB <Virtual Block Device> at device/vbd/5696 on xenbusb_front0
xbd0: attaching as ad3
GEOM: new disk ad3
xbd1: 2000MB <Virtual Block Device> at device/vbd/768 on xenbusb_front0
xbd1: attaching as ad0
xbd2: 4000MB <Virtual Block Device> at device/vbd/832 on xenbusb_front0
xbd2: attaching as ad1
xbd3: 2171MB <Virtual Block Device> at device/vbd/5632 on xenbusb_front0
xbd3: attaching as ad2
GEOM: new disk ad0
GEOM: new disk ad1
GEOM: new disk ad2
GEOM: ad3s1: geometry does not match label (16h,63s != 64h,63s).
GEOM_JOURNAL: Journal 3740793249: ad1 contains data.
GEOM_JOURNAL: Journal 3740793249: ad1 contains journal.
GEOM_JOURNAL: Journal ad1 clean.
GEOM_JOURNAL: BIO_FLUSH not supported by ad1.
GEOM_JOURNAL: Journal 2828271165: ad0p1 contains data.
GEOM_JOURNAL: Journal 2828271165: ad0p2 contains journal.
GEOM_JOURNAL: Journal ad0p1 clean.
GEOM_JOURNAL: BIO_FLUSH not supported by ad0p2.
GEOM_JOURNAL: BIO_FLUSH not supported by ad0p1.
Trying to mount root from ufs:/dev/ad0p1.journal
rtc0: [XEN] xen_rtc_gettime
rtc0: [XEN] xen_rtc_gettime: wallclock 1297818112 sec; 999999742 nsec
rtc0: [XEN] xen_rtc_gettime: uptime 89773 sec; 600952714 nsec
rtc0: [XEN] xen_rtc_gettime: TOD 1297907886 sec; 600952456 nsec
start_init: trying /sbin/init
Setting hostuuid: da977cac-8720-ab23-7df6-926e10d5829e.
Setting hostid: 0xba292a57.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
swapon: /dev/ad0s1b: No such file or directory
Starting file system checks:
/dev/ad0p1.journal: FILE SYSTEM CLEAN; SKIPPING CHECKS
Mounting local file systems:.
Setting hostname: b5.o.dp.ua.
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=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
xn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:29:2e:61:85
        inet 10.222.10.85 netmask 0xfffffff0 broadcast 10.222.10.95
        media: Ethernet manual
        status: active
add net default: gateway 10.222.10.81
Additional routing options: IP gateway=YES.
Starting devd.
Creating and/or trimming log files.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Clearing /tmp (X related).
Updating motd:.
Starting sshd.
Starting cron.
Starting default mousedmoused: unable to open /dev/psm0: No such file or directory
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: "Likarpenkov ALexander" <al@o.dp.ua>
To: <bug-followup@FreeBSD.org>,
	<al@o.dp.ua>
Cc:  
Subject: i386/154833: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. Not Work SMP
Date: Thu, 17 Feb 2011 02:27:11 +0200

 eval: cannot open /dev/ttyv*: No such file or directory
 Starting inetd.
 Starting background file system checks in 60 seconds.
 
 Thu Feb 17 01:58:19 EET 2011
 
 FreeBSD/i386 (b5.o.dp.ua) (xc0)
 
 Feb 17 01:58:19 b5 getty[927]: open /dev/ttyv1: No such file or directory
 Last login: Thu Feb 17 01:56:27 on xc0
 Copyright (c) 1992-2011 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 8.2-RC3 (xen_o_dp_ua_2011-02-17) #0: Thu Feb 17 01:30:32 EET 2011
 b5#
 
 
 BUT
 Name                                        ID   Mem VCPUs      State 
 Time(s)
 Domain-0                                     0   367     4     r-----  
 18002.8
 b5                                         127   256     1     -b----  
 47.1
 
 AND
 b5# top -P
 CPU:  0.0% user,  0.0% nice,  0.4% system,  0.0% interrupt, 99.6% idle
 
 Why exists only one CPU on freebsd 8.2RC3 domU system?
 
Responsible-Changed-From-To: freebsd-i386->freebsd-xen 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Feb 17 08:55:57 UTC 2011 
Responsible-Changed-Why:  
Can the Xen list offer some more insight on this? 

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

From: "Likarpenkov ALexander" <al@o.dp.ua>
To: <bug-followup@FreeBSD.org>,
	"Likarpenkov ALexander" <al@o.dp.ua>
Cc:  
Subject: i386/154833: [xen]: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. Not Work SMP
Date: Thu, 17 Feb 2011 16:56:45 +0200

 ================= CONFIG GUEST OS ==============
 #kernel = "/usr/lib/xen/boot/hvmloader"
 kernel = "/home/al/xen/kernels/freebsd82_rc3/v02/kernel"
 #builder='hvm'
 memory = 256
 name = "b5"
 vcpus=3
 pae=0
 acpi=0
 apic=1
 #cpus = "3,4"
 vif = [
         'mac=00:0c:29:2e:61:85, bridge=br1'
 ]
 disk = [
         'phy:/dev/sdb13,hda,w'
         ,'phy:/dev/sdb23,hdb,w'
 ]
 
 on_poweroff = 'destroy'
 on_reboot   = 'restart'
 on_crash    = 'restart'
 device_model = '/usr/lib/xen/bin/qemu-dm'
 boot='c'
 serial='pty'
 ne2000=0
 
 usb=1
 usbdevice='tablet'
 ======================= END config ===================
 xm list
 Name                                        ID   Mem VCPUs      State 
 Time(s)
 Domain-0                                     0   367     4     r-----  
 25619.6
 fbsd81_i386_a1                                         119   192 
 1     -b----   5219.0
 fbsd81_i386_a2                                         114   200 
 1     -b----    704.3
 fbsd81_i386_a7                                         116   200 
 1     -b----    651.7
 fbsd82__rc3_i386_b3                             216   256     1     -b----  
 14.4
 fbsd82__rc3_i386_b5                              214   256     1     r-----  
 2641.2
 centos                                     213   320     2    -b----  
 1283.1
 winxp                                      121   900     2     r-----  
 36784. 
 

From: "Likarpenkov ALexander" <al@o.dp.ua>
To: <bug-followup@FreeBSD.org>,
	"Likarpenkov ALexander" <al@o.dp.ua>
Cc:  
Subject: i386/154833: [xen]: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. Not Work SMP
Date: Thu, 17 Feb 2011 17:04:07 +0200

 xm info
 host                   : power
 release                : 2.6.32.25-jam-pv-g6c72ead
 version                : #1 SMP Fri Jan 28 04:30:47 UTC 2011
 machine                : x86_64
 nr_cpus                : 4
 nr_nodes               : 1
 cores_per_socket       : 4
 threads_per_core       : 1
 cpu_mhz                : 2812
 hw_caps                : 
 178bf3ff:efd3fbff:00000000:00001310:00802001:00000000:000037ff:00000000
 virt_caps              : hvm
 total_memory           : 3839
 free_memory            : 1075
 node_to_cpu            : node0:0-3
 node_to_memory         : node0:1075
 node_to_dma32_mem      : node0:1075
 max_node_id            : 0
 xen_major              : 4
 xen_minor              : 0
 xen_extra              : .1
 xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 
 hvm-3.0-x86_32p hvm-3.0-x86_64
 xen_scheduler          : credit
 xen_pagesize           : 4096
 platform_params        : virt_start=0xffff800000000000
 xen_changeset          : unavailable
 xen_commandline        : dummy=dummy iommu=1 dom0_mem=1024M 
 com1=19200,8n1,0xe480,17 console=com1
 cc_compiler            : gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
 cc_compile_by          : root
 cc_compile_domain      : o.dp.ua
 cc_compile_date        : Thu Feb 10 04:34:40 UTC 2011
 xend_config_format     : 4
 
>Unformatted:
