From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" Subject: Re: Cannot start Fedora 19 HVM domU with VGA passthru Date: Thu, 18 Jul 2013 16:37:34 +0800 Message-ID: <51E7A94E.50005@gmail.com> References: <51E6B95E.3020500@gmail.com> <20130717215625.GL2924@reaktio.net> Reply-To: singapore.mr.teo.en.ming@gmail.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020503070106050606000106" Return-path: In-Reply-To: <20130717215625.GL2924@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: "xen-users@lists.xen.org" , "Teo En Ming (Zhang Enming)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------020503070106050606000106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit On 18/07/2013 05:56, Pasi Kärkkäinen wrote: > On Wed, Jul 17, 2013 at 11:33:50PM +0800, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> I can start Windows 8 Enterprise and Windows 8.1 Pro HVM domUs but I >> cannot start Fedora 19 HVM domU. The domU configuration files >> between Windows 8 HVM domUs and Fedora 19 HVM domU are very similar, >> basically Fedora 19 HVM domU configuration file is copied from >> Windows 8 HVM domU. When I tried to start Fedora 19 HVM domU, the >> LCD monitor remains blank screen permanently. >> >> I have attached Fedora 19 HVM domU configuration file and the >> relevant log files. >> >> Please advise. >> >> Thank you very much. >> > You forgot to mention this issue is related to VGA passthru in the subject. > > Does the F19 HVM guest start if you disable gfx_passthru, and remove the GPU from the pci = [] list, > so only passthru the USB stuff etc ? Yes. Fedora 19 HVM domU does start if I disable gfx_passthru and remove the IGD from the pci = [ ] list. > > >> device_model_version="qemu-xen-traditional" >> name="Fedora19" >> builder="hvm" >> vcpus=4 >> memory=2048 >> on_poweroff="destroy" >> on_reboot="restart" >> on_crash="destroy" >> disk=[ 'format=raw, vdev=hda, access=rw, target=/etc/xen/images/fedora19.img', 'format=raw, vdev=hdc, access=ro, devtype=cdrom, target=/home/teo-en-ming/Fedora-19-x86_64-DVD.iso' ] >> vif=[ 'bridge=virbr0,type=ioemu,model=e1000' ] >> #boot=[c|d|n] >> #Selects the emulated virtual device to boot from. Options are hard disk (c), cd-rom (d) or network/PXE (n). >> #Multiple options can be given and will be attempted in the order they are given. e.g. to boot from cd-rom >> #but fallback to the hard disk you can give dc. The default is cd. >> #boot="dc" >> boot="c" >> acpi=1 >> #xen_platform_pci=1 >> #viridian=1 >> #stdvga=1 >> vnc=1 >> vnclisten="0.0.0.0" >> vncdisplay=0 >> vncunused=1 >> vncpasswd="" >> sdl=0 >> usb=1 >> usbdevice="tablet" >> # Enable Xen VGA Passthrough >> gfx_passthru=1 >> # VGA Passthrough Gigabyte Geforce GTX 560 1 GB GDDR5 PCI Express x16 VGA card. >> #pci = [ '01:00.0','01:00.1','00:1b.0','00:1a.0','00:1a.1','00:1a.2','00:1a.7','00:1d.0','00:1d.1','00:1d.2','00:1d.7' ] >> # PCI Passthrough Intel HD Audio Controller. >> #pci = [ '00:1b.0' ] >> # PCI Passthrough all the USB Controllers. >> # pci = [ '00:1a.0','00:1a.1','00:1a.2','00:1a.7','00:1d.0','00:1d.1','00:1d.2','00:1d.7' ] >> # Passthrough Intel HD Graphics 4600, audio controllers and USB controllers >> pci = [ '00:02.0','00:03.0','00:14.0','00:1a.0','00:1b.0','00:1d.0' ] >> #pci = [ '00:02.0' ] > >> dm-command: hot insert pass-through pci dev >> register_real_device: Assigning real physical device 00:02.0 ... >> register_real_device: Disable MSI translation via per device option >> register_real_device: Disable power management >> pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x2.0x0 > I wonder what these /dev/xen/pci_iomul errors are .. > > > >> pt_register_regions: IO region registered (size=0x00400000 base_addr=0xee400004) >> pt_register_regions: IO region registered (size=0x10000000 base_addr=0xd000000c) >> pt_register_regions: IO region registered (size=0x00000040 base_addr=0x0000f001) >> pci_intx: intx=1 >> register_real_device: Real physical device 00:02.0 registered successfuly! >> IRQ type = INTx >> dm-command: hot insert pass-through pci dev >> register_real_device: Assigning real physical device 00:03.0 ... >> register_real_device: Disable MSI translation via per device option >> register_real_device: Disable power management >> pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x3.0x0 >> pt_register_regions: IO region registered (size=0x00004000 base_addr=0xee834004) >> pci_intx: intx=1 >> register_real_device: Real physical device 00:03.0 registered successfuly! >> IRQ type = INTx >> dm-command: hot insert pass-through pci dev >> register_real_device: Assigning real physical device 00:14.0 ... >> register_real_device: Disable MSI translation via per device option >> register_real_device: Disable power management >> pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x14.0x0 >> pt_register_regions: IO region registered (size=0x00010000 base_addr=0xee820004) >> pci_intx: intx=1 >> register_real_device: Real physical device 00:14.0 registered successfuly! >> IRQ type = INTx >> dm-command: hot insert pass-through pci dev >> register_real_device: Assigning real physical device 00:1a.0 ... >> register_real_device: Disable MSI translation via per device option >> register_real_device: Disable power management >> pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1a.0x0 >> pt_register_regions: IO region registered (size=0x00000400 base_addr=0xee83c000) >> pci_intx: intx=1 >> register_real_device: Real physical device 00:1a.0 registered successfuly! >> IRQ type = INTx >> dm-command: hot insert pass-through pci dev >> register_real_device: Assigning real physical device 00:1b.0 ... >> register_real_device: Disable MSI translation via per device option >> register_real_device: Disable power management >> pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1b.0x0 > And here.. > >> pt_register_regions: IO region registered (size=0x00004000 base_addr=0xee830004) >> pci_intx: intx=1 >> register_real_device: Real physical device 00:1b.0 registered successfuly! >> IRQ type = INTx >> dm-command: hot insert pass-through pci dev >> register_real_device: Assigning real physical device 00:1d.0 ... >> register_real_device: Disable MSI translation via per device option >> register_real_device: Disable power management >> pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1d.0x0 > And here aswell. > > >> pt_register_regions: IO region registered (size=0x00000400 base_addr=0xee83b000) >> pci_intx: intx=1 >> register_real_device: Real physical device 00:1d.0 registered successfuly! >> IRQ type = INTx >> igd_write_opregion: Map OpRegion: bcaec018 -> fdffc018 >> pt_iomem_map: e_phys=e0000000 maddr=d0000000 type=8 len=268435456 index=2 first_map=1 >> pt_iomem_map: e_phys=f1000000 maddr=ee400000 type=0 len=4194304 index=0 first_map=1 >> pt_iomem_map: e_phys=f1620000 maddr=ee820000 type=0 len=65536 index=0 first_map=1 >> pt_iomem_map: e_phys=f1630000 maddr=ee834000 type=0 len=16384 index=0 first_map=1 >> pt_iomem_map: e_phys=f1634000 maddr=ee830000 type=0 len=16384 index=0 first_map=1 >> pt_iomem_map: e_phys=f1638000 maddr=ee83c000 type=0 len=4096 index=0 first_map=1 >> pt_iomem_map: e_phys=f1639000 maddr=ee83b000 type=0 len=4096 index=0 first_map=1 >> pt_ioport_map: e_phys=c100 pio_base=f000 len=64 index=4 first_map=1 >> Waiting for domain Fedora19 (domid 3) to die [pid 3747] >> Domain 3 has been destroyed. > > -- Pasi > > Although Fedora 19 HVM domU with VGA passthrough cannot start, Debian 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is listed in lspci -vvv. Please refer to lspci.txt. It is strange that no kernel module is being loaded for Intel HD Graphics 4600. There is no "Kernel driver in use" statement after VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller]). No kernel driver is seen in lsmod. Please refer to lsmod.txt When I tried to load the kernel module by executing "modprobe i915", it complains "no such device". ERROR: could not insert 'i915': No such device So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 amd64 HVM domU considered successful since the i915 driver cannot be loaded? Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) --------------020503070106050606000106 Content-Type: text/plain; charset=UTF-8; name="lspci.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lspci.txt" 00:00.0 Host bridge: Intel Corporation Haswell DRAM Controller (rev 06) Subsystem: ASRock Incorporation Device 0c00 Physical Slot: 0 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] Subsystem: Red Hat, Inc Qemu virtual machine Physical Slot: 1 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- [disabled] Capabilities: 00:03.0 Unassigned class [ff80]: XenSource, Inc. Xen Platform Device (rev 01) Subsystem: XenSource, Inc. Xen Platform Device Physical Slot: 3 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- Kernel driver in use: snd_hda_intel 00:06.0 USB controller: Intel Corporation Lynx Point USB xHCI Host Controller (rev 04) (prog-if 30 [XHCI]) Subsystem: ASRock Incorporation Device 8c31 Physical Slot: 6 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Kernel driver in use: xhci_hcd 00:07.0 USB controller: Intel Corporation Lynx Point USB Enhanced Host Controller #2 (rev 04) (prog-if 20 [EHCI]) Subsystem: ASRock Incorporation Device 8c2d Physical Slot: 7 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Kernel driver in use: ehci_hcd 00:08.0 Audio device: Intel Corporation Lynx Point High Definition Audio Controller (rev 04) Subsystem: ASRock Incorporation Device c892 Physical Slot: 8 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: snd_hda_intel 00:09.0 USB controller: Intel Corporation Lynx Point USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI]) Subsystem: ASRock Incorporation Device 8c26 Physical Slot: 9 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Kernel driver in use: ehci_hcd 00:1f.0 ISA bridge: Intel Corporation Lynx Point LPC Controller (rev 04) Subsystem: Red Hat, Inc Device 1100 Physical Slot: 31 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- (32-bit, non-prefetchable) --------------020503070106050606000106 Content-Type: text/plain; charset=UTF-8; name="lsmod.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lsmod.txt" Module Size Used by bnep 17567 2 rfcomm 33700 0 bluetooth 119455 10 rfcomm,bnep rfkill 19012 3 bluetooth binfmt_misc 12957 1 nfsd 216170 2 nfs 308313 0 nfs_acl 12511 2 nfs,nfsd auth_rpcgss 37143 2 nfs,nfsd fscache 36739 1 nfs lockd 67306 2 nfs,nfsd sunrpc 173730 6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd ext2 59231 1 loop 22641 0 snd_hda_codec_realtek 188858 1 sd_mod 36136 0 crc_t10dif 12348 1 sd_mod tuner_simple 17175 1 tuner_types 16409 1 tuner_simple tda9887 12645 1 tda8290 17278 0 wm8775 12749 1 tuner 17497 2 cx25840 39782 1 pvrusb2 124313 0 cx2341x 21461 1 pvrusb2 dvb_core 77734 1 pvrusb2 tveeprom 20593 1 pvrusb2 v4l2_common 13222 5 cx2341x,pvrusb2,cx25840,tuner,wm8775 videodev 70889 6 v4l2_common,cx2341x,pvrusb2,cx25840,tuner,wm8775 v4l2_compat_ioctl32 16655 1 videodev usb_storage 43870 0 media 18148 1 videodev usblp 17343 0 snd_hda_intel 26259 2 snd_hda_codec 78031 2 snd_hda_intel,snd_hda_codec_realtek snd_hwdep 13186 1 snd_hda_codec snd_pcm 68083 2 snd_hda_codec,snd_hda_intel snd_page_alloc 13003 2 snd_pcm,snd_hda_intel snd_seq 45126 0 psmouse 69265 0 snd_seq_device 13176 1 snd_seq crc32c_intel 12747 0 serio_raw 12931 0 joydev 17266 0 evdev 17562 17 snd_timer 22917 2 snd_seq,snd_pcm pcspkr 12579 0 ghash_clmulni_intel 13173 0 aesni_intel 50667 0 parport_pc 22364 0 parport 31858 1 parport_pc snd 52889 12 snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek soundcore 13065 1 snd aes_x86_64 16843 1 aesni_intel aes_generic 33026 2 aes_x86_64,aesni_intel iTCO_wdt 17081 0 cryptd 14517 2 aesni_intel,ghash_clmulni_intel processor 28157 0 i2c_piix4 12536 0 thermal_sys 18040 1 processor iTCO_vendor_support 12704 1 iTCO_wdt i2c_core 23876 11 i2c_piix4,videodev,v4l2_common,tveeprom,pvrusb2,cx25840,tuner,wm8775,tda8290,tda9887,tuner_simple button 12937 0 usbhid 36418 0 hid 81328 1 usbhid ext4 350763 1 crc16 12343 2 ext4,bluetooth jbd2 62115 1 ext4 mbcache 13114 2 ext4,ext2 dm_mod 63645 6 sg 25874 0 sr_mod 21899 0 cdrom 35401 1 sr_mod ata_generic 12479 0 uhci_hcd 26865 0 xhci_hcd 73434 0 floppy 53087 0 ehci_hcd 40215 0 usbcore 128741 8 ehci_hcd,xhci_hcd,uhci_hcd,usbhid,usblp,usb_storage,pvrusb2 xen_blkfront 17398 3 ata_piix 29535 0 usb_common 12354 1 usbcore xen_netfront 21985 0 libata 140630 2 ata_piix,ata_generic scsi_mod 162269 5 libata,sr_mod,sg,usb_storage,sd_mod --------------020503070106050606000106 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------020503070106050606000106--