From owner-svn-src-stable@freebsd.org Fri Sep 30 01:47:46 2016 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19AC1C01C47; Fri, 30 Sep 2016 01:47:46 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB308D3A; Fri, 30 Sep 2016 01:47:45 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id C937010AF8D; Thu, 29 Sep 2016 21:47:37 -0400 (EDT) From: John Baldwin To: src-committers@freebsd.org Cc: svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: Re: svn commit: r306472 - in stable/10/sys/amd64/vmm: . io Date: Thu, 29 Sep 2016 18:46:36 -0700 Message-ID: <2182781.Bke7ZiohbR@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.0-PRERELEASE; KDE/4.14.10; amd64; ; ) In-Reply-To: <201609300142.u8U1gTWK092222@repo.freebsd.org> References: <201609300142.u8U1gTWK092222@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Thu, 29 Sep 2016 21:47:37 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2016 01:47:46 -0000 On Friday, September 30, 2016 01:42:29 AM John Baldwin wrote: > Author: jhb > Date: Fri Sep 30 01:42:29 2016 > New Revision: 306472 > URL: https://svnweb.freebsd.org/changeset/base/306472 > > Log: > MFC 304858,305485: Fix various issues with PCI pass through and VT-d. > > 304858: > Enable I/O MMU when PCI pass through is first used. > > Rather than enabling the I/O MMU when the vmm module is loaded, > defer initialization until the first attempt to pass a PCI device > through to a guest. If the I/O MMU fails to initialize or is not > present, than fail the attempt to pass a PCI device through to a > guest. > > The hw.vmm.force_iommu tunable has been removed since the I/O MMU is > no longer enabled during boot. However, the I/O MMU support can be > disabled by setting the hw.vmm.iommu.enable tunable to 0 to prevent > use of the I/O MMU on any systems where it is buggy. > > 305485: > Leave ppt devices in the host domain when they are not attached to a VM. > > This allows a pass through device to be reset to a normal device driver > on the host and reused on the host. ppt devices are now always active in > some I/O MMU domain when the I/O MMU is active, either the host domain > or the domain of a VM they are attached to. I did not MFC 305497 (update I/O MMU when adding/removing PCI devices) since there was a conflict and neither SR-IOV nor PCI-e Hotplug are in 10 (though Cardbus is in 10). At this point I doubt I will get around to merging Hotplug to 10, but if I do then 305497 could be merged. -- John Baldwin