<div dir="ltr">I only needed core2duo when installing the anniversary update. I heard 
it tries to flash CPU microcode and QEMU blocks this so the update 
fails, but it doesn't try to install it for core2duo.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 4, 2017 at 1:42 PM, Nick Sarnie <span dir="ltr"><<a href="mailto:commendsarnex@gmail.com" target="_blank">commendsarnex@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">I only needed core2duo when installing the anniversary update. I heard it tries to flash CPU microcode and QEMU blocks this so the update fails, but it doesn't try to install it for core2duo.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 4, 2017 at 6:17 AM, Javier Celaya <span dir="ltr"><<a href="mailto:jcelaya@gmail.com" target="_blank">jcelaya@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><div><div><div><div>This is my command line:<br>qemu-system-x86_64<br>        -nodefaults -no-user-config<br>        -enable-kvm -m 8192<br>        -cpu Opteron_G1,+cx16,+lahf_lm,kvm=<wbr>off<br>        -M q35<br>        -smp 4,sockets=1,cores=4,threads=1<br>        -realtime mlock=on -rtc base=localtime,driftfix=slew<br>        -drive file="OVMF_CODE-pure-efi.fd",i<wbr>f=pflash,format=raw,unit=0,rea<wbr>donly=on<br>        -drive file="OVMF_VARS-pure-efi.fd",i<wbr>f=pflash,format=raw,unit=1<br>        -drive file="$HD",id=disk1,if=virtio,<wbr>cache=none<br>        -netdev bridge,id=netuser,br=br0<br>        -device virtio-net-pci,netdev=netuser,<wbr>id=net0,mac=52:54:00:72:75:9e<br>        -device ich9-intel-hda,id=sound0<br>        -device hda-duplex,id=sound0-codec0,bu<wbr>s=sound0.0,cad=0<br>        -device ioh3420,bus=pcie.0,multifuncti<wbr>on=on,port=1,chassis=1,id=root<wbr>.0<br>        -usbdevice $JOYPAD                     <br>        -usbdevice $KEYBOARD<br>        -usbdevice $MOUSE                        <wbr>                         <br>        -mem-path $MEM_PATH                     <wbr>                               <br>        -nographic -vga none                           <br>        -device vfio-pci,host=01:00.0,id=hostd<wbr>ev0,bus=root.0,multifunction=o<wbr>n<br>        -device vfio-pci,host=01:00.1,id=hostd<wbr>ev1,bus=pcie.0<br><br></div>I see some differences with yours:<br></div>- @Janusz: Q35 works fine for me, as does i440fx<br></div>- Why are you using a ROM file? Your RX480 does not support UEFI?<br></div>- You are not explicitly attaching the graphics card and the HDMI sound card to the PCI-E bus, not sure if that could be a problem.<br></div>- "-cpu host" is known to have problems with Windows 10 guests. If it hangs, try using my config or "-cpu core2duo".<br><br></div><div>Cheers<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-7191242378776052236m_4889903529974828164gmail_signature" data-smartmail="gmail_signature"><br>Javi<br></div></div><div><div class="m_-7191242378776052236h5">
<br><div class="gmail_quote">2017-02-03 12:41 GMT+01:00 Janusz <span dir="ltr"><<a href="mailto:januszmk6@gmail.com" target="_blank">januszmk6@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Q35 doesn't work with polaris gpus, try i440fx<br>
<div class="m_-7191242378776052236m_4889903529974828164HOEnZb"><div class="m_-7191242378776052236m_4889903529974828164h5"><br>
On 02/03/2017 08:29 AM, <a href="mailto:ryanlynch@sigaint.org" target="_blank">ryanlynch@sigaint.org</a> wrote:<br>
> Hi<br>
><br>
> I have a working configuration with ubuntu guest. I tried using 1G pages<br>
> and found that I need at least 4G for the linux driver to load. I am using<br>
> the standard XFX roms that I used to flash the BIOS which are signed and<br>
> not modded. I have tried taking the working native windows configuration<br>
> and booting that up via qemu and after it installs the acpi drivers is<br>
> fails with the same reason..<br>
><br>
> This command line works for macOs sierra (unacellerated but it does the<br>
> full screen 1920x2060 and 3840x2060) and works with glamour enabled Ubuntu<br>
> guest. I also found that you get a corrupt screen if you don't enable<br>
> glamour under gentoo.<br>
><br>
> img=win<br>
> bios=/mnt/work/vm/etc<br>
> mem="-m 4G -mem-path /mnt/hugepg1g"<br>
> #cpus="-cpu host,nx=on,kvm=on,vendor=Genui<wbr>neIntel -smp<br>
> cpus=4,sockets=1,cores=2,threa<wbr>ds=2"<br>
> cpus="-cpu<br>
> host,+kvmclock,+kvmclock-stabl<wbr>e-bit,nx=on,kvm=on,vendor=Genu<wbr>ineIntel -smp<br>
> cpus=4,sockets=1,cores=2,threa<wbr>ds=2"<br>
> monitor="-monitor none"<br>
> # rombar=1 = good<br>
> vfio="-device<br>
> vfio-pci,host=01:00.0,x-vga=of<wbr>f,multifunction=on,rombar=1,ro<wbr>mfile=/${bios}/xfx-rx480-stock<wbr>.rom,addr=10.0<br>
> -device vfio-pci,host=01:00.1,addr=10.<wbr>1"<br>
> machine="-machine q35,accel=kvm,usb=off,vmport=o<wbr>ff,kernel_irqchip=on"<br>
> net="-netdev user,id=vmnic,restrict=n,hostf<wbr>wd=tcp::1022-:22 -device<br>
> virtio-net-pci,romfile=,netdev<wbr>=vmnic"<br>
> display="-display none"<br>
> graphic=""<br>
> sound=""<br>
> inputs=""<br>
> image_file="windoze.img"<br>
> serial="-serial stdio"<br>
><br>
> if [ ! -z "${1}" ] ; then<br>
>    image_file="${1}"<br>
> fi<br>
><br>
>     for dev in 0000:01:00.0 0000:01:00.1 ; do<br>
>         vendor="$(cat /sys/bus/pci/devices/${dev}/ve<wbr>ndor)"<br>
>         device="$(cat /sys/bus/pci/devices/${dev}/de<wbr>vice)"<br>
>         if [ -e "/sys/bus/pci/devices/${dev}/d<wbr>river" ]; then<br>
>             echo "${dev}" > "/sys/bus/pci/devices/${dev}/d<wbr>river/unbind"<br>
>          fi<br>
>          echo "${vendor}" "${device}" > /sys/bus/pci/drivers/vfio-pci/<wbr>new_id<br>
>     done<br>
><br>
> inputs="-usbdevice host:xxxx:yyyy"<br>
><br>
> if [ ! -f "${image_file}" ] ; then<br>
>     loop_dev="$(losetup --find)"<br>
>     qemu-img create -f raw "${image_file}" 12G<br>
>     sgdisk --zap-all "${image_file}"<br>
>     sgdisk --set-alignment=1 --new=1:34:131071 "${image_file}"<br>
>     sgdisk --typecode 1:ef00 "${image_file}"<br>
>     sgdisk --set-alignment=1 --new=2:131072: "${image_file}"<br>
>     sgdisk --typecode 2:8300 "${image_file}"<br>
>     sgdisk --partition-guid=1:R<br>
>     sgdisk --partition-guid=2:R<br>
>     gdisk -l  "${image_file}"<br>
>     tmpMount="$(mktemp -d)"<br>
>     losetup --partscan "${loop_dev}" "${image_file}"<br>
>     mkfs.vfat -f1 -F12 "${loop_dev}"p1<br>
>     mount -orw "${loop_dev}"p1 "${tmpMount}"<br>
>     mkdir -p "${tmpMount}"/EFI/BOOT<br>
>     cp /mnt/work/os/ar//lib/modules/c<wbr>urrent/../bootx64.efi<br>
> "${tmpMount}"/EFI/BOOT/BOOTX64<wbr>.EFI<br>
>     umount "${tmpMount}"<br>
>     mkfs.ext4 -O<br>
> ^has_journal,extent,huge_file,<wbr>flex_bg,inline_data,64bit,dir_<wbr>nlink,extra_isize,bigalloc,spa<wbr>rse_super2<br>
> -E num_backup_sb=0 -G 32 -C 4096 -I 256 "${loop_dev}"p2<br>
>     tune2fs -E hash_alg=tea -e remount-ro "${loop_dev}"p2<br>
>     mount -t ext4 -onoatime,nodiratime,user_xatt<wbr>r,acl,noauto,delalloc,rw<br>
> "${loop_dev}"p2 "${tmpMount}"<br>
>     rsync -SHax /mnt/work/os/ar/ "${tmpMount}"/<br>
>     umount "${tmpMount}"<br>
>     rmdir "${tmpMount}"<br>
>     losetup --detach "${loop_dev}"<br>
> fi<br>
><br>
> qemu-system-x86_64 \<br>
>    -nodefaults \<br>
>    -nodefconfig \<br>
>    -enable-kvm \<br>
>    -no-fd-bootchk \<br>
>    -no-user-config \<br>
>    -no-hpet \<br>
>    -rtc base=utc,clock=host,driftfix=n<wbr>one \<br>
>    ${mem} \<br>
>    ${machine} \<br>
>    ${cpus} \<br>
>    -L ${bios} \<br>
>    -drive if=pflash,format=raw,readonly,<wbr>file=${bios}/OVMF_CODE-pure-ef<wbr>i.fd \<br>
>    -drive if=pflash,format=raw,readonly,<wbr>file=${bios}/OVMF_1600_600-efi<wbr>.fd \<br>
>    ${vfio} \<br>
>    -drive<br>
> id=disk0,if=none,format=raw,ca<wbr>che=none,detect-zeroes=on,copy<wbr>-on-read=off,file="${image_fil<wbr>e}"<br>
> -device virtio-scsi-pci --device scsi-hd,drive=disk0,bootindex=<wbr>0 \<br>
>    ${net} \<br>
>    ${vga} \<br>
>    ${display} \<br>
>    ${inputs} \<br>
>    ${graphic} \<br>
>    ${sound} \<br>
>    ${monitor} \<br>
>    ${serial} \<br>
>    -parallel none<br>
><br>
><br>
> Cheers<br>
><br>
> Ryan<br>
><br>
><br>
>> I have a working configuration with an RX480, Windows 10 guest and Linux<br>
>> x64 host, but with a Sandy Bridge i5. Can you give more information? Host<br>
>> kernel version, chipset, iommu groups, qemu/libvirt configuration... Have<br>
>> you ever managed to get it working with a different graphics card or guest<br>
>> OS?<br>
>><br>
>><br>
>> Javi<br>
>><br>
>> 2017-02-03 5:22 GMT+01:00 <<a href="mailto:ryanlynch@sigaint.org" target="_blank">ryanlynch@sigaint.org</a>>:<br>
>><br>
>>> Does the RX480 work with windows 10 guest on linux x64 host haswell<br>
>>> vt-d?<br>
>>> I have working config for linux guest but windows 10 gives error -31<br>
>>> "Could not install drivers" and video driver using low res vga driver<br>
>>> (from windows) all booting UEFI.<br>
>>><br>
>>> Have tried 3 different windows version drivers 16.9 16.12 and 17.1 and<br>
>>> still have same problem. Anyone have success with this?<br>
>>><br>
>>> Lync<br>
>>><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>
>>><br>
><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>
<br>
<br>
</div></div></blockquote></div><br></div></div></div>
<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>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>