<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">On November 11, 2015 at 04:41:22, arch user (<a href="mailto:archuser@gmx.com">archuser@gmx.com</a>) wrote:</div> <div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div><div></div><div>Hi,<span class="Apple-converted-space"> </span><br> <span class="Apple-converted-space"> </span><br>I've recently assembled a skylake system (i5 6400, AMD R9 380 [Tonga PRO], Gigabyte H170N), hoping to be able to use VFIO for PCI passthrough of the discrete graphics card to a Windows guest. I'm using qemu 2.4.1 on top of a bare Arch Linux instal; Windows 10 is installed as a KVM guest, using the UEFI images from [1].<span class="Apple-converted-space"> </span><br> <span class="Apple-converted-space"> </span><br>After initial installation using the QXL video driver, I've swapped it for the AMD card. The guest boots without issues (aside from color corruption on HDMI output, which I assume has something to do with non-1080p output). However, roughly thirty seconds after initial bootup (guest is at the desktop) the guest appears to freeze (HDMI output drops, network connections disconnect). According to qemu metrics one guest core is pegged at 100% as it occurs.<span class="Apple-converted-space"> </span><br> <span class="Apple-converted-space"> </span><br>Interestingly, forcefully shutting down the guest and attempting to boot it again immediately puts it into the 'core pegged at 100%' state, without ever showing any sign of life.<span class="Apple-converted-space"> </span><br> <span class="Apple-converted-space"> </span><br>I've found a thread detailingr recent issues on Arch [2], but I don't experience slowdowns, just a full lockup. Similarly, the bug at [3] doesn't seem to be related either (temporarily assigned 2 GB to the guest just to be sure).<span class="Apple-converted-space"> </span><br> <span class="Apple-converted-space"> </span><br>Neither kernel 4.1.10, nor 4.2.5 works. Kernel and qemu logs show no interesting leads - qemu startup info and relevant dmesg entries +  lspci/iommu is attached.<span class="Apple-converted-space"> </span><br> <span class="Apple-converted-space"> </span><br>Any ideas on how to debug this?<span class="Apple-converted-space"> </span><br> <span class="Apple-converted-space"> </span><br>[1]: https://www.kraxel.org/repos/jenkins/edk2/<span class="Apple-converted-space"> </span><br>[2]: https://bbs.archlinux.org/viewtopic.php?id=203240<span class="Apple-converted-space"> </span><br>[3]: https://bugzilla.kernel.org/show_bug.cgi?id=107561<span class="Apple-converted-space"> </span><br> _______________________________________________<span class="Apple-converted-space"> </span><br>vfio-users mailing list<span class="Apple-converted-space"> </span><br>vfio-users@redhat.com<span class="Apple-converted-space"> </span><br>https://www.redhat.com/mailman/listinfo/vfio-users<span class="Apple-converted-space"> </span></div></div></span></blockquote></div><p><br></p><p>Hi, </p><p><br></p><p>I see you have this line in dmesg:</p><p><font face="Courier">[  184.082279] kvm [557]: vcpu1 unhandled rdmsr: 0x641</font></p><p>I think It’s related to the guest trying to read frequency scaling info from the CPU which it cannot.</p><p>Have you tried to enable the <font face="Courier">ignore_msrs</font> <font face="Courier">kvm</font> kernel module parameter?</p><div><p style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="color: rgb(17, 17, 17); font-size: 15px;"><font face="Courier">echo 1 > /sys/module/kvm/parameters/ignore_msrs</font></span></p></div><p>Or you can also set it up in <font face="Courier">/etc/modprobe.d</font></p><p><br></p><p>Best regards,</p><p><font face="helvetica, arial">-- </font><br><span data-mce-style="orphans: 2; text-align: -webkit-auto; widows: 2; background-color: #ffffff; color: #020103; font-family: 'Times New Roman', serif;" style="color: rgb(2, 1, 3);"><font face="Calibri"><b>Okky Hendriansyah</b></font></span></p><div></div></body></html>