From owner-freebsd-current@freebsd.org Fri Apr 8 13:36:12 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 09551B081A4 for ; Fri, 8 Apr 2016 13:36:12 +0000 (UTC) (envelope-from decui@microsoft.com) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0113.outbound.protection.outlook.com [65.55.169.113]) (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 8DC2A1BF1; Fri, 8 Apr 2016 13:36:11 +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=FtyesewNlzrRNCPNxkwk7oynjqGbnK7aJ9QBbyMYUX8=; b=ZFxb7fdaHORXOsVm2OZwHJNWjWCxmAV03b4PCAaZMmElVn5yTAgG2RDIe2r1VIu+Ac610Buysx/7FwgrD/kgRTCnt6TgTUn2FXNaUHTMT4hN2JZbo/Cf1xL6LESPfIWEEtOMXJvie96U8XcQwvN74C/AQ29RkhajTWndo4ktOXA= 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.447.15; Fri, 8 Apr 2016 11:03:46 +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.0447.029; Fri, 8 Apr 2016 11:03:46 +0000 From: Dexuan Cui To: Sepherosa Ziehau , "smokehydration@tutanota.com" CC: "freebsd-current@freebsd.org" 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/174g Date: Fri, 8 Apr 2016 11:03:46 +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: [167.220.255.14] x-ms-office365-filtering-correlation-id: 994c344e-53f3-4d86-2b38-08d35f9d7509 x-microsoft-exchange-diagnostics: 1; BLUPR03MB1410; 5:2AnLa//aQCwMPC0h5PCFSSYgzm5n5G75n7TV/WiJgDB2Ly/hSU1ugXBTGiNPARcBkNFXNYigjVbiptdGQDS725lyRAu+4QoW2poMO+0NP8TRJJWxRw5jSleHks/fsShDAHJra+4ZqsP+oagjPaNXtg==; 24:vzykGmhej7XHENk0MiNNlg6PVkAidR/tvYXFL3esIlZltkNUCEd7qhS/f0gOWzDIkDuyQbr7cypR2HZ+ETa7o06vf/GooijnIaOAzwjaMkA= 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)(8121501046)(5005006)(10201501046)(3002001)(6055026)(61426038)(61427038); SRVR:BLUPR03MB1410; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1410; x-forefront-prvs: 0906E83A25 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(13464003)(24454002)(377454003)(86362001)(5001770100001)(74316001)(2501003)(189998001)(92566002)(5008740100001)(77096005)(33656002)(15650500001)(54356999)(81166005)(15975445007)(5004730100002)(122556002)(11100500001)(164054004)(575784001)(2900100001)(19580405001)(19580395003)(86612001)(2950100001)(87936001)(4326007)(6116002)(10090500001)(5002640100001)(10290500002)(5005710100001)(5003600100002)(10400500002)(3846002)(102836003)(106116001)(99286002)(586003)(50986999)(76176999)(1220700001)(1096002)(76576001)(3660700001)(2906002)(9686002)(8990500004)(3280700002)(66066001)(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: 08 Apr 2016 11:03:46.5536 (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: Fri, 08 Apr 2016 13:36:12 -0000 Hi smokehydration, I guess your VM config file has something like "viridian =3D 1" or "viridian_enlightenment=3Dxxx". With this, Xen tries to pretend to be Hyper-V, but obviously Xen can't be 1= 00% Hyper-V. BTW, I know at least KVM can have the same behavior. We have to find a reliable way to distinguish Hyper-V from other hypervisor= s that try to pretend to be Hyper-V... Thanks, -- Dexuan > -----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 messag= e > slot so that it can work >=20 > I have reverted this change. It will be brought back, after some code > refactoring. >=20 > 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 L= LVM > > 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 panics = under > > Xen VM. > > > > Thanks! > > > > p.s. not sure why Xen gets detected as HyperV > > >=20 >=20 >=20 > -- > 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.org= "