<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;">So we need a CSM-enabled OVMF builds? My Windows 10 guest script refered to that whitepaper, using pure OVMF build, never tried on Windows 7 though. Just noticed about this CSM-enabled builds, worth to try. Thanks for pointing this.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div id="bloop_sign_1443001818127672832" class="bloop_sign"><font face="helvetica, arial">-- </font><br><span style="color: rgb(2, 1, 3); " data-mce-style="orphans: 2; text-align: -webkit-auto; widows: 2; background-color: #ffffff; color: #020103; font-family: 'Times New Roman', serif;"><font face="Calibri"><b>Okky Hendriansyah</b></font></span></div><p class="airmail_on" style="color:#000;">On September 23, 2015 at 16:49:11, Blank Field (<a href="mailto:ihatethisfield@gmail.com">ihatethisfield@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>


<title></title>


<p dir="ltr">You can run win7 with ovmf, but you need to follow the
whitepaper instructions.</p>
<div class="gmail_quote">On Sep 23, 2015 11:37 AM, "Okky
Hendriansyah" <<a href="mailto:okky@nostratech.com">okky@nostratech.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Good to hear that. Keep in mind that by enabling the Intel VGA
Arbitration on the kernel, you lose the DRI capabities (3D
acceleration, etc.) on the host graphics card (Intel HD).<br>
<br>
If you don't want that, the only way is to pass the GPU without VGA
(legacy-free) mode, thus by using a modern OS like Windows 8
onwards that supports UEFI (via OVMF). Using the legacy-free mode
we don't need to patch the kernel and we don't lose the DRI
capabilities of the host (Intel HD only). Oh yeah, we also need the
GPU to support UEFI.<br>
<br>
Alex details this on his blog<br>
<a href="http://vfio.blogspot.co.id/2014/08/whats-deal-with-vga-arbitration.html?m=1" rel="noreferrer" target="_blank">http://vfio.blogspot.co.id/2014/08/whats-deal-with-vga-arbitration.html?m=1</a><br>

<br>
Best regards,<br>
Okky Hendriansyah<br>
<br>
> On Sep 23, 2015, at 14:13, Francisco Menendez <<a href="mailto:aterfelis@gmail.com">aterfelis@gmail.com</a>>
wrote:<br>
><br>
> Okky.<br>
><br>
> The arbitration patch did it! Also, by your suggestion, I went
back to<br>
> Seabios instead of OVFM.<br>
> Thanks a lot! This was driving me crazy for the past
week!<br>
><br>
> Kind regards.<br>
><br>
> -Francisco<br>
><br>
>> On Wed, Sep 23, 2015 at 1:45 PM, Okky Hendriansyah
<<a href="mailto:okky@nostratech.com">okky@nostratech.com</a>>
wrote:<br>
>> Hmm, I once successful passing through to a Windows 7
guest but with using<br>
>> VGA mode, thus I used the Seabios instead of OVMF, install
linux-vfio from<br>
>> AUR to have the kernel patched with necessary Intel VGA
Arbitration patches,<br>
>> and enable the i915.enable_hd_vgaarb=1 kernel
parameter.<br>
>><br>
>> Here’s my script when I use Windows 7:<br>
>> <a href="http://pastebin.com/5U2VjuEy" rel="noreferrer" target="_blank">http://pastebin.com/5U2VjuEy</a><br>
>><br>
>> --<br>
>> Okky Hendriansyah<br>
>><br>
>> On September 23, 2015 at 11:30:47, Francisco Menendez
(<a href="mailto:aterfelis@gmail.com">aterfelis@gmail.com</a>)<br>
>> wrote:<br>
>><br>
>> Hello, Okky.<br>
>> Thanks for your reply.<br>
>><br>
>> I removed the x-vga=on option but there isn't any
discernible change.<br>
>> Boots normally, but only displays up until "Starting
Windows"<br>
>><br>
>> On Wed, Sep 23, 2015 at 1:10 PM, Okky Hendriansyah
<<a href="mailto:okky@nostratech.com">okky@nostratech.com</a>><br>
>> wrote:<br>
>>> Hi Francisco,<br>
>>><br>
>>> It seems that you passthrough in VGA mode (x-vga=on)
but you are using<br>
>>> OVMF<br>
>>> also. Have you tried omiting the x-vga=on
switch?<br>
>>><br>
>>> Best regards,<br>
>>> --<br>
>>> Okky Hendriansyah<br>
>>><br>
>>> On September 23, 2015 at 11:05:44, Francisco
Menendez<br>
>>> (<a href="mailto:aterfelis@gmail.com">aterfelis@gmail.com</a>)<br>
>>> wrote:<br>
>>><br>
>>> I'm having a bit of an odd issue and would greatly
appreciate it if<br>
>>> someone has any clue as of what might be
happening.<br>
>>><br>
>>> The system:<br>
>>> * Intel CPU with VTx and VTd enabled in BIOS<br>
>>> * NVidia GTX 980 - isolated (vfio), to be used by the
guest<br>
>>> * Intel graphics for the host (Arch Linux x64)<br>
>>><br>
>>> What I've done:<br>
>>><br>
>>> * Added "iommu_intel=on" to the kernel boot command
line<br>
>>> * Blacklisted the nouveau driver<br>
>>> * Added the vfio-pci driver and assigned the necessary
ids (GPU +<br>
>>> attached HDMI sound)<br>
>>> * Confirmed IOMMU groups ( /sys/kernel/iommu_groups/
-type l output is OK)<br>
>>> * Confirmed vfio-pci capture with dmesg<br>
>>><br>
>>> What happens:<br>
>>><br>
>>> After booting windows, I get the GPU displaying the
"Starting Windows"<br>
>>> splash screen, with animation and everything. Thus
far, I think the<br>
>>> GPU passthrough is successful. However, after that,
the screen gets<br>
>>> stuck there while the system keeps booting. I even
hear the windows<br>
>>> chime as it starts, but the screen is still showing
"Starting Windows"<br>
>>><br>
>>> If I use emulated VGA, the NVidia card shows "Code
12", but I hear<br>
>>> this is expected if the emulated VGA is turned
on.<br>
>>><br>
>>> The above is also reproducible with the windows
installer ( The GPU<br>
>>> output displays: "Windows is loading files" ->
"Starting windows" -><br>
>>> no more screen updates )<br>
>>><br>
>>> QEMU commandline:<br>
>>><br>
>>> --------------<br>
>>> qemu-system-x86_64 \<br>
>>> -name windows7 \<br>
>>> -cpu host,kvm=off \<br>
>>> -smp 8,sockets=1,cores=4,threads=2 \<br>
>>> -enable-kvm \<br>
>>> -machine type=pc,accel=kvm,iommu=on \<br>
>>> -m 16G -mem-prealloc -balloon none \<br>
>>> -rtc clock=host,base=utc \<br>
>>> -soundhw hda \<br>
>>> -device<br>
>>>
ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1<br>

>>> \<br>
>>> -device<br>
>>>
vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on<br>

>>> \<br>
>>> -device vfio-pci,host=01:00.1,bus=root.1,addr=00.1
\<br>
>>> -drive<br>
>>><br>
>>>
if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd<br>

>>> \<br>
>>> -drive<br>
>>><br>
>>>
if=pflash,format=raw,file=/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd<br>

>>> \<br>
>>> -drive file=win7.img,if=ide,format=raw,media=disk
\<br>
>>> -monitor stdio \<br>
>>> -device piix3-usb-uhci -device usb-tablet \<br>
>>> -vga none -serial null -parallel null -nodefaults
-nodefconfig<br>
>>> ----------------<br>
>>><br>
>>> Let me know if you need any other information about
the setup.<br>
>>> Thank you in advance!<br>
>>><br>
>>> _______________________________________________<br>
>>> vfio-users mailing list<br>
>>> <a href="mailto:vfio-users@redhat.com">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/listinfo/vfio-users</a><br>
</blockquote>
</div>


</div></div></span></blockquote></body></html>