From owner-freebsd-drivers@FreeBSD.ORG Fri Dec 9 19:30:36 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B6121065670 for ; Fri, 9 Dec 2011 19:30:36 +0000 (UTC) (envelope-from v-lamel@microsoft.com) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe002.messaging.microsoft.com [216.32.181.182]) by mx1.freebsd.org (Postfix) with ESMTP id 264368FC0C for ; Fri, 9 Dec 2011 19:30:35 +0000 (UTC) Received: from mail91-ch1-R.bigfish.com (10.43.68.242) by CH1EHSOBE013.bigfish.com (10.43.70.63) with Microsoft SMTP Server id 14.1.225.23; Fri, 9 Dec 2011 19:30:20 +0000 Received: from mail91-ch1 (localhost [127.0.0.1]) by mail91-ch1-R.bigfish.com (Postfix) with ESMTP id 6BD1128034C for ; Fri, 9 Dec 2011 19:30:40 +0000 (UTC) X-SpamScore: -6 X-BigFish: VS-6(zz9371I542Mzz1202hzz8275dhz2fh2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC107.redmond.corp.microsoft.com; RD:none; EFVD:NLI Received-SPF: pass (mail91-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=v-lamel@microsoft.com; helo=TK5EX14HUBC107.redmond.corp.microsoft.com ; icrosoft.com ; Received: from mail91-ch1 (localhost.localdomain [127.0.0.1]) by mail91-ch1 (MessageSwitch) id 1323459038226507_3091; Fri, 9 Dec 2011 19:30:38 +0000 (UTC) Received: from CH1EHSMHS011.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.243]) by mail91-ch1.bigfish.com (Postfix) with ESMTP id 319A64A0042 for ; Fri, 9 Dec 2011 19:30:38 +0000 (UTC) Received: from TK5EX14HUBC107.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS011.bigfish.com (10.43.70.11) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 9 Dec 2011 19:30:17 +0000 Received: from TK5EX14MBXC288.redmond.corp.microsoft.com ([169.254.3.90]) by TK5EX14HUBC107.redmond.corp.microsoft.com ([157.54.80.67]) with mapi id 14.02.0247.005; Fri, 9 Dec 2011 11:30:12 -0800 From: "Larry Melia (Insight Global)" To: "Larry Melia (Insight Global)" , "freebsd-drivers@freebsd.org" Thread-Topic: Does the HV_VMBUS build/install disable/break certain operating features? Thread-Index: Acy2mPx0cBvbDCWgQUa/2t1MPVq1xQAD82EQ Date: Fri, 9 Dec 2011 19:30:12 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [157.54.51.72] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com Cc: Subject: RE: Does the HV_VMBUS build/install disable/break certain operating features? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 19:30:36 -0000 Hey folks- I'm sorry, I meant to post this on our private mailing list. -----Original Message----- From: owner-freebsd-drivers@freebsd.org [mailto:owner-freebsd-drivers@freeb= sd.org] On Behalf Of Larry Melia (Insight Global) Sent: Friday, December 09, 2011 9:38 AM To: freebsd-drivers@freebsd.org Subject: Does the HV_VMBUS build/install disable/break certain operating fe= atures? After installing a kernel with Hyper-V support (HV_VMBUS) certain functions= are either disabled or broken. If I re-install a GENERIC kernel, however, = everything works again. Any suggestions? After booting with Hyper-V support (HV_VMBUS): Not working: 1) Mouse support is disabled or broken (this should continue to be emu= lated via Hyper-V) 2) Keyboard reverts to dumb terminal mode (e.g., arrow keys no longer = work and Vt102 encoded char sequences appear after depressing the arrow key= s) 3) X-windows doesn't launch (i.e., PC-BSD desktop disabled or broken),= VGA driver may be disabled or broken (emulated in Hyper-V with a GENERIC k= ernel) Working: 1) Legacy network driver (emulated) 2) Netvsc (Hyper-v) network driver (haven't tried Jason's last code dr= op for storage devices) 3) Hyper-v utilities 4) IDE drives (emulated in Hyper-V) 5) File system My installation includes a full release of 8.2 with desktop support (PC-BSD= 8.2). I reviewed the Hyper-V (HV_VMBUS) makefile and it has an "include" f= or GENERIC (i.e., the GENERIC configuration should be included in the HV_VM= BUS "make"). So the only differences appear to be the options to disable ad= aptive mutexes and RW locks. The following sections in the are missing in t= he HV_VMBUS boot-up trace, but appear in the GENERIC trace: Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff811b0000. Preloaded elf obj module "/boot/kernel/ntfs.ko" at 0xffffffff811b01a8. Preloaded elf obj module "/boot/kernel/ntfs_iconv.ko" at 0xffffffff811b0790= . Preloaded elf obj module "/boot/kernel/libiconv.ko" at 0xffffffff811b0c40. Preloaded elf obj module "/boot/kernel/zfs.ko" at 0xffffffff811b1230. Preloaded elf obj module "/boot/kernel/opensolaris.ko" at 0xffffffff811b189= 8. Preloaded elf obj module "/boot/kernel/geom_eli.ko" at 0xffffffff811b1e88. Preloaded elf obj module "/boot/kernel/crypto.ko" at 0xffffffff811b24f8. Preloaded elf obj module "/boot/kernel/zlib.ko" at 0xffffffff811b2b60. Preloaded elf obj module "/boot/kernel/geom_journal.ko" at 0xffffffff811b30= c8. Preloaded elf obj module "/boot/kernel/geom_mirror.ko" at 0xffffffff811b373= 8. Preloaded elf obj module "/boot/kernel/geom_uzip.ko" at 0xffffffff811b3da8. Preloaded elf obj module "/boot/kernel/sbp.ko" at 0xffffffff811b4358. Preloaded elf obj module "/boot/kernel/if_bwn.ko" at 0xffffffff811b49c0. Preloaded elf obj module "/boot/kernel/siba_bwn.ko" at 0xffffffff811b4fa8. Preloaded elf obj module "/boot/kernel/if_ipw.ko" at 0xffffffff811b5518. Preloaded elf obj module "/boot/kernel/if_iwi.ko" at 0xffffffff811b5b00. Preloaded elf obj module "/boot/kernel/if_iwn.ko" at 0xffffffff811b60e8. Preloaded elf obj module "/boot/kernel/if_wpi.ko" at 0xffffffff811b6650. Preloaded elf obj module "/boot/kernel/sound.ko" at 0xffffffff811b6c38. Preloaded elf obj module "/boot/kernel/snd_uaudio.ko" at 0xffffffff811b72a0= . Preloaded elf obj module "/boot/modules/cuse4bsd.ko" at 0xffffffff811b7890. Preloaded elf obj module "/boot/modules/pwc.ko" at 0xffffffff811b7e40. Preloaded elf obj module "/boot/kernel/mmc.ko" at 0xffffffff811b8368. Preloaded elf obj module "/boot/kernel/mmcsd.ko" at 0xffffffff811b8950. Preloaded elf obj module "/boot/kernel/ahci.ko" at 0xffffffff811b8e38. Preloaded elf obj module "/boot/kernel/siis.ko" at 0xffffffff811b9420. Preloaded elf obj module "/boot/kernel/sdhci.ko" at 0xffffffff811b9a08. Preloaded elf obj module "/boot/kernel/scd.ko" at 0xffffffff811b9ff0. Preloaded elf obj module "/boot/kernel/libmchain.ko" at 0xffffffff811ba558. Preloaded elf obj module "/boot/kernel/cd9660_iconv.ko" at 0xffffffff811baa= 08. Preloaded elf obj module "/boot/kernel/msdosfs_iconv.ko" at 0xffffffff811ba= eb8. Preloaded elf obj module "/boot/kernel/udf.ko" at 0xffffffff811bb368. Preloaded elf obj module "/boot/kernel/udf_iconv.ko" at 0xffffffff811bb950. Preloaded elf obj module "/boot/kernel/tmpfs.ko" at 0xffffffff811bbe00. Also missing: cryptosoft0: on motherboard crypto: assign cryptosoft0 driver id 0, flags 100663296 crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0 Also missing: ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is pres= ent; to enable, add "vfs.zfs.prefetch_disable=3D0" to /boot/loader.c= onf. ZFS filesystem version 4 ZFS storage pool version 15 Also missing (this is probably to be expected): Linux ELF exec handler installed linprocfs registered t_delta 16.012fc18026605e80 too long lo1: bpf attached t_delta 15.fee85b3cc625f900 too short calcru: runtime went backwards from 1639023 usec to 1198925 usec for pid 16= 64 (Xorg) calcru: runtime went backwards from 24651 usec to 18037 usec for pid 1562 (= console-kit-daemon) t_delta 16.01567110d969f000 too long I've attached trace files for a normal (GENERIC) boot and a failed (HV_VMBU= S) boot.