<p dir="ltr"><br>
On May 16, 2016 12:27 PM, "Leonhard Preis" <<a href="mailto:leonhard@pre.is">leonhard@pre.is</a>> wrote:<br>
><br>
> My dear fellow vfio users,<br>
><br>
> today I want to share my success[1] with you. In case you have Windows 7 and currently use BIOS but would like to switch to UEFI or are about to set up your first Windows VM with passthrough and would prefer Windows 7 over Windows 8 and above, rejoice: It’s working just fine.<br>
~A lot of text cut.</p>
<p dir="ltr">Windows 7 has an EFI compatible bootloader, but the OS doesn't support GOP, using VBE when there are no drivers installed.<br>
Thanks to edk2 dev team, we have a shim which captures all VBE actions and pushes them to QXL even without CSM enabled.<br>
Since you are migrating, your installation already has drivers installed, so all this stuff is hidden from you.<br>
Second - you do NOT need to flash your GPU for two reasons:<br>
1. you have installed the drivers already, they don't care about GOP, EFI, VBE, CSM...<br>
2. you can just append it via options in the command line or in libvirt xml.</p>
<p dir="ltr">There are numerous ways to install or "migrate" W7 to UEFI, your GPU actually doesn't actually need to have an EFI driver in its' ROM.</p>
<p dir="ltr">Moreover, if there is no ROM available, you can craft it manually by taking an old-but-working efi driver from some other card's ROM and appending it to your card's ROM using EfiRom from edk2-tools.<br>
I've seen a presentation from amd dating back to 2011 saying that all EFI drivers providing GOP will be universal, and they are now.</p>
<p dir="ltr">Please note that some versions of it are broken, for example ASUS HD7750-DCSL-1 which i have.</p>
<p dir="ltr">This all was talked over on archlinux forum.</p>