Date: Thu, 13 Jan 2011 23:29:16 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= <got.andras@deployis.eu> To: Sergey G Nasonov <snasonov@bcc.ru> Cc: freebsd-xen@freebsd.org Subject: Re: does anyone have Xen running on an AMD system? Message-ID: <4D2F7CBC.4090502@deployis.eu> In-Reply-To: <201101131722.38551.snasonov@bcc.ru> References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Sergey G Nasonov wrote: > On Thursday 13 January 2011 17:16:06 Gót András wrote: >> Is this an SMP kernel with more then 1 vcpus configured? >> >> (SMP: Added CPU 0 (BSP)) >> >> Sergey G Nasonov wrote: >>> On Wednesday 12 January 2011 20:35:38 Colin Percival wrote: >>>> Hi, >>>> >>>> On 01/12/11 05:01, Sergey G Nasonov wrote: >>>>> I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 >>>>> panic: pmap_init: page table page is out of range >>>>> >>>>> FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. >>>> Yeah, this is a completely separate bug from the one I'm trying to fix right >>>> now -- good to know that it's easily reproduced, though, and very interesting >>>> to hear that it depends on the amount of RAM you have. Do you get the same >>>> panic with -CURRENT? (I'm guessing you will given that the xen code is very >>>> close to identical between 9.0 and 8.2, but always best to check...) >>>> >>>> >>> Hi, >>> >>> CURRENT kernel goes to panic even with 512 MB RAM: >>> >>> >>> 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-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 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 >>> root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 >>> WARNING: WITNESS option enabled, expect reduced performance. >>> Xen reported: 1995.001 MHz processor. >>> Timecounter "ixen" frequency 1953125 Hz quality 0 >>> CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-class CPU) >>> Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 >>> 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=0xce33d<SSE3,DTES64,MON,DS_CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1> >>> AMD Features=0x20000000<LM> >>> AMD Features2=0x1<LAHF> >>> 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: 6144 kbytes, 16-way associative, 64 bytes/line >>> real memory = 536870912 (512 MB) >>> Physical memory chunk(s): >>> 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) >>> avail memory = 515637248 (491 MB) >>> 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. >>> mem: <memory> >>> Pentium Pro MTRR support enabled >>> null: <null device, zero device> >>> io: <I/O> >>> nfslock: pseudo-device >>> random: <entropy source, Software, Yarrow> >>> [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, adjustment 0.500000000s) >>> xenstore0: <XenStore> on motherboard >>> Device configuration finished. >>> procfs registered >>> Timecounters tick every 10.000 msec >>> [XEN] hypervisor wallclock nudged; nudging TOD. >>> lo0: bpf attached >>> xenbusb_front0: <Xen Frontend Devices> on xenstore0 >>> >>> >>> Fatal trap 1: privileged instruction fault while in kernel mode >>> cpuid = 0; apic id = 00 >>> instruction pointer= 0x21:0xc0334e5c >>> stack pointer = 0x29:0xc21fec84 >>> frame pointer = 0x29:0xc21fec88 >>> code segment= base 0x0, limit 0xfffff, type 0x1b >>> = DPL 1, pres 1, def32 xn0: <Virtual Network Interface> at device/vif/0 on xenbusb_front0 >>> 1, gran 1 >>> processor eflags= interrupt enabled, resume, IOPL = 0 >>> current process= 11 (idle: cpu0) >>> [ thread pid 11 tid 100003 ] >>> Stopped at outb_+0x6ac: monitor >>> db> > > > No, this is FreeBSD CURRENT VM with single vCPU. > Adding additional vCPU lead to another problem. For example: > > 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) > SMP: Added CPU 1 (AP) > 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 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 > root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 > WARNING: WITNESS option enabled, expect reduced performance. > Xen reported: 1994.998 MHz processor. > Timecounter "ixen" frequency 1953125 Hz quality 0 > CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 > 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: 6144 kbytes, 16-way associative, 64 bytes/line > real memory = 536870912 (512 MB) > Physical memory chunk(s): > 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) > avail memory = 515637248 (491 MB) > gdtpfn=18ec63 pdptpfn=8930c > panic: HYPERVISOR_vcpu_op(VCPUOP_initialise, cpu, &ctxt): /usr/src/sys/i386/xen/mp_machdep.c:926 > cpuid = 0 > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at kdb_enter+0x3a: movl $0,kdb_why > db> > 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=0xce33d<SSE3,DTES64,MON,DS_CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1> > AMD Features=0x20000000<LM> > AMD Features2=0x1<LAHF> > > I can confirm this... Started domain freebsd-pv (id=27) WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb 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 9.0-CURRENT #0: Thu Jan 13 21:57:19 CET 2011 root@fbsd-hvm:/usr/obj/usr/src/current/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 3000.104 MHz processor. Timecounter "ixen" frequency 1953125 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X5450 @ 3.00GHz (3000.10-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 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=0xce3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1> AMD Features=0x20000000<LM> AMD Features2=0x1<LAHF> real memory = 536870912 (512 MB) avail memory = 515633152 (491 MB) [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: <Xen Hypervisor Clock> on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock xenstore0: <XenStore> on motherboard xc0: <Xen Console> on motherboard Timecounters tick every 10.000 msec xenbusb_front0: <Xen Frontend Devices> on xenstore0 [XEN] hypervisor wallclock nudged; nudging TOD. xenbusb_back0: <Xen Backend Devices> on xenstore0 xctrl0: <Xen Control Device> on xenstore0 Fatal trap 1: privileged instruction fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x21:0xc0334e5c stack pointer = 0x29:0xc21fec84 frame pointer = 0x29:0xc21fec88 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 11 (idle: cpu0) [ thread pid 11 tid 100003 ] Stopped at outb_+0x6ac: monitor db>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D2F7CBC.4090502>