From owner-freebsd-current@freebsd.org Tue Apr 12 11:20:14 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59195B0D5AB for ; Tue, 12 Apr 2016 11:20:14 +0000 (UTC) (envelope-from decui@microsoft.com) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0119.outbound.protection.outlook.com [65.55.169.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F408A1307; Tue, 12 Apr 2016 11:20:13 +0000 (UTC) (envelope-from decui@microsoft.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CR6AgOrjCA8/y+c7Ytak4pYMULfp3Sas7ZSt9G3Umrw=; b=Y8zNxp0KNXniwzxeSnDFRVx6EyzuHcGiCrmf5/kk2eTKBVSgv1opkq8I9XvfqHm1Kboz1UIDQ5yp2PBskRUd+k52GBxJc88VZTIwigaoMJV2MQcGOuOHVECoJtYkBN4vuc6RiXsMfRhCPonsPSJeE5OwfR49myq9jh5FkkoST68= Received: from BLUPR03MB1410.namprd03.prod.outlook.com (10.163.81.144) by BLUPR03MB1410.namprd03.prod.outlook.com (10.163.81.144) with Microsoft SMTP Server (TLS) id 15.1.453.26; Tue, 12 Apr 2016 08:45:27 +0000 Received: from BLUPR03MB1410.namprd03.prod.outlook.com ([10.163.81.144]) by BLUPR03MB1410.namprd03.prod.outlook.com ([10.163.81.144]) with mapi id 15.01.0453.029; Tue, 12 Apr 2016 08:45:27 +0000 From: Dexuan Cui To: Sepherosa Ziehau , "smokehydration@tutanota.com" CC: "freebsd-current@freebsd.org" , "Konstantin Belousov" Subject: RE: Revision 297176 - hyperv/evttimer: Use an independent message slot so that it can work Thread-Topic: Revision 297176 - hyperv/evttimer: Use an independent message slot so that it can work Thread-Index: AQHRkXkiMx921mGqikmAHSfbkel4Ap9/174ggAYzeFA= Date: Tue, 12 Apr 2016 08:45:27 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [2404:f801:9000:18::5cd] x-ms-office365-filtering-correlation-id: a05228c5-f5a4-4e0c-377c-08d362aecc35 x-microsoft-exchange-diagnostics: 1; BLUPR03MB1410; 5:XQiUPK+8+YT/DhRcGNB5vmKuZ0QI7iG+965/864FXzWbnBmd6GEalsGo2Q6Nz8SgbwDVMEDR59pWkcvU6k5v7subwAYEZuI7ViA5pnE4KiUFmQA4mdRpFixdyV4gJs9XKNTsGG7l2UWczVfRC6bYiA==; 24:p7v2lad4dFyEqV0759pS+CekCnc4xndZlGtS6BCI50aXaIQuQ3tIoLZh9FKRQ7yPzsaiB1uP6pR2royUz9FKz1ZdgmoihU4ePORq5BXelsk= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1410; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038); SRVR:BLUPR03MB1410; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1410; x-forefront-prvs: 0910AAF391 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(24454002)(13464003)(377454003)(5002640100001)(87936001)(92566002)(575784001)(19580395003)(86362001)(19580405001)(76176999)(54356999)(1096002)(1220700001)(76576001)(4326007)(50986999)(189998001)(86612001)(5001770100001)(586003)(122556002)(102836003)(6116002)(5008740100001)(5003600100002)(33656002)(15650500001)(77096005)(2501003)(5004730100002)(3660700001)(2906002)(106116001)(3900700001)(11100500001)(164054004)(74316001)(81166005)(99286002)(15975445007)(9686002)(10090500001)(3280700002)(2900100001)(2950100001)(10290500002)(10400500002)(5005710100001)(21314002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1410; H:BLUPR03MB1410.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2016 08:45:27.8305 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1410 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2016 11:20:14 -0000 Hi smokehydration, Sephe has committed a few patches into 11-CURRENT to address the issue and the details of the patches can be found at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208238 Can you please try today's Head branch? We believe the issue should be fixed, and it would be great to have your co= nfirmation. Thanks, -- Dexuan > -----Original Message----- > From: Dexuan Cui > Sent: Friday, April 8, 2016 19:04 > To: 'Sepherosa Ziehau' ; smokehydration@tutanota.com > Cc: freebsd-current@freebsd.org > Subject: RE: Revision 297176 - hyperv/evttimer: Use an independent messag= e > slot so that it can work >=20 > Hi smokehydration, > I guess your VM config file has something like "viridian =3D 1" or > "viridian_enlightenment=3Dxxx". >=20 > With this, Xen tries to pretend to be Hyper-V, but obviously Xen can't be= 100% > Hyper-V. > BTW, I know at least KVM can have the same behavior. >=20 > We have to find a reliable way to distinguish Hyper-V from other hypervis= ors > that > try to pretend to be Hyper-V... >=20 > Thanks, > -- Dexuan >=20 >=20 > > -----Original Message----- > > From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd- > > current@freebsd.org] On Behalf Of Sepherosa Ziehau > > Sent: Friday, April 8, 2016 17:29 > > To: smokehydration@tutanota.com > > Cc: freebsd-current@freebsd.org > > Subject: Re: Revision 297176 - hyperv/evttimer: Use an independent mess= age > > slot so that it can work > > > > I have reverted this change. It will be brought back, after some code > > refactoring. > > > > On Fri, Apr 8, 2016 at 4:22 PM, wrote: > > > > > > Hello > > > > > > I recently update one of my many vms from an older CURRENT revision > > r297196 > > > to r297659 and on reboot it just panics with the following: > > > > > > FreeBSD clang version 3.8.0 (tags/RELEHSE_380/final 262564) (based on > LLVM > > > 3.8.0 > > > ) > > > VT(vga): text 80x25 > > > Timecounter "Hyper-V" frequency 10000000 Hz quality 10000000 > > > Kernel trap 9 with interrupts disabled > > > > > > > > > Fatal trap 9: general protection fault while in kernel mode > > > cpuid =3D 0: apic id =3D 00 > > > instruction pointer =3D 0x20:0xffffffff8100d6?9 > > > stack pointer =3D 0x28:oxffffffff820d5c30 > > > frame pointer =3D 0x28:oxffffffff820d5c40 > > > code segment =3D base 0x0, limit 0xfffff, type 0x1b > > > =3D DPL 0, pres 1, long 1, def32 0, gran 1 > > > processor eflags =3D IOPL =3D 0 > > > current process =3D 0 () > > > [ thread pid 0 tid 0 ] > > > stopped at hv_get_timecount+0x9: rdmsr > > > db) wh > > > Tracing pid 0 tid 0 td 0xffffffff81d0eff0 > > > hv_get_timecount() at hv_get_timecount+0x9/frame 0xffffffff820d5c40 > > > tc_init() at tc_init+0x251/frame 0xffffffff820d5c90 > > > mi_startup() at mi_startup+0x118/frame 0xffffffff820d5cb0 > > > btext() at btext+ox2c =3D > > > db> > > > > > > I changed hv_hv.c back to the previous revision (297176) and no panic= s under > > > Xen VM. > > > > > > Thanks! > > > > > > p.s. not sure why Xen gets detected as HyperV > > > > > > > > > > > -- > > Tomorrow Will Never Die > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3a%2f%2flists.= freebs > > d.org%2fmailman%2flistinfo%2ffreebsd- > > > current&data=3D01%7c01%7cdecui%40microsoft.com%7c3a2924929b7b4158aa4f > > > 08d35f9043e2%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=3DomVqiBrK > > 9sWAd10koNsZkG72nSoXnjFdXKUsXhGFK6k%3d > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg"