[vfio-users] issues about igd and usb passthrough when windows7 safe mode interface occurs

fulaiyang fulaiyang at 163.com
Fri Sep 23 11:25:54 UTC 2016


Hi,Alex
    Recently, I bought another platform with  i3-6100U to passthrough the GPU. The platform has only DP or HDMI output. I am very happy to success to passthrough igd and the usb controller. However, when the windows7 safe mode interface happens, the GUI is divided into three parts. And the keyboard is invalid. After the windows7 desktop occurs, the GPU and usb devices can run very perfectly. Did you meet this problem?


environment :
Intel Core i3-6100U @ 2.30GHz
Intel Corporation Sky Lake Integrated Graphics 
Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller
DP output
Ubuntu 16.04 LTS DESKTOP
Host kernel 4.7.2 x86_64 GNU/Linux
qemu 2.7.0


configuration:
/boot/config-4.6.6
    CONFIG_VFIO_IOMMU_TYPE1=m
    CONFIG_VFIO=m
    CONFIG_VFIO_PCI=m
    CONFIG_VFIO_PCI_IGD=y
    CONFIG_VFIO_PCI_VGA=y
    CONFIG_FW_CFG_SYSFS=y 
    CONFIG_FW_CFG_SYSFS_COMLINE=y
    CONFIG_INTEL_IOMMU_DEFAULT_ON=y
/boot/grub/grub.cfg
            /boot/vmlinuz-4.6.6 root=… quiet splash intel_iommu=on vfio_iommu_type1.allow_unsafe_interrupts=1 $vt_handoff modprobe.blacklist=i915 video=vesafb:off video=efifb:off  
modprobe vfio-pci vfio vfio_iommu_type1 pci_stub
dmesg
[    0.000000] ACPI: DMAR 0x00000000BCE8C130 0000CC (v01 INTEL  SKL      00000001 INTL 00000001)
[    0.000000] DMAR: IOMMU enabled
[    0.058391] DMAR: Host address width 39
[    0.058392] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[    0.058402] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 7e3ff0505e
[    0.058403] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[    0.058407] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da
[    0.058409] DMAR: RMRR base: 0x000000bc2d1000 end: 0x000000bc2f0fff
[    0.058410] DMAR: RMRR base: 0x000000bd800000 end: 0x000000bfffffff
[    0.058411] DMAR: ANDD device: 9 name: \_SB.PCI0.UA00
[    0.058413] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1
[    0.058414] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[    0.058415] DMAR-IR: x2apic is disabled because BIOS sets x2apic opt out bit.
[    0.058416] DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting.
[    0.059827] DMAR-IR: Enabled IRQ remapping in xapic mode
[    5.456749] DMAR: ACPI device "device:68" under DMAR at fed91000 as 00:1e.0
[    5.456756] DMAR: No ATSR found
[    5.457052] DMAR: dmar0: Using Queued invalidation
[    5.457060] DMAR: dmar1: Using Queued invalidation
[    5.457077] DMAR: Setting RMRR:
[    5.457104] DMAR: Setting identity map for device 0000:00:02.0 [0xbd800000 - 0xbfffffff]
[    5.457128] DMAR: Setting identity map for device 0000:00:14.0 [0xbc2d1000 - 0xbc2f0fff]
[    5.457135] DMAR: Prepare 0-16MiB unity mapping for LPC
[    5.457153] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 0xffffff]
[    5.457163] DMAR: Intel(R) Virtualization Technology for Directed I/O
[   30.971566] DMAR: DRHD: handling fault status reg 2
[   30.971574] DMAR: [DMA Write] Request device [00:02.0] fault addr 0 [fault reason 02] Present bit in context entry is clear
[   30.972223] DMAR: DRHD: handling fault status reg 3
[   30.972228] DMAR: [DMA Read] Request device [00:02.0] fault addr be380000 [fault reason 06] PTE Read access is not set
[   30.972799] DMAR: DRHD: handling fault status reg 3
[   30.972803] DMAR: [DMA Read] Request device [00:02.0] fault addr be380000 [fault reason 06] PTE Read access is not set
[   30.973377] DMAR: DRHD: handling fault status reg 3
lspci -nks 
00:02.0 0300: 8086:1906 (rev 07)
Subsystem: 1b0a:01c6
Kernel driver in use: vfio-pci
Kernel modules: i915
00:14.0 0c03: 8086:9d2f (rev 21)
Subsystem: 8086:7270
Kernel driver in use: vfio-pci
qemu cmdline bash
sudo /usr/bin/qemu-system-x86_64 \
-name pq \
-cpu host \
-machine pc,accel=kvm,usb=off \
-m 3072 \
-smp 4,sockets=1,cores=4,threads=1 \
-device vfio-pci,host=00:02.0,id=hostdev0,x-igd-opregion=on,bus=pci.0,addr=0x2 \
-nographic \
-vga none \
-drive file=/home/ruijie/win7_guan2.base,if=none,id=drive-ide0-0-1,format=qcow2,cache=writeback \
-device ide-hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 \
-netdev user,id=hostnet0 \
-device e1000,netdev=hostnet0,id=net0,mac=52:54:00:1a:0d:64 \
-device intel-hda,id=sound0 \
-device usb-ehci,id=ehci0 \
-device usb-tablet,id=input0 \
-monitor tcp:172.21.137.52:4444,server,nowait \
-device hda-micro,id=sound0-codec0,bus=sound0.0,cad=0 \
-device vfio-pci,host=00:14.0,id=xhci0 \
-device vfio-pci,host=00:14.2,id=xhci1 \
-vnc 172.21.137.52:5  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160923/616ee9e1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3.jpg
Type: image/jpeg
Size: 257163 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160923/616ee9e1/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.jpg
Type: image/jpeg
Size: 181563 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160923/616ee9e1/attachment-0001.jpg>


More information about the vfio-users mailing list