<div dir="ltr"><div><div><div>Good news, folks!<br><br></div>Hagbard was kind enough to send an older build of OVMF he had lying around and suggested I try it. I did, and I am happy to report my VM boots very fast again! For safekeeping, I have committed it to my GitHub repository: <a href="https://github.com/jkoelndorfer/local-tools/blob/master/workstation/vfio/edk2.git-ovmf-x64-0-20150804.b1143.g8ca1489.noarch.rpm">https://github.com/jkoelndorfer/local-tools/blob/master/workstation/vfio/edk2.git-ovmf-x64-0-20150804.b1143.g8ca1489.noarch.rpm</a>. I believe that when I did my initial VFIO setup, I used a package from the AUR which may have been just old enough to avoid the problem.<br><br></div>I may experiment some and see if any of the qemu parameters provided by Hristo make a difference with a current version of OVMF. For now, I'm happy my VM is booting quickly.<br><br></div>Thanks very much for your help.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 24, 2017 at 7:22 PM, John Koelndorfer <span dir="ltr"><<a href="mailto:jkoelndorfer@gmail.com" target="_blank">jkoelndorfer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>An update:<br><br></div>The slow boot does not occur if I remove host devices from the virtual machine (without any other configuration changes). It doesn't matter whether GPU, USB, or both are passed in. Any device being passed in at all triggers the problem, so it's something related to the physical device passthrough I think.<br><br></div><div>An older version of OVMF did not help, nor did booting a non-Windows OS. I tried two alternate versions of OVMF from here: <a href="https://www.rpmfind.net/linux/rpm2html/search.php?query=edk2-ovmf" target="_blank">https://www.rpmfind.net/linux/<wbr>rpm2html/search.php?query=<wbr>edk2-ovmf</a>. One from 2016 November, one from 2016 April. I initially did my last VFIO setup in 2016 July.<br><br></div><div>I also tried the pc-i440fx machine, per Hristo's suggestion (though I tried 2.6, which was what my last configuration used).<br><br></div><div>Hristo, it seems your setup is very similar to mine, so I have a few questions for you:<br><br>* Are you using libvirt?<br>* Could you send the qemu arguments for your VM?<br></div><div>* What are your kernel boot parameters?<br></div><div><br></div><div>My suspicion now is that libvirt is doing some extra configuration that I'm not. I looked at my old libvirt XML file and nothing is jumping out at me, so maybe it's a hardcoded default behavior.<br><br></div><div>Thanks for all the suggestions so far, folks.<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 24, 2017 at 4:03 PM, Hagbard Celine <span dir="ltr"><<a href="mailto:hagbardcelin@gmail.com" target="_blank">hagbardcelin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, just registered to the list to share my experience on this;<br>
<br>
I've been getting my OVMF builds from <a href="http://kraxel.org" rel="noreferrer" target="_blank">kraxel.org</a> since<br>
edk2.git-ovmf-x64-0-20150804.b<wbr>1143.g8ca1489.noarch.rpm and was<br>
regularly updating when new builds came.<br>
Somwhere around edk2.git-ovmf-x64-0-20151221.b<wbr>1390.g5ba9f06.noarch.rpm<br>
boot with large amounts of memory got slower.<br>
And around edk2.git-ovmf-x64-0-20160324.b<wbr>1634.g3decba3.noarch.rpm the<br>
EFI part of boot could last about 15min with 16GB assigned to VM out<br>
of a total of 32GB. Lovering the assigned memory for VM to below 8GB<br>
resulted in normal boot times.<br>
<br>
PS. The version numbers are approximations, my recollection is not exact.<br>
<div class="m_5740139601312758719HOEnZb"><div class="m_5740139601312758719h5"><br>
______________________________<wbr>_________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/vfio-users</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>