From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 4 15:31:27 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 830E0193; Tue, 4 Jun 2013 15:31:27 +0000 (UTC) (envelope-from larrymelia@gmail.com) Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [IPv6:2607:f8b0:400e:c01::233]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8DD18F6; Tue, 4 Jun 2013 15:31:27 +0000 (UTC) Received: by mail-pb0-f51.google.com with SMTP id um15so406747pbc.10 for ; Tue, 04 Jun 2013 08:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=wD/zunvXGeAH8GfOhlIYBpMoU3Q4cyXJFnMX69+JwtQ=; b=BkAtX694t1t/t/1fulN4LoWWGAm0vxkMRKpnVxrPAZzmarhylz38mpaN7hHB612yW/ HY9GYqTDxsU7ySqH11UAD6HZYlrKe2ZWReIxIS4X+vkUbRz1hnHi6TRWHS5uvMLWfp6n NyDDjaz76LqK1YgMiX1054FMly1RmHotYxevs8tzEBdw60svQgAuPjR9ua7rEFLyvLfr Z1r9aw8XU5AEIZm0Z3Hvz6Un/CmjTVorzBGm5tU+xNhJIYZ4hURcD/wglm68YBNCXVar rRrAy1CfHQFLpnbBZ2iY0tCiTpOOVdv7K8T5zngFADNyWPuCv2ywCpCt1g9to58798Lo aVnA== X-Received: by 10.66.193.199 with SMTP id hq7mr28098105pac.183.1370359887146; Tue, 04 Jun 2013 08:31:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.3.162 with HTTP; Tue, 4 Jun 2013 08:30:47 -0700 (PDT) From: Larry Melia Date: Tue, 4 Jun 2013 08:30:47 -0700 Message-ID: Subject: more granular detection and control to disable/enable PCI-ATA devices To: freebsd-virtualization@freebsd.org, Alexander Motin , KY Srinivasan , "Abhishek Gupta (LIS)" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 04 Jun 2013 15:31:27 -0000 Hi Alexander- With you suggestions, I finally was able to get the override driver working-see https://github.com/FreeBSDonHyper-V/freebsd-snapshot/blob/hyperv-dev-ata-override/sys/dev/hyperv/stordisengage/hv_ata_pci_disengage.c. While it operates wonderfully, allowing our "enlightened" driver to improve performance, some versions of Hyper-V still use the native CD-ROM driver, because there is no "enlightened" support for it in the hypervisor. From my limited knowledge of the ATA drivers, it seems likely that the PCI-ATA driver be attached when a CD-ROM is detected, but lower-level drivers disabled (during a probe) when a hard drive is detected. On Hyper-V, therefore, a user would be able to configure a PCI/IDE virtual controller with two devices, the first device a hard disk and the second one a CD-ROM. The CD-ROM would operate via the native driver, whereas the hard disk would use the "enlightened" driver (to improve performance). Is there an easy way to add more granular detection, disabling the native ATA driver(s) selectively for hard drives, while allowing CD-ROM devices to be natively attached? Any suggestions would be very much appreciated. -Larry