kern/154473: xen 4.0 - DomU freebsd8.1 i386, XEN kernel. Not Work SMP

ALex al at o.dp.ua
Wed Feb 2 23:30:09 UTC 2011


>Number:         154473
>Category:       kern
>Synopsis:       xen 4.0 - DomU freebsd8.1 i386, XEN kernel. Not Work SMP
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 02 23:30:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     ALex
>Release:        8.1 i386
>Organization:
hosting & mail services
>Environment:
FreeBSD 8.1-RELEASE #26: Wed Feb  2 22:48:00 UTC 2011
    al at a0.o.dp.ua:/usr/obj/xendrv/src/sys/XEN i386

>Description:
use kernel
/usr/src/sys/i386/conf/XEN

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 #26: Wed Feb  2 22:48:00 UTC 2011
    al at a0.o.dp.ua:/usr/obj/xendrv/src/sys/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 2812.408 MHz processor.
Timecounter "ixen" frequency 1000000000 Hz quality 0
CPU: AMD Athlon(tm) II X4 630 Processor (2812.41-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100f52  Family = 10  Model = 5  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,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):
0x00000000006bf000 - 0x000000000fafbfff, 256102400 bytes (62525 pages)
avail memory = 253173760 (241 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
gdtpfn=1023cb pdptpfn=990a7
INTR: Adding local APIC 1 as a target
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
panic: HYPERVISOR_update_va_mapping(((unsigned long)(va)), (pa | 0x002 | 0x001 | pgeflag | pmap_cache_bits(mode, 0)), UVMF_INVLPG| UVMF_ALL) < 0: /xendrv/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>


========================
If you comment out 
# To make an SMP kernel, the next two lines are needed
#options        SMP                     # Symmetric MultiProcessor Kernel
#device         apic                    # I/O APIC
#device         atkbdc          # AT keyboard controller
#device         atkbd           # AT keyboard
#device         psm             # PS/2 mouse
device          pci
#device         kbdmux          # keyboard multiplexer

system begins to boot
but not work SMP

If you uncomment 
#options        SMP                     # Symmetric MultiProcessor Kernel
#device         apic                    # I/O APIC
#device         atkbdc          # AT keyboard controller
#device         atkbd           # AT keyboard
#device         psm             # PS/2 mouse
device          pci
#device         kbdmux          # keyboard multiplexer


>How-To-Repeat:
always
>Fix:
If you comment out 
# To make an SMP kernel, the next two lines are needed
#options        SMP                     # Symmetric MultiProcessor Kernel
#device         apic                    # I/O APIC
#device         atkbdc          # AT keyboard controller
#device         atkbd           # AT keyboard
#device         psm             # PS/2 mouse
device          pci
#device         kbdmux          # keyboard multiplexer

system begins to boot
but not work SMP

If you uncomment 
#options        SMP                     # Symmetric MultiProcessor Kernel
#device         apic                    # I/O APIC

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 #21: Sat Jan 29 23:17:40 UTC 2011
    al at a0.o.dp.ua:/usr/obj/xendrv/src/sys/XEN i386
Xen reported: 2812.408 MHz processor.
Timecounter "ixen" frequency 1000000000 Hz quality 0
CPU: AMD Athlon(tm) II X4 630 Processor (2812.41-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100f52  Family = 10  Model = 5  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,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):
0x000000000051b000 - 0x000000000fafbfff, 257822720 bytes (62945 pages)
avail memory = 255012864 (243 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
gdtpfn=10edfb pdptpfn=bc343
INTR: Adding local APIC 1 as a target
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ULE: setup cpu 0
ULE: setup cpu 1
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
[XEN] IPI cpu=1 irq=130 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=1 irq=131 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
mem: <memory>
random: <entropy source, Software, Yarrow>
null: <null device, zero device>
nfslock: pseudo-device
io: <I/O>
Grant table initialized
xenbus0: <Xen Devices> on motherboard
xc0: <Xen Console> on motherboard
[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)
npx0: INT 16 interface
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
kernel trap 9 with interrupts disabled


Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x21:0xc02f8e51
stack pointer           = 0x29:0xc1351ca0
frame pointer           = 0x29:0xc1351ca8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 1, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 11 (idle: cpu0)
trap number             = 9
panic: general protection fault
cpuid = 0
Uptime: 1s
Cannot dump. Device not defined or unavailable.
Automatic reboot in 15 seconds - press a key on the console to abort
[XEN] hypervisor wallclock nudged; nudging TOD.
--> Press a key on the console to reboot,
--> or switch off the system now.
Rebooting...


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


More information about the freebsd-bugs mailing list