6700xt Windows VM Drivers equal black screen

I am having some issues passing through my new 6700xt to a Windows VM. I am running unraid and using a vbios.

On a new windows install or the first time I boot my existing with drivers removed I get Tianocore screen then a black screen if AMD drivers have been installed.

During a fresh install once Windows 11 connects to update and installs AMD drivers I lose video and goes to black screen again.

I have a aorus x570s master and my iommu groups are good and my 1070ti was working great prior to this new 6700xt.

I will also add that using endevourOS vm (arch) I get no issues and the vm runs great.

So there seems to be something with the drivers from AMD that causes a VM not to work. I will close with the fact if I shut down unraid and boot from the nvme Windows loads fine with AMD drivers.

So what causes AMD drivers to not like Windows VMs???

I have a 6800XT, try it this way


  <features>
    <acpi/>
    <apic/>
    <hap state='on'/>
    <hyperv mode='custom'>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vpindex state='on'/>
      <synic state='on'/>
      <stimer state='on'>
        <direct state='on'/>
      </stimer>
      <reset state='on'/>
      <vendor_id state='on' value='1234567890ab'/>
      <frequencies state='on'/>
      <reenlightenment state='off'/>
      <tlbflush state='on'/>
      <ipi state='on'/>
    </hyperv>
    <vmport state='off'/>
    <ioapic driver='kvm'/>
  </features>


 <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x0d' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x17' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x0d' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x17' slot='0x00' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x0d' slot='0x00' function='0x2'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x17' slot='0x00' function='0x2'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x0d' slot='0x00' function='0x3'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x17' slot='0x00' function='0x3'/>
    </hostdev>

I appreciate the reply. I downgraded my bios which got me to consistently booting once. What piece of your xml above do you think helps with releasing upon vm shutdown?