All of lore.kernel.org
 help / color / mirror / Atom feed
From: jimrif <jimrif@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1580459] Re: Windows (10?) guest freezes entire host on shutdown if using PCI passthrough
Date: Mon, 06 Jun 2016 05:04:55 -0000	[thread overview]
Message-ID: <20160606050455.6470.36122.malone@chaenomeles.canonical.com> (raw)
In-Reply-To: 20160511061916.21125.98809.malonedeb@wampee.canonical.com

I'm not really sure what the other similar bug was, but what I was
experiencing was a Win10 VM locking up the host machine upon shutdown of
the VM after several minutes of gaming (or even several hours of
youtube/netflix).  It didn't happen all of the time, but most of the
time after the VM had be up for a while.

I am positive that recompiling without SND support is when the host
stopped crashing upon shutdown of the Windows 10 VM as I was only doing
one change at a time.  I had the issue for many months before removing
CONFIG_SND.  Since then, 2 months ago, I've upgraded qemu, libvirt, the
kernel and win10 updates, including the nVidia drivers.  I'm not really
wanting to compile SND back in as my server is also doing a lot more
than just hosting a Win10 VM and I don't want it to crash without anyone
else trying the fix.  If others try removing SND and continue to have
the issue, I will recompile to help troubleshoot but I am very confident
that is what stopped my system from locking up when shutting down a
Windows 10 VM.  If I were to take a guess, my guess is that just
removing snd-hda-intel would do the trick.

My hardware is a X99 board, i7-5820K, and a nVidia 980 graphics card
being passed through to the guest.  The host video card is a cheap 1x
radeon with HDMI sound.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1580459

Title:
  Windows (10?) guest freezes entire host on shutdown if using PCI
  passthrough

Status in libvirt:
  New
Status in QEMU:
  New
Status in Arch Linux:
  New
Status in Debian:
  New
Status in Fedora:
  New

Bug description:
  Problem: after leaving a Windows VM that uses PCI passthrough (as we
  do for gaming graphics cards, sound cards, and in my case, a USB card)
  running for some amount of time between 1 and 2 hours (it's not
  consistent with exactly how long), and for any amount of time longer
  than that, shutting down that guest will, right as it finishes
  shutting down, freeze the host computer, making it require a hard
  reboot. Unbinding (or in the other user's case, unbinding and THEN
  binding) any PCI device in sysfs, even one that has nothing to do with
  the VM, also has the same effect as shutting down the VM (if the VM
  has been running long enough). So, it's probably an issue related to
  unbinding and binding PCI devices.

  There's a lot of info on this problem over at https://bbs.archlinux.org/viewtopic.php?id=206050
  Here's a better-organized list of main details:
  -at least 2 confirmed victims of this bug; 2 (including me) have provided lots of info in the link
  -I'm on Arch Linux and the other one is on Gentoo (distro-nonspecific)
  -issue affects my Windows 10 guest and others' Windows guests, but not my Arch Linux guest (the others don't have non-Windows guests to test)
  -I'm using libvirt but the other user is not, so it's not an issue with libvirt
  -It seems to be version non-specific, too. I first noticed it at, or when testing versions still had the issue at (whichever version is lower), Linux 4.1 and qemu 2.4.0. It still persists in all releases of both since, including the newest ones.
  -I can't track down exactly what package downgrade can fix it, as downgrading further than Linux 4.1 and qemu 2.4.0 requires Herculean and system-destroying changes such as downgrading ncurses, meaning I don't know whether it's a bug in QEMU, the Linux kernel, or some weird seemingly unrelated thing.
  -According to the other user, "graphics intensive gameplay (GTA V) can cause the crash to happen sooner," as soon as "15 minutes"
  -Also, "bringing up a second passthrough VM with separate hardware will cause the same crash," and "bringing up another VM before the two-hour mark will not result in a crash," further cementing that it's triggered by the un/binding of PCI devices.
  -This is NOT related to the very similar bug that can be worked around by not passing through the HDMI device or sound card. Even when we removed all traces of any sort of sound card from the VM, it still had the same behavior.

To manage notifications about this bug go to:
https://bugs.launchpad.net/libvirt/+bug/1580459/+subscriptions

  parent reply	other threads:[~2016-06-06  5:10 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-11  6:19 [Qemu-devel] [Bug 1580459] [NEW] Windows (10?) guest freezes entire host on shutdown if using PCI passthrough Jimi
2016-05-19 18:07 ` [Qemu-devel] [Bug 1580459] " kachaffeous
2016-05-19 18:18 ` kachaffeous
2016-05-20  0:11 ` Jimi
2016-05-20 16:43 ` kachaffeous
2016-05-20 16:58 ` Jimi
2016-05-20 16:58 ` Jimi
2016-05-28 16:39 ` Gandalf-The-Red
2016-05-28 17:08 ` Jimi
2016-05-28 17:25 ` Gandalf-The-Red
2016-05-28 18:31 ` Gandalf-The-Red
2016-05-28 19:12 ` Jimi
2016-05-28 19:14 ` Jimi
2016-05-29  1:33 ` Chris McCarron
2016-05-29  1:40 ` Chris McCarron
2016-05-29  1:59 ` Jimi
2016-05-29 17:50 ` Chris McCarron
2016-05-29 17:52 ` Chris McCarron
2016-05-29 17:53 ` Chris McCarron
2016-05-29 17:55 ` Chris McCarron
2016-05-29 17:57 ` Chris McCarron
2016-05-29 18:04 ` Chris McCarron
2016-05-29 18:15 ` Jimi
2016-05-29 18:29 ` Chris McCarron
2016-05-31  6:55 ` James Newman
2016-05-31  7:02 ` James Newman
2016-05-31  7:37 ` Jimi
2016-05-31 23:13 ` Chris McCarron
2016-06-01  1:15 ` Jimi
2016-06-05 23:34 ` jimrif
2016-06-06  0:44 ` Jimi
2016-06-06  5:04 ` jimrif [this message]
2016-06-06  5:55 ` Chris McCarron
2016-06-06  8:12 ` Jimi
2016-06-06 22:21 ` Chris McCarron
2016-06-06 22:21 ` Chris McCarron
2016-06-06 22:23 ` Chris McCarron
2016-06-06 23:36 ` James Newman
2016-06-07  1:05 ` Jimi
2016-06-12  9:32 ` Peter Maloney
2016-06-14 19:44 ` Jimi
2016-06-15 14:20 ` kachaffeous
2016-06-23  3:32 ` Jimi
2016-06-23  6:17 ` Jimi
2016-06-23 12:05 ` Chris McCarron
2016-06-23 18:25 ` Jimi
2016-06-24  1:16 ` Chris McCarron
2016-06-25  5:57 ` Jimi
2016-06-25 13:10 ` Chris McCarron
2016-07-07 20:34 ` Clif Houck
2016-07-07 21:03   ` Alex Williamson
2016-07-07 21:45 ` Jimi
2016-07-07 21:46 ` Jimi
2017-02-25 11:04 ` yanman
2017-12-09 18:44 ` john doe
2017-12-09 20:56 ` Clif Houck
2017-12-09 21:30 ` Jimi
2017-12-18 20:04 ` Benjamin
2021-04-22  5:08 ` Thomas Huth
2021-04-22 10:02 ` Chris McCarron
2021-04-22 12:21 ` Jimi
2021-04-23  4:29 ` Thomas Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160606050455.6470.36122.malone@chaenomeles.canonical.com \
    --to=jimrif@gmail.com \
    --cc=1580459@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.