From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 14:22:33 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B935610657ED; Thu, 13 Jan 2011 14:22:33 +0000 (UTC) (envelope-from SNasonov@BCC.RU) Received: from extmx.bcc.ru (extmx.bcc.ru [217.170.85.214]) by mx1.freebsd.org (Postfix) with ESMTP id EAEE68FC08; Thu, 13 Jan 2011 14:22:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by extmx.bcc.ru (Postfix) with ESMTP id CB04011ED6; Thu, 13 Jan 2011 17:15:01 +0300 (MSK) Received: from extmx.bcc.ru ([127.0.0.1]) by localhost (extmx.bcc.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10409-01; Thu, 13 Jan 2011 17:15:00 +0300 (MSK) Received: from mail.bcc (unknown [172.16.250.23]) by extmx.bcc.ru (Postfix) with ESMTP id 891FFF83F; Thu, 13 Jan 2011 17:15:00 +0300 (MSK) Received: from snasonovnbwxp.bcc ([192.168.201.205]) by mail.bcc over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Jan 2011 17:22:31 +0300 From: Sergey G Nasonov Organization: BCC To: =?iso-8859-1?q?G=F3t_Andr=E1s?= Date: Thu, 13 Jan 2011 17:22:38 +0300 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.4; i386; ; ) References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> In-Reply-To: <4D2F0926.3070407@deployis.eu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201101131722.38551.snasonov@bcc.ru> X-OriginalArrivalTime: 13 Jan 2011 14:22:31.0420 (UTC) FILETIME=[5069C3C0:01CBB32D] X-Virus-Scanned: amavisd-new at bcc.ru Cc: freebsd-xen@freebsd.org Subject: Re: does anyone have Xen running on an AMD system? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2011 14:22:33 -0000 On Thursday 13 January 2011 17:16:06 G=F3t Andr=E1s wrote: > Is this an SMP kernel with more then 1 vcpus configured? >=20 > (SMP: Added CPU 0 (BSP)) >=20 > 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 IB= M x3650 with intel Xeon 5405=20 > >>> panic: pmap_init: page table page is out of range > >>> > >>> FreeBSD VM has 1GB memory. And this problem does not appear when I re= duce amount of RAM to 512 MB.=20 > >> 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 inte= resting > >> 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 i= s very > >> close to identical between 9.0 and 8.2, but always best to check...) > >> > >> > >=20 > > Hi, > >=20 > > CURRENT kernel goes to panic even with 512 MB RAM: > >=20 > >=20 > > 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-c= lass CPU) > > Origin =3D "GenuineIntel" Id =3D 0x10676 Family =3D 6 Model =3D 17= Stepping =3D 6 > > Features=3D0xbfe3fbff > > Features2=3D0xce33d > > AMD Features=3D0x20000000 > > AMD Features2=3D0x1 > > 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 =3D 536870912 (512 MB) > > Physical memory chunk(s): > > 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) > > avail memory =3D 515637248 (491 MB) > > ULE: setup cpu 0 > > [XEN] IPI cpu=3D0 irq=3D128 vector=3DRESCHEDULE_VECTOR (0) > > [XEN] IPI cpu=3D0 irq=3D129 vector=3DCALL_FUNCTION_VECTOR (1) > > Event-channel device installed. > > mem: > > Pentium Pro MTRR support enabled > > null: > > io: > > nfslock: pseudo-device > > random: > > [XEN] xen_rtc_probe: probing Hypervisor RTC clock > > rtc0: on motherboard > > [XEN] xen_rtc_attach: attaching Hypervisor RTC clock > > rtc0: registered as a time-of-day clock (resolution 1000000us, adjustme= nt 0.500000000s) > > xenstore0: on motherboard > > Device configuration finished. > > procfs registered > > Timecounters tick every 10.000 msec > > [XEN] hypervisor wallclock nudged; nudging TOD. > > lo0: bpf attached > > xenbusb_front0: on xenstore0 > >=20 > >=20 > > Fatal trap 1: privileged instruction fault while in kernel mode > > cpuid =3D 0; apic id =3D 00 > > instruction pointer=3D 0x21:0xc0334e5c > > stack pointer =3D 0x29:0xc21fec84 > > frame pointer =3D 0x29:0xc21fec88 > > code segment=3D base 0x0, limit 0xfffff, type 0x1b > > =3D DPL 1, pres 1, def32 xn0: at device/vif= /0 on xenbusb_front0 > > 1, gran 1 > > processor eflags=3D interrupt enabled, resume, IOPL =3D 0 > > current process=3D 11 (idle: cpu0) > > [ thread pid 11 tid 100003 ] > > Stopped at outb_+0x6ac: monitor > > db>=20 No, this is FreeBSD CURRENT VM with single vCPU.=20 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. =46reeBSD is a registered trademark of The FreeBSD Foundation. =46reeBSD 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 =3D "GenuineIntel" Id =3D 0x10676 Family =3D 6 Model =3D 17 St= epping =3D 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 =3D 536870912 (512 MB) Physical memory chunk(s): 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) avail memory =3D 515637248 (491 MB) gdtpfn=3D18ec63 pdptpfn=3D8930c panic: HYPERVISOR_vcpu_op(VCPUOP_initialise, cpu, &ctxt): /usr/src/sys/i386= /xen/mp_machdep.c:926 cpuid =3D 0 KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db>=20 Features=3D0xbfe3fbff Features2=3D0xce33d AMD Features=3D0x20000000 AMD Features2=3D0x1 =2D-=20 Best Regards, Nasonov Sergey