From owner-freebsd-virtualization@FreeBSD.ORG Mon Sep 23 23:04:50 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 926822C3; Mon, 23 Sep 2013 23:04:50 +0000 (UTC) (envelope-from abgupta@microsoft.com) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-by2lp0240.outbound.protection.outlook.com [207.46.163.240]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 50FA5209F; Mon, 23 Sep 2013 23:04:49 +0000 (UTC) Received: from BL2PR03MB210.namprd03.prod.outlook.com (10.255.230.144) by BL2PR03MB211.namprd03.prod.outlook.com (10.255.230.146) with Microsoft SMTP Server (TLS) id 15.0.775.9; Mon, 23 Sep 2013 23:04:42 +0000 Received: from BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.203]) by BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.203]) with mapi id 15.00.0775.005; Mon, 23 Sep 2013 23:04:41 +0000 From: "Abhishek Gupta (LIS)" To: Oleg Sidorkin , "freebsd-virtualization@freebsd.org" Subject: RE: [Hyper-V][camlock] storvsc driver panics during boot with patches from camlock project Thread-Topic: [Hyper-V][camlock] storvsc driver panics during boot with patches from camlock project Thread-Index: AQHOuGguv9aR0907K0W1cMZcA3fEAZnT8ZtA Date: Mon, 23 Sep 2013 23:04:41 +0000 Message-ID: <794fb75db92a4df0991a147919727277@BL2PR03MB210.namprd03.prod.outlook.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e0:ed43::3] x-forefront-prvs: 09781D4C35 x-forefront-antispam-report: SFV:NSPM; SFS:(189002)(13464003)(377454003)(52604005)(199002)(54356001)(15202345003)(51856001)(65816001)(83072001)(81686001)(19580405001)(83322001)(19580395003)(76796001)(76786001)(74366001)(81816001)(15975445006)(69226001)(80976001)(77096001)(53806001)(56816003)(4396001)(81542001)(46102001)(80022001)(81342001)(47736001)(77982001)(74662001)(56776001)(74502001)(63696002)(76482001)(54316002)(47446002)(79102001)(31966008)(33646001)(49866001)(50986001)(59766001)(47976001)(74876001)(76576001)(74316001)(74706001)(24736002)(3826001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB211; H:BL2PR03MB210.namprd03.prod.outlook.com; CLIP:2001:4898:80e0:ed43::3; FPR:; RD:InfoNoRecords; MX:1; A:1; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: DuplicateDomain-a84fc36a-4ed7-4e57-ab1c-3e967bcbad48.microsoft.com Cc: Alexander Motin X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 23:04:50 -0000 Hi Oleg, Please give us some time. I shall look at it. Thanks for reporting. Regards, Abhishek -----Original Message----- From: owner-freebsd-virtualization@freebsd.org [mailto:owner-freebsd-virtua= lization@freebsd.org] On Behalf Of Oleg Sidorkin Sent: Monday, September 23, 2013 7:21 AM To: freebsd-virtualization@freebsd.org Cc: Alexander Motin Subject: [Hyper-V][camlock] storvsc driver panics during boot with patches = from camlock project Hello. I'm running the latest current (amd64) under Hyper-V with hyper-v services = enabled. If camlock patches are applied (http://people.freebsd.org/~mav/camlock_patches/camlock_20130906.patch), I'm hitting the following kernel panic during boot: FreeBSD 10.0-ALPHA2 #5 r255762M: Sun Sep 22 16:48:21 UTC 2013 olsi@current:/usr/obj/usr/src/sys/HYPERVKERNEL amd64 FreeBSD clang vers= ion 3.3 (tags/RELEASE_33/final 183502) 20130610 CPU: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz (1309.17-MHz K8-class CPU) Origin =3D "GenuineIntel" Id =3D 0x206a7 Family =3D 0x6 Model =3D 0x2a= Stepping =3D 7 .... Timecounter "Hyper-V" frequency 10000000 Hz quality 10000000 ZFS NOTICE: Pr= efetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=3D0" to /boot/loader.c= onf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1= 0.000 msec storvsc0 on vmbus0 Netvsc initializing... SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #1 Launched! kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid =3D 3; apic id =3D 03 fault virtual address =3D 0x20 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff804f444c stack pointer =3D 0x28:0xfffffe011df38610 frame pointer =3D 0x28:0xfffffe011df38640 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 0 (hv_control_1 taskq) [ thread pid 0 tid 100046 ] Stopped at turnstile_broadcast+0x8c: movq 0x20(%rbx,%rax,1),%= rdx db> bt Tracing pid 0 tid 100046 td 0xfffff80001f20490 turnstile_broadcast() at turnstile_broadcast+0x8c/frame 0xfffffe011df38640 __mtx_unlock_sleep() at __mtx_unlock_sleep+0x60/frame 0xfffffe011df38670 unlock_mtx() at unlock_mtx+0x2a/frame 0xfffffe011df38680 _sleep() at _sleep+0x18e/frame 0xfffffe011df38700 cam_periph_runccb() at cam_periph_runccb+0x9e/frame 0xfffffe011df38800 storvsc_attach() at storvsc_attach+0x6d4/frame 0xfffffe011df388a0 device_attach() at device_attach+0x396/frame 0xfffffe011df388f0 hv_vmbus_child_device_register() at hv_vmbus_child_device_register+0xdb/frame 0xfffffe011df38990 vmbus_channel_process_offer() at vmbus_channel_process_offer+0x133/frame 0xfffffe011df389d0 work_item_callback() at work_item_callback+0x26/frame 0xfffffe011df389f0 taskqueue_run_locked() at taskqueue_run_locked+0xe6/frame 0xfffffe011df38a4= 0 taskqueue_thread_loop() at taskqueue_thread_loop+0xa8/frame 0xfffffe011df38= a70 fork_exit() at fork_exit+0x9a/frame 0xfffffe011df38ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe011df38ab0 --- trap 0, rip =3D 0, rsp =3D 0xfffffe011df38b70, rbp =3D 0 --- db> This patch is not commited yet (CFT thread with changes description is here: http://lists.freebsd.org/pipermail/freebsd-hackers/2013-September/043= 333.html), but it is going to be commited till the end of the year. As far as I understand, the invocation chain is storvsc_attach->scan_for_lu= ns->cam_periph_runccb Thanks -- Oleg Sidorkin _______________________________________________ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/ma= ilman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebs= d.org"