<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I tried your method and it definitely did something.<br>
<br>
When attaching the device as is, virsh tells me:<br>
error: internal error: Attempted double use of PCI slot 0000:00:02.0
(may need "multifunction='on'" for device on function 0)<br>
If I remove the second <address ... /> tag completely, virsh
attaches the device successfully.<br>
Windows tells me, that the GPU has an error code 14 (that's new) and
that I shall restart.<br>
After the restart, the GPU gives me Code 43 again.<br>
<br>
Best regards,<br>
Ruben<br>
<br>
<div class="moz-cite-prefix">Am 29.01.2016 um 01:56 schrieb Nicolas
Roy-Renaud:<br>
</div>
<blockquote cite="mid:56AAB8A8.6070001@ens.etsmtl.ca" type="cite">
Ok, try to remove your passthrough from your guest configuration
(either using virsh of virt manager). That is : remove the actual
gpu (PCI:1:0.0) but keep the associated sound card (PCI:1:0.1) in
there so virsh knows it needs to bind with this VFIO group.<br>
From there, create a file (let's say ./GPU_DEVICE.xml) containing
just the following :<br>
<br>
<blockquote>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<ol class="xml" style="color: rgb(172, 172, 172); margin: 0px;
padding: 0px 0px 0px 55px; font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
24px; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; background:
rgb(247, 247, 247);">
<li class="li1" style="-webkit-user-select: none; margin: 0px
0px 0px -6px; background: rgb(255, 255, 255);">
<div class="de1" style="-webkit-user-select: text; padding:
0px 8px; vertical-align: top; color: rgb(51, 51, 51);
border-left-width: 1px; border-left-style: solid;
border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px
-7px; position: relative; font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif;
background: rgb(255, 255, 255);"> <span
class="Apple-converted-space"> </span><span class="sc3"
style="color: rgb(0, 153, 0);"><span class="re1"
style="color: rgb(0, 0, 0); font-weight: bold;"><hostdev</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">mode</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'subsystem'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">type</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'pci'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">managed</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'yes'</span><span
class="re2" style="color: rgb(0, 0, 0); font-weight:
bold;">></span></span></div>
</li>
<li class="li1" style="-webkit-user-select: none; margin: 0px
0px 0px -6px; background: rgb(255, 255, 255);">
<div class="de1" style="-webkit-user-select: text; padding:
0px 8px; vertical-align: top; color: rgb(51, 51, 51);
border-left-width: 1px; border-left-style: solid;
border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px
-7px; position: relative; font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif;
background: rgb(255, 255, 255);"> <span
class="Apple-converted-space"> </span><span class="sc3"
style="color: rgb(0, 153, 0);"><span class="re1"
style="color: rgb(0, 0, 0); font-weight: bold;"><source<span
class="re2" style="color: rgb(0, 0, 0); font-weight:
bold;">></span></span></span></div>
</li>
<li class="li2" style="-webkit-user-select: none; margin: 0px
0px 0px -6px; background: rgb(255, 255, 255);">
<div class="de2" style="-webkit-user-select: text; padding:
0px 8px; vertical-align: top; color: rgb(51, 51, 51);
border-left-width: 1px; border-left-style: solid;
border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px
-7px; position: relative; font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif;
background: rgb(248, 248, 248);"> <span
class="Apple-converted-space"> </span><span class="sc3"
style="color: rgb(0, 153, 0);"><span class="re1"
style="color: rgb(0, 0, 0); font-weight: bold;"><address</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">domain</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x0000'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">bus</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x01'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">slot</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x00'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">function</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x0'</span><span
class="re2" style="color: rgb(0, 0, 0); font-weight:
bold;">/></span></span></div>
</li>
<li class="li1" style="-webkit-user-select: none; margin: 0px
0px 0px -6px; background: rgb(255, 255, 255);">
<div class="de1" style="-webkit-user-select: text; padding:
0px 8px; vertical-align: top; color: rgb(51, 51, 51);
border-left-width: 1px; border-left-style: solid;
border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px
-7px; position: relative; font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif;
background: rgb(255, 255, 255);"> <span
class="Apple-converted-space"> </span><span class="sc3"
style="color: rgb(0, 153, 0);"><span class="re1"
style="color: rgb(0, 0, 0); font-weight: bold;"></source<span
class="re2" style="color: rgb(0, 0, 0); font-weight:
bold;">></span></span></span></div>
</li>
<li class="li1" style="-webkit-user-select: none; margin: 0px
0px 0px -6px; background: rgb(255, 255, 255);">
<div class="de1" style="-webkit-user-select: text; padding:
0px 8px; vertical-align: top; color: rgb(51, 51, 51);
border-left-width: 1px; border-left-style: solid;
border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px
-7px; position: relative; font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif;
background: rgb(255, 255, 255);"> <span
class="Apple-converted-space"> </span><span class="sc3"
style="color: rgb(0, 153, 0);"><span class="re1"
style="color: rgb(0, 0, 0); font-weight: bold;"><address</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">type</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'pci'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">domain</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x0000'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">bus</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x00'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">slot</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x02'</span><span
class="Apple-converted-space"> </span><span
class="re0" style="color: rgb(0, 0, 102);">function</span>=<span
class="st0" style="color: rgb(255, 0, 0);">'0x0'</span><span
class="re2" style="color: rgb(0, 0, 0); font-weight:
bold;">/></span></span></div>
</li>
<li class="li1" style="-webkit-user-select: none; margin: 0px
0px 0px -6px; background: rgb(255, 255, 255);">
<div class="de1" style="-webkit-user-select: text; padding:
0px 8px; vertical-align: top; color: rgb(51, 51, 51);
border-left-width: 1px; border-left-style: solid;
border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px
-7px; position: relative; font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif;
background: rgb(255, 255, 255);"> <span
class="Apple-converted-space"> </span><span class="sc3"
style="color: rgb(0, 153, 0);"><span class="re1"
style="color: rgb(0, 0, 0); font-weight: bold;"></hostdev<span
class="re2" style="color: rgb(0, 0, 0); font-weight:
bold;">></span></span></span></div>
</li>
</ol>
</blockquote>
<br>
You'll be able to use this file to tell libvirt to append your GPU
to guest's config at runtime, which somehow gets around the
invalid ROM issue. Just run something like this :<br>
<pre>virsh start Win10Full && sleep 60 && virsh attach-device --live --file ./GPU_DEVICE.xml
</pre>
If I guessed right, windows should detect a new GPU and get the
drivers in place once virsh is done mounting it. If that does
work, you'll gave to run this same command every time you start
your VM too, or at least until that specific bug is fixed.
Hopefully that should get you some results so you can work your
way from there.<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<div class="moz-cite-prefix">On 2016-01-28 17:03, Ryan Flagler
wrote:<br>
</div>
<blockquote
cite="mid:CAMTmaF+mAK5ah=6akYkCqmA1D5Q=jRH3qyVfPK5GBcLij_Xo5w@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">I was going to recommend you use UEFI, which is
why I was asking. I've personally had better luck getting
things to pass through properly.
<div><br>
</div>
<div>Is your VM down when you try to cat the rom? The GPU
needs to be unused by anything.</div>
</div>
<br>
</blockquote>
I had the exact same symptoms on my Asus Strix 970, looks like a
recurring issue with Asus cards. This happenned both when trying
to start a VM with a managed passthrough and when attempting to
dump the ROM from sysfs. I figured it's probably an issue with
vfio-pci itself, and I still haven't fixed it wet, but the
solution I posted above is my current workaround.</blockquote>
<br>
</body>
</html>