<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/04/2017 12:17 PM, Javier Celaya
wrote:<br>
</div>
<blockquote
cite="mid:CAE6Ev=wXAvyoQQ_4Ey_r_wmiimfP7X7kW28iC2KkC1zN9_=4fg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>This is my command line:<br>
qemu-system-<wbr>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",<wbr>if=pflash,format=raw,unit=0,<wbr>readonly=on<br>
-drive file="OVMF_VARS-pure-efi.fd",<wbr>if=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,<wbr>bus=sound0.0,cad=0<br>
-device ioh3420,bus=pcie.0,<wbr>multifunction=on,port=1,<wbr>chassis=1,id=root.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=<wbr>hostdev0,bus=root.0,<wbr>multifunction=on<br>
-device vfio-pci,host=01:00.1,id=<wbr>hostdev1,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>
</div>
</div>
</div>
</div>
</blockquote>
ok, I saw on #kvm and #vfio-users on freenode multiple reports that
it doesn't work with q35 and when users switched to i440fx it
started working.<br>
<br>
<br>
<br>
<blockquote
cite="mid:CAE6Ev=wXAvyoQQ_4Ey_r_wmiimfP7X7kW28iC2KkC1zN9_=4fg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<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="gmail_signature" data-smartmail="gmail_signature"><br>
Javi<br>
</div>
</div>
<br>
<div class="gmail_quote">2017-02-03 12:41 GMT+01:00 Janusz <span
dir="ltr"><<a moz-do-not-send="true"
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="HOEnZb">
<div class="h5"><br>
On 02/03/2017 08:29 AM, <a moz-do-not-send="true"
href="mailto:ryanlynch@sigaint.org">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=<wbr>GenuineIntel
-smp<br>
> cpus=4,sockets=1,cores=2,<wbr>threads=2"<br>
> cpus="-cpu<br>
> host,+kvmclock,+kvmclock-<wbr>stable-bit,nx=on,kvm=on,<wbr>vendor=GenuineIntel
-smp<br>
> cpus=4,sockets=1,cores=2,<wbr>threads=2"<br>
> monitor="-monitor none"<br>
> # rombar=1 = good<br>
> vfio="-device<br>
> vfio-pci,host=01:00.0,x-vga=<wbr>off,multifunction=on,rombar=1,<wbr>romfile=/${bios}/xfx-rx480-<wbr>stock.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=<wbr>off,kernel_irqchip=on"<br>
> net="-netdev user,id=vmnic,restrict=n,<wbr>hostfwd=tcp::1022-:22
-device<br>
> virtio-net-pci,romfile=,<wbr>netdev=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}/<wbr>vendor)"<br>
> device="$(cat /sys/bus/pci/devices/${dev}/<wbr>device)"<br>
> if [ -e "/sys/bus/pci/devices/${dev}/<wbr>driver"
]; then<br>
> echo "${dev}" >
"/sys/bus/pci/devices/${dev}/<wbr>driver/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/<wbr>current/../bootx64.efi<br>
> "${tmpMount}"/EFI/BOOT/<wbr>BOOTX64.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,<wbr>sparse_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_<wbr>xattr,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=<wbr>none \<br>
> ${mem} \<br>
> ${machine} \<br>
> ${cpus} \<br>
> -L ${bios} \<br>
> -drive if=pflash,format=raw,readonly,<wbr>file=${bios}/OVMF_CODE-pure-<wbr>efi.fd
\<br>
> -drive if=pflash,format=raw,readonly,<wbr>file=${bios}/OVMF_1600_600-<wbr>efi.fd
\<br>
> ${vfio} \<br>
> -drive<br>
> id=disk0,if=none,format=raw,<wbr>cache=none,detect-zeroes=on,<wbr>copy-on-read=off,file="${<wbr>image_file}"<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
moz-do-not-send="true"
href="mailto:ryanlynch@sigaint.org">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 moz-do-not-send="true"
href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
>>> <a moz-do-not-send="true"
href="https://www.redhat.com/mailman/listinfo/vfio-users"
rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/vfio-users</a><br>
>>><br>
><br>
> ______________________________<wbr>_________________<br>
> vfio-users mailing list<br>
> <a moz-do-not-send="true"
href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
> <a moz-do-not-send="true"
href="https://www.redhat.com/mailman/listinfo/vfio-users"
rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/vfio-users</a><br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>