From owner-freebsd-xen@FreeBSD.ORG Mon Nov 18 11:07:01 2013 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E1C0B3F for ; Mon, 18 Nov 2013 11:07:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D38520A3 for ; Mon, 18 Nov 2013 11:07:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rAIB71Fe009303 for ; Mon, 18 Nov 2013 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAIB71IJ009301 for freebsd-xen@FreeBSD.org; Mon, 18 Nov 2013 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Nov 2013 11:07:01 GMT Message-Id: <201311181107.rAIB71IJ009301@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xen@FreeBSD.org Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.16 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: Mon, 18 Nov 2013 11:07:01 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/183139 xen [xen] [patch] ifconfig options on xn0 lost after xen v o kern/180788 xen [xen] [panic] XEN PV kernel 9.2-BETA1 panics on boot o kern/180403 xen [xen] Problems with GENERIC and XENHVM kernels with Xe o kern/180402 xen [xen] XEN kernel does not load in XenClient 4.5.5 o kern/179814 xen [xen] mountroot fails with error=19 under Xen on 9-STA o kern/176471 xen [xen] xn driver crash on detach o kern/176053 xen [xen] [patch] i386: Correct wrong usage of vsnprintf() o kern/175954 xen [xen] XENHVM xn network driver extreme packet loss dur o kern/175822 xen [xen] FreeBSD 9.1 does not work with Xen 4.0 o kern/175757 xen [xen] [patch] xen pvhvm looses keyboard input from VNC o kern/171873 xen [xen] xn network device floods warning in dmesg o kern/171118 xen [xen] FreeBSD XENHVM guest doesn't shutdown cleanly o kern/166174 xen [xen] Problems ROOT MOUNT ERROR o kern/165418 xen [xen] Problems mounting root filesystem from XENHVM o kern/164630 xen [xen] XEN HVM kernel: run_interrupt_driven_hooks: stil o kern/164450 xen [xen] Failed to install FreeeBSD 9.0-RELEASE from CD i o kern/162677 xen [xen] FreeBSD not compatible with "Current Stable Xen" o kern/161318 xen [xen] sysinstall crashes with floating point exception o kern/155468 xen [xen] Xen PV i386 multi-kernel CPU system is not worki o kern/155353 xen [xen] [patch] put "nudging TOD" message under boot_ver o kern/154833 xen [xen]: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. o kern/154473 xen [xen] xen 4.0 - DomU freebsd8.1 i386, XEN kernel. Not o kern/154472 xen [xen] xen 4.0 - DomU freebsd8.1 i386 xen kernel reboot o kern/154428 xen [xen] xn0 network interface and PF - Massive performan o kern/153674 xen [xen] i386/XEN idle thread shows wrong percentages o kern/153672 xen [xen] [panic] i386/XEN panics under heavy fork load o kern/153620 xen [xen] Xen guest system clock drifts in AWS EC2 (FreeBS o kern/153477 xen [xen] XEN pmap code abuses vm page queue lock o kern/153150 xen [xen] xen/ec2: disable checksum offloading on interfac o kern/152228 xen [xen] [panic] Xen/PV panic with machdep.idle_mwait=1 o kern/144629 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143398 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143340 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor f kern/143069 xen [xen] [panic] Xen Kernel Panic - Memory modified after f kern/135667 xen ufs filesystem corruption on XEN DomU system f kern/135421 xen [xen] FreeBSD Xen PVM DomU network failure - netfronc. f kern/135178 xen [xen] Xen domU outgoing data transfer stall when TSO i p kern/135069 xen [xen] FreeBSD-current/Xen SMP doesn't function at all f i386/124516 xen [xen] FreeBSD-CURRENT Xen Kernel Segfaults when config o kern/118734 xen [xen] FreeBSD 6.3-RC1 and FreeBSD 7.0-BETA 4 fail to b 40 problems total. From owner-freebsd-xen@FreeBSD.ORG Mon Nov 18 13:18:37 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9BA2F4 for ; Mon, 18 Nov 2013 13:18:37 +0000 (UTC) Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4014B29AD for ; Mon, 18 Nov 2013 13:18:36 +0000 (UTC) Received: by mail-ea0-f181.google.com with SMTP id m10so170518eaj.26 for ; Mon, 18 Nov 2013 05:18:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=lQE5w14oJZLGZTjIyDgKb1Ag9XZg15En261MLyOukRQ=; b=KQtDf+O2cbcj0094iVxfidLwFu8qhwY1yt75bkdhWHjkLscUrki50ZY1n3Nac8Byx0 k8YRRZ4v/aunHkONWJKiplr8ORfNKlWwFnV739iIS6lCtyA594q2mHQrihDuW10+SLNg IUch5dyPxxE+DqUNHh99hyLsMmCDs0EfUdcFhHYe7EeguMlAbG/V4M/q4y+IlUz7B9AJ 6SbaUwosrK0vaUwfFPc+yqE77zByeR2k1IRcaIzlwHIftQiuAqt5OE84VfftjaohG/Fx o5fxEg54q7nJvA2xyqcNCVXMwlqtXIS384qlJ4odVxQiCgj7vJM3YiIX6DF0AHfQS9Ic f/Fg== X-Gm-Message-State: ALoCoQloQYqjz8r9VfgWLBj3V59aa3A4+7FczIKnY3P4J+MTzdsjTsg9TbUC/IVEs8kE0avRJ8wM X-Received: by 10.14.106.197 with SMTP id m45mr3788640eeg.45.1384780715222; Mon, 18 Nov 2013 05:18:35 -0800 (PST) Received: from [192.168.129.224] (ext.vps.lviv.ua. [194.44.160.178]) by mx.google.com with ESMTPSA id x4sm37848876eef.1.2013.11.18.05.18.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 05:18:34 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: fpudna: fpcurthread == curthread XXXX times From: Yuriy Kohut In-Reply-To: <4DE73A39.2060609@estrafolari.com> Date: Mon, 18 Nov 2013 15:18:30 +0200 Message-Id: References: <4DE5EDD7.20105@estrafolari.com> <20110601082156.GB48734@deviant.kiev.zoral.com.ua> <4DE60820.1080409@estrafolari.com> <4DE63803.7090504@estrafolari.com> <20110601213616.GE48734@deviant.kiev.zoral.com.ua> <4DE73A39.2060609@estrafolari.com> To: freebsd-xen@freebsd.org X-Mailer: Apple Mail (2.1822) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: Sergi X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.16 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: Mon, 18 Nov 2013 13:18:37 -0000 Hi, I do have the same issue on 8.4-RELEASE, 9.1-RELEASE, 9.2-RELEASE based = on XENHVM config (amd64).=20 The 'uname' in the guests looks like this one: root@my:/ # uname -a FreeBSD my.vm 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Mon Aug 19 14:08:42 = EEST 2013 root@my.vm:/usr/obj/usr/src/sys/XENHVM amd64 I could also confirm the issue doesn't affect 8.2 8.3, 9.0 versions. The Hypervisor is "CentOS release 5.9" with Xen 3.4.3, and its details = are: # cat /proc/cpuinfo ... processor : 15 vendor_id : AuthenticAMD cpu family : 16 model : 9 model name : AMD Opteron(tm) Processor 6128 stepping : 1 cpu MHz : 2000.140 cache size : 512 KB physical id : 15 siblings : 1 core id : 0 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu de tsc msr pae mce cx8 apic mtrr mca cmov pat = clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext = 3dnow constant_tsc pni cx16 popcnt lahf_lm cmp_legacy cr8_legacy abm = sse4a misalignsse bogomips : 5002.23 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc [6] [7] [8] # xm info host : hv.build release : 2.6.18-308.20.1.el5.xen version : #1 SMP Wed Dec 5 13:30:38 GMT 2012 machine : x86_64 nr_cpus : 16 nr_nodes : 1 cores_per_socket : 8 threads_per_core : 1 cpu_mhz : 2000 hw_caps : = 178bf3ff:efd3fbff:00000000:00000310:00802001:00000000:000837ff:00000000 virt_caps : hvm total_memory : 49150 free_memory : 45664 node_to_cpu : node0:0-15 node_to_memory : node0:45664 xen_major : 3 xen_minor : 4 xen_extra : .4 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 = hvm-3.0-x86_32p hvm-3.0-x86_64=20 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=3D0xffff800000000000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-52) cc_compile_by : root cc_compile_domain : hv.build cc_compile_date : Wed Sep 5 18:01:10 EEST 2012 xend_config_format : 4 Could anybody please help/assist me with the issue fixing ? Thanks --- Yura On Jun 2, 2011, at 10:22 PM, Sergi wrote: > On 01/06/11 23:36, Kostik Belousov wrote: >> On Wed, Jun 01, 2011 at 03:00:51PM +0200, Sergi wrote: >> =20 >>> On 01/06/11 11:36, Sergi wrote: >>> =20 >>>> On 01/06/11 10:21, Kostik Belousov wrote: >>>> =20 >>>>> On Wed, Jun 01, 2011 at 09:44:23AM +0200, Sergi wrote: >>>>> =20 >>>>>> Hello, >>>>>>=20 >>>>>> I'm working with full virtual FreeBSD 8.2-RELEASE-p1 domU under = debian >>>>>> squeeze and xen-hypervisor-4.0-amd64. >>>>>>=20 >>>>>> If I cfg this hvm with cpu> 4 : >>>>>>=20 >>>>>> vcpus =3D 5 >>>>>>=20 >>>>>> these messages block the server : >>>>>>=20 >>>>>> fpudna: fpcurthread =3D=3D curthread XXXX times >>>>>>=20 >>>>>> The machine is pingable but I'm unable to ssh to it. >>>>>>=20 >>>>>> On single user it works fine, fsck an so on ok, but when = switching to >>>>>> multiuser these fpudna messages start flooding. >>>>>>=20 >>>>>> I've googled but haven't found anything; something from 2005 = about >>>>>> fpudna : >>>>>>=20 >>>>>>=20 >>>>>> = http://lists.freebsd.org/pipermail/freebsd-amd64/2005-April/004413.html >>>>>>=20 >>>>>> and this link, but I don't have the options he mentions enabled = on the >>>>>> kernel : >>>>>>=20 >>>>>> http://forums.freebsd.org/showthread.php?t=3D17979 >>>>>>=20 >>>>>> Has anyone stepped on this behaviour before?, is there any = workaround? >>>>>> The machine really seems to detect cpu's available and responds = to >>>>>> keyboard >>>>>> on VNC, but it's impossible to see whats written down because of = the >>>>>> messages flooding the screen. >>>>>> =20 >>>>> You did not specified the architecture of the domu. =46rom the = message, >>>>> I can >>>>> guess that your guest is running amd64 kernel. There are slight >>>>> differences >>>>> in the handling of the FPU in i386 and amd64 that may matter = there. >>>>>=20 >>>>> The message you reported means that the FreeBSD kernel assumes = that FPU >>>>> is currently loaded with the context of the current thread, but = the >>>>> CR0.TS bit is set, meaning that FPU context is set for switch. >>>>>=20 >>>>> AFAIR, HVM means that you run bare-metal kernel, right ? Most = likely, >>>>> it is some issue with Xen itself. I am curious whether the = following >>>>> will cause any usermode-visible regression for you: >>>>>=20 >>>>> diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c >>>>> index 08e5e57..a5ee853 100644 >>>>> --- a/sys/amd64/amd64/fpu.c >>>>> +++ b/sys/amd64/amd64/fpu.c >>>>> @@ -394,14 +394,8 @@ fpudna(void) >>>>> struct pcb *pcb; >>>>>=20 >>>>> critical_enter(); >>>>> - if (PCPU_GET(fpcurthread) =3D=3D curthread) { >>>>> - printf("fpudna: fpcurthread =3D=3D curthread %d times\n", >>>>> - ++err_count); >>>>> - stop_emulating(); >>>>> - critical_exit(); >>>>> - return; >>>>> - } >>>>> - if (PCPU_GET(fpcurthread) !=3D NULL) { >>>>> + if (PCPU_GET(fpcurthread) !=3D NULL&& >>>>> + PCPU_GET(fpcurthread) !=3D curthread) { >>>>> printf("fpudna: fpcurthread =3D %p (%d), curthread =3D %p = (%d)\n", >>>>> PCPU_GET(fpcurthread), >>>>> PCPU_GET(fpcurthread)->td_proc->p_pid, >>>>> =20 >>>> Hello, >>>>=20 >>>> yes, sorry, amd64, and yes, hvm hardware virtual machine, not >>>> paravirtual. >>>>=20 >>>> So, you mean patching fpu.c and recompiling the kernel, right?, I'm >>>> new to modifiying src files. >>>>=20 >>>> Thanks for your help, >>>> Sergi >>>>=20 >>>>=20 >>>> _______________________________________________ >>>> 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" >>>>=20 >>>> =20 >>> Hello, >>>=20 >>> well, I patched fpu.c, recompiled the kernel, and booted ok with 4 = vcpu. >>> Then I tried to boot with 5 vcpus and got : >>>=20 >>> kernel trap 22 with interrupts disabled >>> ... >>> kernel trap 22 with interrupts disabled >>> Fatal double fault >>> rip =3D 0xffffffff8067865a >>> rsp =3D 0xffffff8000000000 >>> rbp =3D 0xffffff8000000040 >>> cpuid =3D 4; apic id =3D 08 >>> panic: double fault >>> cpuid =3D 4 >>>=20 >>> 4 vcpus is the maximum number of vcpus I can use. >>>=20 >>> How do you think I can debug this in order to provide more = information? >>> =20 >> At least you can add KDB/DDB to the kernel config and get a backtrace >> at panic. >>=20 >> My feeling right now is that the issue is in the hypervisor, and not = in >> the kernel. >> =20 > Hello, >=20 > well, I'll try to add debugging to the kernel and see if I get = somewhere. >=20 > I'll post on the xen-user mailing-list to see if there is some issue = known in the hypervisor. >=20 > It's strange that nobody in this list has had this same issue. >=20 > Thanks for your help, > regards, > Sergi > _______________________________________________ > 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" From owner-freebsd-xen@FreeBSD.ORG Wed Nov 20 20:12:06 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5BFFD182 for ; Wed, 20 Nov 2013 20:12:06 +0000 (UTC) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b]) by mx1.freebsd.org (Postfix) with SMTP id B24962636 for ; Wed, 20 Nov 2013 20:12:05 +0000 (UTC) Received: from bloch.maths.tcd.ie ([134.226.81.34] helo=bloch.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 20 Nov 2013 20:12:03 +0000 (GMT) Date: Wed, 20 Nov 2013 20:12:02 +0000 From: "Richard M. Timoney" To: freebsd-xen@freebsd.org Subject: Re: fpudna: fpcurthread == curthread XXXX times Message-ID: <20131120201202.GA85145@maths.tcd.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: richardt@maths.tcd.ie X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.16 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, 20 Nov 2013 20:12:06 -0000 Dear Yuriy, I had the same issue although the details differ. (Operton processor was common.) At http://lists.freebsd.org/pipermail/freebsd-xen/2013-February/001475.html I explained the work-around I have in place, but I could boot 9.1 ok Yours, Richard -- Richard M. Timoney (richardt@maths.tcd.ie) Tel. +353-1-896 1196 School of Mathematics, Trinity College, Dublin 2, Ireland WWW http://www.maths.tcd.ie/~richardt FAX +353-1-896 2282 From owner-freebsd-xen@FreeBSD.ORG Fri Nov 22 17:38:40 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4B8E5FE3; Fri, 22 Nov 2013 17:38:40 +0000 (UTC) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 998C222F6; Fri, 22 Nov 2013 17:38:37 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.93,753,1378857600"; d="scan'208";a="74846237" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 22 Nov 2013 17:38:36 +0000 Received: from [IPv6:::1] (10.80.16.47) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.2.342.4; Fri, 22 Nov 2013 12:38:35 -0500 Message-ID: <528F9699.4060307@citrix.com> Date: Fri, 22 Nov 2013 18:38:33 +0100 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: "freebsd-xen@freebsd.org" Subject: Re: FreeBSD PVH guest support References: <526E6807.9030005@citrix.com> <527BD793.8010606@citrix.com> <527E24D8.4010403@citrix.com> <52864749.1020308@citrix.com> In-Reply-To: <52864749.1020308@citrix.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-DLP: MIA1 Cc: peter@FreeBSD.org, alc@FreeBSD.org, xen-devel , freebsd-current@freebsd.org, Konstantin Belousov , "Justin T. Gibbs" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.16 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: Fri, 22 Nov 2013 17:38:40 -0000 Hello, I've updated the branch one more time in order to cope with the recent HEAD changes regarding SMAP parsing, as usual the branch can be found at: http://xenbits.xen.org/gitweb/?p=people/royger/freebsd.git;a=shortlog;h=refs/heads/pvh_v5 Also, I've created a wiki page that describes how to set up a FreeBSD PVH guest: http://wiki.xen.org/wiki/FreeBSD_PVH In case anyone wants to give it a try :) Thanks.