Date: Fri, 8 Apr 2016 11:03:46 +0000 From: Dexuan Cui <decui@microsoft.com> To: Sepherosa Ziehau <sephe@freebsd.org>, "smokehydration@tutanota.com" <smokehydration@tutanota.com> Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: RE: Revision 297176 - hyperv/evttimer: Use an independent message slot so that it can work Message-ID: <BLUPR03MB1410B6C6318441D74BD3AC27BF910@BLUPR03MB1410.namprd03.prod.outlook.com> In-Reply-To: <CAMOc5cyskn2qEoki_N_yWquc3YTzoBzkUU2Gku61BR82UPSa6g@mail.gmail.com> References: <KEosm96--3-0@tutanota.com> <CAMOc5cyskn2qEoki_N_yWquc3YTzoBzkUU2Gku61BR82UPSa6g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, <smokehydration@tutanota.com> 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= "
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLUPR03MB1410B6C6318441D74BD3AC27BF910>