From owner-svn-soc-all@FreeBSD.ORG Sat Sep 14 16:01:40 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F1DD18E0 for ; Sat, 14 Sep 2013 16:01:40 +0000 (UTC) (envelope-from zcore@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DE7B82D87 for ; Sat, 14 Sep 2013 16:01:40 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8EG1eMh056555 for ; Sat, 14 Sep 2013 16:01:40 GMT (envelope-from zcore@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r8EG1eGk056550 for svn-soc-all@FreeBSD.org; Sat, 14 Sep 2013 16:01:40 GMT (envelope-from zcore@FreeBSD.org) Date: Sat, 14 Sep 2013 16:01:40 GMT Message-Id: <201309141601.r8EG1eGk056550@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to zcore@FreeBSD.org using -f From: zcore@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r257335 - soc2013/zcore/head/usr.sbin/bhyve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 16:01:41 -0000 Author: zcore Date: Sat Sep 14 16:01:40 2013 New Revision: 257335 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=257335 Log: support ATAPI_PREVENT_ALLOW Modified: soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c Modified: soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c ============================================================================== --- soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c Sat Sep 14 16:00:57 2013 (r257334) +++ soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c Sat Sep 14 16:01:40 2013 (r257335) @@ -648,6 +648,11 @@ cfis[4] = (cfis[4] & ~7) | ATA_I_CMD | ATA_I_IN; atapi_read_capacity(p, slot, cfis); break; + case ATAPI_PREVENT_ALLOW: + /* TODO */ + cfis[4] = (cfis[4] & ~7) | ATA_I_CMD | ATA_I_IN; + ahci_write_fis_d2h(p, slot, cfis, ATA_S_READY | ATA_S_DSC); + break; default: break; }