Date: Fri, 27 Oct 2017 14:57:42 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 222937] [byhve] Severe RAM corruption after PciPassThrough-guest shutdown Message-ID: <bug-222937-27103-6dbDGeZ3qP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-222937-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-222937-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222937 --- Comment #2 from commit-hook@freebsd.org --- A commit references this bug: Author: jhb Date: Fri Oct 27 14:57:15 UTC 2017 New revision: 325039 URL: https://svnweb.freebsd.org/changeset/base/325039 Log: Rework pass through changes in r305485 to be safer. Specifically, devices that do not support PCI-e FLR and were not gracefully shutdown by the guest OS could continue to issue DMA requests after the VM was terminated. The changes in r305485 meant that those DMA requests were completed against the host's memory which could result in random memory corruption. Instead, leave ppt devices that are not attached to a VM disabled in the IOMMU and only restore the devices to the host domain if the ppt(4) driver is detached from a device. As an added safety belt, disable busmastering for a pass-through device when before adding it to the host domain during ppt(4) detach. PR: 222937 Tested by: Harry Schmalzbauer <freebsd@omnilan.de> Reviewed by: grehan MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D12661 Changes: head/sys/amd64/vmm/io/iommu.c head/sys/amd64/vmm/io/ppt.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222937-27103-6dbDGeZ3qP>