From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 20:43:03 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 2619E1065673 for ; Wed, 12 Jan 2011 20:43:03 +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 A81218FC13 for ; Wed, 12 Jan 2011 20:43:02 +0000 (UTC) Received: by fxm16 with SMTP id 16so1059208fxm.13 for ; Wed, 12 Jan 2011 12:43:01 -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=eHcT8vBMPZE/HsPGRMa1AUtSAQwOSm2vnRy55SIWdNc=; b=bwXp001mr5cEM7dcrQVNri/2XcllUiPbh9iyEvc47CnL7+12tl9CNQjGKY7A2AO77f B5VuwYo5nzUEDN0i2ZzqkJMCxRfvrwQLCTUcLHx71eiVgTywRjEvWA794iHAJQrIv7Fy RPGw/OtcVGfutaqNKBLcvbtmeq2F+Re2BxI9Q= 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=n/Bk1mo8eb+9tg7pJW0IDHnBjD0oXnbPJFH/HluKwIuhZIbOYuTTG4sMcBDU/8D5HE 71CduWmeZ9/U8QE5GPbNnwEt8HHuHk98M4HwyRQH2+pVKHaNVej0eEpq1Bj9WxbYELao vkyjrnTR3rAhTw4DOnx3nVH86k+U3sIInvAg0= Received: by 10.223.83.197 with SMTP id g5mr1478056fal.52.1294864981387; Wed, 12 Jan 2011 12:43:01 -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 n3sm389492fax.31.2011.01.12.12.42.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 12:43:00 -0800 (PST) Message-ID: <4D2E1253.4030703@gmail.com> Date: Wed, 12 Jan 2011 21:42:59 +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> In-Reply-To: <4D2E1042.5090302@deployis.eu> 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:43:03 -0000 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"