Received: from eggs.gnu.org ([2001:4830:134:3::10]:36352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHdxx-0006hL-Gw for qemu-devel@nongnu.org; Mon, 27 Jun 2016 17:21:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHdxs-0006tp-Ed for qemu-devel@nongnu.org; Mon, 27 Jun 2016 17:21:13 -0400 Received: from indium.canonical.com ([91.189.90.7]:49391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHdxs-0006tf-8t for qemu-devel@nongnu.org; Mon, 27 Jun 2016 17:21:08 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bHdxq-0006HW-Lz for ; Mon, 27 Jun 2016 21:21:07 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 285E22E80BB for ; Mon, 27 Jun 2016 21:21:05 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 27 Jun 2016 21:15:23 -0000 From: "T. Huth" <1288385@bugs.launchpad.net> Reply-To: Bug 1288385 <1288385@bugs.launchpad.net> Sender: bounces@canonical.com References: <20140305185520.12564.49872.malonedeb@wampee.canonical.com> Message-Id: <20160627211524.18634.56153.launchpad@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1288385] Re: VFIO passthrough causes assertation failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Changed in: qemu Status: Fix Committed =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1288385 Title: VFIO passthrough causes assertation failure Status in QEMU: Fix Released Bug description: Since commit 5e95494380ec I am no longer able to passthrough my Nvidia GTX 770 using VFIO. Qemu terminates with: qemu-system-x86_64: hw/pci/pcie.c:240: pcie_cap_slot_hotplug_common: Assertion `((pci_dev->devfn) & 0x07) =3D=3D 0' failed. Above output was generated using commit f55ea6297cc0. = Lspci of the vga card: 01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX = 770] (rev a1) Subsystem: Gigabyte Technology Co., Ltd Device 360c Kernel driver in use: vfio-pci 01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev= a1) Subsystem: Gigabyte Technology Co., Ltd Device 360c Kernel driver in use: vfio-pci = Commandline used to start qemu: qemu-system-x86_64 -machine accel=3Dkvm \ -nodefaults \ -name VFIO-Test \ -machine q35 \ -cpu host \ -smp 1 \ -enable-kvm \ -m 1024 \ -k de \ -vga none \ -device ioh3420,bus=3Dpcie.0,addr=3D1c.0,multifunction=3Don,port= =3D1,chassis=3D1,id=3Droot.1 \ -device vfio-pci,host=3D01:00.0,bus=3Droot.1,addr=3D00.0,multifun= ction=3Don,x-vga=3Don \ -device vfio-pci,host=3D01:00.1,bus=3Droot.1,addr=3D00.1 \ -rtc base=3Dutc \ -boot order=3Dd \ -device ide-cd,drive=3Ddrive-cd-disk1,id=3Dcd-disk1,unit=3D0 \ -drive file=3D/home/bluebird/Downloads/systemrescuecd-x86-4.0.0.i= so,if=3Dnone,id=3Ddrive-cd-disk1,media=3Dcdrom \ -nographic = Full output of git bisect: 5e95494380ecf83c97d28f72134ab45e0cace8f9 is the first bad commit commit 5e95494380ecf83c97d28f72134ab45e0cace8f9 Author: Igor Mammedov Date: Wed Feb 5 16:36:52 2014 +0100 hw/pci: switch to a generic hotplug handling for PCIDevice = make qdev_unplug()/device_set_realized() to call hotplug handler's plug/unplug methods if available and remove not needed anymore hot(un)plug handling from PCIDevice. = In case if hotplug handler is not available, revert to the legacy hotplug method for compatibility with not yet converted buses. = Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin :040000 040000 9bdab0d75fbc9be4fe2e4274e58e0cdcd347ac7e d6d6294ea9c06e80a= 0fc8fcabd6345dfae5137ad M hw :040000 040000 d064d75ca8b8f169c41eee2683082e8f9104e968 f2abbf9bee754ada0= f49135968455fd1a69b2186 M include :040000 040000 c515daff6c77f9bd2cc32873be4c5c3a1c20cbb9 c506f5587afe8f7ee= 129a7ca6e3ae2e5118254f9 M tests To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1288385/+subscriptions