From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDG43-0002LO-9S for qemu-devel@nongnu.org; Wed, 15 Jun 2016 15:01:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDG3o-0007mL-O1 for qemu-devel@nongnu.org; Wed, 15 Jun 2016 15:01:22 -0400 Received: from indium.canonical.com ([91.189.90.7]:38499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDG3o-0007mA-If for qemu-devel@nongnu.org; Wed, 15 Jun 2016 15:01:08 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bDG3n-0007Ju-Vk for ; Wed, 15 Jun 2016 19:01:08 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 49F4F2E80C2 for ; Wed, 15 Jun 2016 19:01:07 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 15 Jun 2016 18:53:53 -0000 From: Peter Maloney <1591628@bugs.launchpad.net> Reply-To: Bug 1591628 <1591628@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160612072726.11541.54806.malonedeb@wampee.canonical.com> Message-Id: <20160615185353.11572.98661.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1591628] Re: 2.6.0 hangs linux vm using vfio for pci passthrough of graphics card List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Attachment added: "disk image that reproduces problem" https://bugs.launchpad.net/qemu/+bug/1591628/+attachment/4684474/+files/= qemutest2.img.xz -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1591628 Title: 2.6.0 hangs linux vm using vfio for pci passthrough of graphics card Status in QEMU: New Bug description: Not a duplicate of my old bug 1488363 qemu version 2.5.1 works fine qemu version 2.6.0 fails seabios 1.9.2-1 using kernel 4.5.5 with grsecurity I built using the arch packaging tools, but commented out all the patch code, so it should be vanilla. The problem is just that I start a Linux vm using either my radeon R7 260x or radeon HD 6770, and with qemu 2.6.0, it looks normal until after the grub menu, and then the screen looks broken (with mostly black, and some pixely junk spread horizontally in a few places on the screen... first we thought maybe the monitor died). I'm not sure if it's before or only at the moment where the screen resolution changes (I could check that or record it on request). Also, the VM is not pingable and does not respond to "system_powerdown" on qemu monitor. However, the same setup works fine with windows 8. And it works fine without graphics cards passed through. A usb controller passed through works fine too. = And then I ran a bisect... 2d82f8a3cdb276bc3cb92d6f01bf8f66bf328d62 is the first bad commit commit 2d82f8a3cdb276bc3cb92d6f01bf8f66bf328d62 Author: Alex Williamson Date: Thu Mar 10 09:39:08 2016 -0700 vfio/pci: Convert all MemoryRegion to dynamic alloc and consi= stent functions = Match common vfio code with setup, exit, and finalize functio= ns for BAR, quirk, and VGA management. VGA is also changed to dynam= ic allocation to match the other MemoryRegions. = Signed-off-by: Alex Williamson :040000 040000 0acfd49b6ecae780b6f52a34080ecec6b3ec3672 e0cfdaded= e08f553463c0b23931eda81107f41b8 M hw = then confirm it by reverting that commit git checkout v2.6.0 git revert 2d82f8a3cdb276bc3cb92d6f01bf8f66bf328d62 git mergetool -t kdiff3 "select all from C", save not sure if this is the right way to do this...but it compile= s and works (bug fixed) git commit -m "revert 2d82f8a3cdb276bc3cb92d6f01bf8f66bf328d62 re= solve conflicts" And that 2.6.0 build with that one patch reverted works fine. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1591628/+subscriptions