<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <span style="white-space: pre;">> On Sat, 10 Dec 2016 02:07:43 +0100
> Manuel Ullmann <a class="moz-txt-link-rfc2396E" href="mailto:ullman.alias@posteo.de"><ullman.alias@posteo.de></a> wrote:
>
>> qemu-system-x86_64 -cpu host\
>>                    -usb\
>>                    -machine type=pc,accel=kvm\
>>                    -enable-kvm\
>>                    -vga none\
>>                    -nographic\
>>                    -display none\
>>                    -nodefconfig\
>>                    -display none\
>>                    -boot once=d\
>>                    -bios /usr/share/qemu/bios.bin\
>>                    -m 2G\
>>                    -drive
>> file=/dev/genhd/ReactOS,cache=none,if=virtio,format=raw,index=0\
>>                    -drive
>> file=/mnt/platz/Betriebssystemabbilder/virtio-win-0.1.118.iso,media=cdrom,index=2\
>>                    -smb /mnt/platz/QemuShare\
>>                    # headphone DAC
>>                    -usbdevice host:1019:0011\
>>                    # mouse
>>                    -usbdevice host:046d:c246\
>>                    -device
>> vfio-pci,host=00:02.0,addr=02.0,bus=pci.0,x-vga=on,romfile=/mnt/platz/Bugs/intelBios/intelHaswell.rom\
>
> The ROM is always suspect, where did you get it?  Why are you passing
> one rather than letting QEMU get it?  The typical case for IGD ROMs
> acquired through the rom file in sysfs is that the device ID does not
> match and the checksum is off.  Either of these will prevent SeaBIOS
> from using it.  QEMU will fix both of these automatically when it loads
> the ROM itself.  If passing a romfile, you need to fix those in
> advance.  Adding a serial console will generally give you SeaBIOS
> logging.  Thanks,
>
> Alex</span><br>
    <br>
    Ok, thanks for the hint. So, I get until the following section in
    your patch:<br>
    <br>
    +                hw_error("vfio-igd: Guest attempted to program IGD
    GTT before "<br>
    +                         "BIOS reserved stolen memory.  Unsupported
    BIOS?");<br>
    <br>
    The vm will not boot anymore, but I guess that is caused by the pass
    through being tried finally.<br>
    <br>
    Best regards,<br>
    Manuel<br>
    <br>
    New log:<br>
    <br>
    qemu-system-x86_64: -smb /mnt/platz/QemuShare: The -smb option is
    deprecated. Please use '-netdev user,smb=...' instead.<br>
    qemu-system-x86_64: Warning: speed mismatch trying to attach usb
    device "FOSTEX USB AUDIO HP-A4" (high speed) to bus "usb-bus.0",
    port "1" (full speed)<br>
    SeaBIOS (version 1.8.2-20150714_191116-)<br>
    RamSize: 0x80000000 [cmos]<br>
    Relocating init from 0x000e1980 to 0x7ffb0620 (size 63776)<br>
    Found QEMU fw_cfg<br>
    RamBlock: addr 0x0000000000000000 len 0x0000000080000000 [e820]<br>
    Moving pm_base to 0x600<br>
    CPU Mhz=3206<br>
    === PCI bus & bridge init ===<br>
    PCI: pci_bios_init_bus_rec bus = 0x0<br>
    === PCI device probing ===<br>
    Found 9 PCI devices (max PCI bus is 00)<br>
    === PCI new allocation pass #1 ===<br>
    PCI: check devices<br>
    === PCI new allocation pass #2 ===<br>
    PCI: IO: c000 - c0cf<br>
    PCI: 32: 0000000080000000 - 00000000fec00000<br>
    PCI: map device bdf=00:02.0  bar 4, addr 0000c000, size 00000040
    [io]<br>
    PCI: map device bdf=00:04.0  bar 0, addr 0000c040, size 00000040
    [io]<br>
    PCI: map device bdf=00:01.2  bar 4, addr 0000c080, size 00000020
    [io]<br>
    PCI: map device bdf=00:03.0  bar 0, addr 0000c0a0, size 00000020
    [io]<br>
    PCI: map device bdf=00:01.1  bar 4, addr 0000c0c0, size 00000010
    [io]<br>
    PCI: map device bdf=00:02.0  bar 0, addr fe400000, size 00400000
    [mem]<br>
    PCI: map device bdf=00:03.0  bar 6, addr fe800000, size 00040000
    [mem]<br>
    PCI: map device bdf=00:02.0  bar 6, addr fe840000, size 00020000
    [mem]<br>
    PCI: map device bdf=00:03.0  bar 1, addr fe860000, size 00001000
    [mem]<br>
    PCI: map device bdf=00:04.0  bar 1, addr fe861000, size 00001000
    [mem]<br>
    PCI: map device bdf=00:02.0  bar 2, addr e0000000, size 10000000
    [prefmem]<br>
    PCI: map device bdf=00:03.0  bar 4, addr f0000000, size 00800000
    [prefmem]<br>
    PCI: map device bdf=00:04.0  bar 4, addr f0800000, size 00800000
    [prefmem]<br>
    PCI: init bdf=00:00.0 id=8086:1237<br>
    PCI: init bdf=00:01.0 id=8086:7000<br>
    PIIX3/PIIX4 init: elcr=00 0c<br>
    PCI: init bdf=00:01.1 id=8086:7010<br>
    PCI: init bdf=00:01.2 id=8086:7020<br>
    PCI: init bdf=00:01.3 id=8086:7113<br>
    Using pmtimer, ioport 0x608<br>
    PCI: init bdf=00:02.0 id=8086:0412<br>
    PCI: init bdf=00:03.0 id=1af4:1000<br>
    PCI: init bdf=00:04.0 id=1af4:1001<br>
    PCI: init bdf=00:1f.0 id=8086:8c4a<br>
    PCI: Using 00:02.0 for primary VGA<br>
    Found 1 cpu(s) max supported 1 cpu(s)<br>
    Copying PIR from 0x7ffbfc80 to 0x000f1220<br>
    Copying MPTABLE from 0x00006e20/7ffa72c0 to 0x000f1120<br>
    Copying SMBIOS entry point from 0x00006e20 to 0x000f0f70<br>
    Scan for VGA option rom<br>
    Running option rom at c000:0003<br>
    qemu: hardware error: vfio-igd: Guest attempted to program IGD GTT
    before BIOS reserved stolen memory.  Unsupported BIOS?<br>
    CPU #0:<br>
    EAX=dd200001 EBX=0000c000 ECX=000000ff EDX=0000c004<br>
    ESI=00000001 EDI=00000080 EBP=00000000 ESP=00006d4c<br>
    EIP=00006d9e EFL=00000082 [--S----] CPL=0 II=0 A20=1 SMM=0 HLT=0<br>
    ES =0000 00000000 ffffffff 00809300<br>
    CS =c000 000c0000 ffffffff 00809b00<br>
    SS =0000 00000000 ffffffff 00809300<br>
    DS =0000 00000000 ffffffff 00809300<br>
    FS =0000 00000000 ffffffff 00809300<br>
    GS =0000 00000000 ffffffff 00809300<br>
    LDT=0000 00000000 0000ffff 00008200<br>
    TR =0000 00000000 0000ffff 00008b00<br>
    GDT=     000f6d80 00000037<br>
    IDT=     00000000 000003ff<br>
    CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000<br>
    DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000
    DR3=0000000000000000<br>
    DR6=00000000ffff0ff0 DR7=0000000000000400<br>
    EFER=0000000000000000<br>
    FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80<br>
    FPR0=0000000000000000 0000 FPR1=0000000000000000 0000<br>
    FPR2=0000000000000000 0000 FPR3=0000000000000000 0000<br>
    FPR4=0000000000000000 0000 FPR5=0000000000000000 0000<br>
    FPR6=0000000000000000 0000 FPR7=0000000000000000 0000<br>
    XMM00=00000000000000000000000000000000
    XMM01=00000000000000000000000000000000<br>
    XMM02=00000000000000000000000000000000
    XMM03=00000000000000000000000000000000<br>
    XMM04=00000000000000000000000000000000
    XMM05=00000000000000000000000000000000<br>
    XMM06=00000000000000000000000000000000
    XMM07=00000000000000000000000000000000<br>
    <br>
    New qemu command line:<br>
    <br>
    qemu-system-x86_64 -cpu host\<br>
               -usb\<br>
               -machine type=pc,accel=kvm\<br>
               -enable-kvm\<br>
               -vga none\<br>
               -display none\<br>
               -nodefconfig\<br>
               -display none\<br>
               -boot once=d\<br>
               -bios /usr/share/qemu/bios.bin\<br>
               -m 2G\<br>
               -drive
    file=/dev/genhd/ReactOS,cache=none,if=virtio,format=raw,index=0\<br>
               -drive
file=/mnt/platz/Betriebssystemabbilder/virtio-win-0.1.118.iso,media=cdrom,index=2\<br>
               -smb /mnt/platz/QemuShare\<br>
               -usbdevice host:1019:0011\<br>
               -usbdevice host:046d:c246\<br>
               -device
    vfio-pci,host=00:02.0,addr=02.0,bus=pci.0,x-vga=on\<br>
               -chardev stdio,id=seabios\<br>
               -device isa-debugcon,iobase=0x402,chardev=seabios\<br>
               -netdev user,id=vmnic -device virtio-net,netdev=vmnic
    &>/var/log/qemuvm.log<br>
    <br>
    <br>
    <br>
  </body>
</html>