From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 20:45:56 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 54C451065698 for ; Wed, 12 Jan 2011 20:45:56 +0000 (UTC) (envelope-from tobiasztworek@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id D620C8FC1C for ; Wed, 12 Jan 2011 20:45:55 +0000 (UTC) Received: by fxm16 with SMTP id 16so1061863fxm.13 for ; Wed, 12 Jan 2011 12:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/EUxJkNvP6C+L+nCzhiEhFc9yVtD4xSX3IK1h30GYK4=; b=AyWc3j3eEfITb1vDsg/HI1oZMvhcAWexztyBWrAONoYI4J1OR/cnMETkbJlTQLfJ/f wmjFmkOasXYsuUxzFi/fwvfxE0otNb43qyo7zSLawKesH44QHt/w5s2O3mu5YZunb6ZK LfvycQVci7v20RaPFKgdHB4HEh6u44QEWJ6O8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=qBSo9drXhn4mcYynx5EYHQOO/d21J19BG7R4Bj9baZkrC/MDZffFuUyjxW4eG60eJL VIEpgoxXBWlm8uZrDgvTpCu8w27c6LovyfLJqieEqp+NG3Xvl+nmQj3q6GbTEm8+RTJT BpNiIUXFQ3cIvptBOAFCOfs/orZwN6C/bsazQ= Received: by 10.223.95.207 with SMTP id e15mr1460366fan.145.1294865154751; Wed, 12 Jan 2011 12:45:54 -0800 (PST) Received: from [10.1.1.4] (87-205-161-54.adsl.inetia.pl [87.205.161.54]) by mx.google.com with ESMTPS id n15sm390187fam.36.2011.01.12.12.45.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 12:45:53 -0800 (PST) Message-ID: <4D2E1300.6010303@gmail.com> Date: Wed, 12 Jan 2011 21:45:52 +0100 From: Tobiasz Tworek User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> <4D2DE6E6.2090202@freebsd.org> <4D2E0FAB.4010900@gmail.com> <4D2E1042.5090302@deployis.eu> <4D2E1253.4030703@gmail.com> In-Reply-To: <4D2E1253.4030703@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: Wed, 12 Jan 2011 20:45:56 -0000 Sory my bad i will atache path to curent and tomorow i will test it. Tobiasz > In current patch is attached to file i386/i386/machdep.c. > There is no line "#if defined(XEN_PRIVILEGED)". > > Tobiasz >> I've attached Colin's patch. It may work on current also. >> >> Tobiasz Tworek wrote: >>> I had tested latest curent version on my AMD Athlon II X4 Xen Server >>> 6.5 and i have got panic. My output: >>> >>> WARNING: loader(8) metadata is missing! >>> 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 9.0-CURRENT #0: Wed Jan 12 20:14:15 CET 2011 >>> root@freebsdcurent:/usr/src/sys/i386/compile/XEN i386 >>> WARNING: WITNESS option enabled, expect reduced performance. >>> Xen reported: 3013.708 MHz processor. >>> Timecounter "ixen" frequency 1000000000 Hz quality 0 >>> CPU: AMD Athlon(tm) II X4 640 Processor (3013.71-MHz 686-class CPU) >>> Origin = "AuthenticAMD" Id = 0x100f53 Family = 10 Model = 5 >>> Stepping = 3 >>> >>> Features=0x1783fbff >>> >>> Features2=0x802009 >>> AMD >>> Features=0xee500800 >>> AMD >>> Features2=0x37ff >>> >>> 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 = 536870912 (512 MB) >>> Physical memory chunk(s): >>> 0x000000000077d000 - 0x000000001f638fff, 518766592 bytes (126652 pages) >>> avail memory = 515821568 (491 MB) >>> APIC: Using the MPTable enumerator. >>> SMP: Added CPU 0 (BSP) >>> 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. >>> nfslock: pseudo-device >>> mem: >>> Pentium Pro MTRR support enabled >>> io: >>> null: >>> 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, >>> adjustment 0.500000000s) >>> Grant table initialized >>> xenbus0: on motherboard >>> xc0: on motherboard >>> 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:0xc032b311 >>> stack pointer = 0x29:0xlo0: bpf attached >>> c21fec8c >>> frame pointer = 0x29:0xc21fec94 >>> code segment= base 0x0, limit 0xfffff, type [XEN] hypervisor >>> wallclock nudged; nudging TOD. >>> 0x1b >>> = DPL 1, pres 1, def32 1, gran 1 >>> processor eflags= resume, IOPL = 0 >>> current process= 11 (idle: cpu0) >>> [ thread pid 11 tid 100003 ] >>> Stopped at spinlock_exit+0xa1: hlt >>> >>> >>> >>> Regards, >>> Tobiasz Tworek >>> >>> >>>> On 01/12/11 05:33, Gót András wrote: >>>>> kernel trap 9 with interrupts disabled >>>>> >>>>> Fatal trap 9: general protection fault while in kernel mode >>>>> cpuid = 0; apic id = 00 >>>>> instruction pointer = 0x21:0xc0321241 >>>>> stack pointer = 0x29:0xc21ffc8c >>>>> frame pointer = 0x29:0xc21ffc94 >>>>> 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) >>>>> [thread pid 11 tid 100003 ] >>>>> Stopped at spinlock_exit+0xe1: hlt >>>> Yep, this is what I was looking for. Can you try the attached >>>> patch (under >>>> the same conditions to avoid the pmap_init panic) and let me know >>>> if this >>>> problem goes away? >>>> >>>> >>>> >>>> _______________________________________________ >>>> freebsd-xen@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-xen >>>> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" > >