From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" Subject: Re: Intel HD Graphics 4600 Xen VGA Passthrough to Windows 7 Ultimate HVM domU Date: Thu, 25 Jul 2013 17:47:31 +0800 Message-ID: <51F0F433.60402@gmail.com> References: <51EA5E74.9070900@gmail.com> <51EA61ED.1090900@gmail.com> <1B4B44D9196EFF41AE41FDA404FC0A1001B4FFD9@SHSMSX102.ccr.corp.intel.com> <20130723120316.GU2924@reaktio.net> <51EF9897.8060201@gmail.com> <1B4B44D9196EFF41AE41FDA404FC0A1001B5327D@SHSMSX102.ccr.corp.intel.com> <51EFBB81.8010608@gmail.com> Reply-To: singapore.mr.teo.en.ming@gmail.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1397535898417556142==" Return-path: In-Reply-To: <51EFBB81.8010608@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: singapore.mr.teo.en.ming@gmail.com Cc: "Ren, Yongjie" , Ian Campbell , "xen-devel@lists.xen.org" , "xen-users@lists.xen.org" , "Zhang, Xiantao" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1397535898417556142== Content-Type: multipart/alternative; boundary="------------070802030300070307070503" This is a multi-part message in MIME format. --------------070802030300070307070503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit On 24/07/2013 19:33, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote: > On 24/07/2013 18:33, Ren, Yongjie wrote: >>> -----Original Message----- >>> From: Singapore Citizen Mr. Teo En Ming (Zhang Enming) >>> [mailto:singapore.mr.teo.en.ming@gmail.com] >>> Sent: Wednesday, July 24, 2013 5:04 PM >>> To: Pasi Kärkkäinen >>> Cc: Ren, Yongjie; xen-users@lists.xen.org; Zhang, Xiantao; >>> xen-devel@lists.xen.org; Teo En Ming (Zhang Enming) >>> Subject: Re: [Xen-devel] Intel HD Graphics 4600 Xen VGA Passthrough to >>> Windows 7 Ultimate HVM domU >>> >>> On 23/07/2013 20:03, Pasi Kärkkäinen wrote: >>>> On Mon, Jul 22, 2013 at 02:57:08PM +0000, Ren, Yongjie wrote: >>>>>> Any Intel engineers here who can advise? >>>>>> >>>>> I'm also doing some testing but seems we didn't meet a similar issue >>> with yours. >>>>> Which CPU are you using? >>>>> My Haswell desktop CPU (Core i5-4670) doesn't have the same IGD as >>> yours. >>>>> And, I'll have some update after I doing more testing. >>>>> >>>>> Best Regards, >>>>> Yongjie (Jay) >>>>> >>>> Hello Yongjie, >>>> >>>> Can you please describe the following info about your GPU passthru >>> setup: >>>> - Xen hypervisor version/changeset >>>> - Any patches to Xen? >>>> - Cmdline options to Xen >>>> - dom0 linux kernel version >>>> - Cmdline options to dom0 linux kernel >>>> - HVM guest OS/version >>>> - IGD driver version in the HVM guest >>>> - dom0 configuration and settings; I assume you're using xen-pciback? >>> Did you blacklist igd driver in dom0 kernel? etc. >>>> I think that'd be helpful for others to get a similar baseline >>>> configuration. >>>> >>>> Thanks, >>>> >>>> -- Pasi >>>> >>>> >>> Dear Yongjie, >>> >>> Could you share with us your hardware and software configuration >>> settings? >>> >> Sure. My IGD is also Intel HD Graphics 4600. :-) >> >> 1. hypervisor version: c/s 26666 in xen-unstable.hg tree (5 months ago) >> traditional qemu commit: 5ae58eaa967495fce99b727422054c58750d252b >> Dom0 kernel: Linux 3.8.1 >> N.B. I didn't use the latest traditional qemu because of the >> following bug: >> http://bugzilla-archived.xenproject.org//bugzilla/show_bug.cgi?id=1865 >> >> 2. no offline patch. (just use the code in the tree I mentioned above.) >> >> 3. hypervisor options: dom0_mem=1024M iommu=1 loglvl=all >> guest_loglvl=all unrestricted_guest=1 msi=1 >> dom0 kernel options: ro root=/dev/sda1 >> >> 4. HVM guest: Windows 7 Enterprise >> >> 5. IGD driver version in HVM: 9.18.10.3165 >> got to: https://downloadcenter.intel.com/ >> then, search "4th Generation Intel Core Processors with intel hd >> graphics 4600" to download the driver. >> >> 6. use 'xl pci-assignable-add $BDF' to add the IGD as assignable. >> (it also use 'xen.pciback' driver.) >> >> 7. dom0 kernel config is attached as file 'config-3.8.1'. >> >> 8. HVM guest config file: >> builder= "hvm" >> name= "vga-passthrough" >> memory =1024 >> vcpus=4 >> device_model_override= '/usr/lib/xen/bin/qemu-dm' >> device_model_version= 'qemu-xen-traditional' >> disk = [ '/images/ia32e_win7.qcow,qcow2,xvda,rw' ] >> vnc=1 >> serial='pty' >> usb = 1 >> usbdevice = 'tablet' >> gfx_passthru=1 >> pci = ['00:02.0','00:1d.0','07:00.0'] #'00:02.0' is IGD; the other >> two are mouse and keyboard. >> >> 9. I can successfully assign this IGD 4600 (in Core i5-4670 CPU) to >> the Windows guest. And the IGD can work fine. >> See some attached pictures for more info. >> >> >> Best Regards, >> Yongjie (Jay) > > Hi, > > I was trying to compile Xen 4.3-unstable changeset 26666 when I > encountered the following error. > > /usr/bin/ld: vl.o: undefined reference to symbol > 'timer_settime@@GLIBC_2.3.3' > /usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO > /lib/x86_64-linux-gnu/librt.so.1 so try adding it to the linker > command line > /lib/x86_64-linux-gnu/librt.so.1: could not read symbols: Invalid > operation > collect2: error: ld returned 1 exit status > make[5]: *** [qemu-dm] Error 1 > make[5]: Leaving directory > `/home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote/i386-dm' > make[4]: *** [subdir-i386-dm] Error 2 > make[4]: Leaving directory > `/home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote' > make[3]: *** [subdir-install-qemu-xen-traditional-dir] Error 2 > make[3]: Leaving directory > `/home/teo-en-ming/xen-unstable.hg-cs26666/tools' > make[2]: *** [subdirs-install] Error 2 > make[2]: Leaving directory > `/home/teo-en-ming/xen-unstable.hg-cs26666/tools' > make[1]: *** [install-tools] Error 2 > make[1]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666' > make: *** [world] Error 2 > > Related information: > http://www.gossamer-threads.com/lists/xen/devel/283347 > > How can I fix this issue? > > Thank you very much. > Hi, With reference to this thread http://www.gossamer-threads.com/lists/xen/devel/283347, I tried to workaround the above-mentioned problem. The following are steps I have taken to compile and install Xen 4.3-unstable changeset 26666. cd hg clone -r 26666 http://xenbits.xensource.com/xen-unstable.hg xen-unstable.hg-cs26666 cd xen-unstable.hg-cs26666 ./configure make world cd git clone git://xenbits.xen.org/qemu-xen-unstable.git cd qemu-xen-unstable cp -a * /home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote cd .. cd xen-unstable.hg-cs26666 *sudo -s* ./configure make world make install Xen 4.3-unstable changeset 26666 compiles and installs successfully. However... teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl create /etc/xen/windows7 Parsing config from /etc/xen/windows7 failed to free memory for the domain teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl list libxl: error: libxl.c:557:libxl_list_domain: geting domain info list: Permission denied libxl_domain_infolist failed. teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl dmesg libxl: error: libxl.c:4759:libxl_xen_console_read_line: reading console ring buffer: Permission denied teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl info host : intel-core-i5-4430-desktop release : 3.11.0-rc1-xen-teo.en.ming-sgp version : #1 SMP Mon Jul 15 22:07:31 SGT 2013 machine : x86_64 libxl: error: libxl.c:3938:libxl_get_physinfo: getting physinfo: Permission denied libxl_physinfo failed. libxl: error: libxl.c:4320:libxl_get_scheduler: getting domain info list: Permission denied xen_major : 4 xen_minor : 3 xen_extra : -unstable xen_version : 4.3-unstable xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : (null) xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : Thu Feb 28 09:22:41 2013 +0100 26666:94ece33caae2 xen_commandline : cc_compiler : gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 cc_compile_by : root cc_compile_domain : cc_compile_date : Thu Jul 25 13:47:58 SGT 2013 xend_config_format : 4 It appears that my Xen 4.3-unstable changeset 26666 installation is broken. How do I fix this issue? Are there any mistakes in the steps I have taken? Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) --------------070802030300070307070503 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 24/07/2013 19:33, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:
On 24/07/2013 18:33, Ren, Yongjie wrote:
-----Original Message-----
From: Singapore Citizen Mr. Teo En Ming (Zhang Enming)
[mailto:singapore.mr.teo.en.ming@gmail.com]
Sent: Wednesday, July 24, 2013 5:04 PM
To: Pasi Kärkkäinen
Cc: Ren, Yongjie; xen-users@lists.xen.org; Zhang, Xiantao;
xen-devel@lists.xen.org; Teo En Ming (Zhang Enming)
Subject: Re: [Xen-devel] Intel HD Graphics 4600 Xen VGA Passthrough to
Windows 7 Ultimate HVM domU

On 23/07/2013 20:03, Pasi Kärkkäinen wrote:
On Mon, Jul 22, 2013 at 02:57:08PM +0000, Ren, Yongjie wrote:
Any Intel engineers here who can advise?

I'm also doing some testing but seems we didn't meet a similar issue
with yours.
Which CPU are you using?
My Haswell desktop CPU (Core i5-4670) doesn't have the same IGD as
yours.
And, I'll have some update after I doing more testing.

Best Regards,
       Yongjie (Jay)

Hello Yongjie,

Can you please describe the following info about your GPU passthru
setup:
- Xen hypervisor version/changeset
- Any patches to Xen?
- Cmdline options to Xen
- dom0 linux kernel version
- Cmdline options to dom0 linux kernel
- HVM guest OS/version
- IGD driver version in the HVM guest
- dom0 configuration and settings; I assume you're using xen-pciback?
Did you blacklist igd driver in dom0 kernel? etc.
I think that'd be helpful for others to get a similar baseline configuration.

Thanks,

-- Pasi


Dear Yongjie,

Could you share with us your hardware and software configuration
settings?

Sure. My IGD is also Intel HD Graphics 4600. :-)

1. hypervisor version: c/s 26666 in xen-unstable.hg tree  (5 months ago)
   traditional qemu commit: 5ae58eaa967495fce99b727422054c58750d252b
   Dom0 kernel: Linux 3.8.1
N.B. I didn't use the latest traditional qemu because of the following bug:
http://bugzilla-archived.xenproject.org//bugzilla/show_bug.cgi?id=1865

2. no offline patch. (just use the code in the tree I mentioned above.)

3. hypervisor options: dom0_mem=1024M iommu=1 loglvl=all guest_loglvl=all unrestricted_guest=1 msi=1
   dom0 kernel options: ro root=/dev/sda1

4. HVM guest: Windows 7 Enterprise

5. IGD driver version in HVM: 9.18.10.3165
   got to: https://downloadcenter.intel.com/
   then, search "4th Generation Intel Core Processors with intel hd graphics 4600" to download the driver.

6. use 'xl pci-assignable-add $BDF' to add the IGD as assignable.
   (it also use 'xen.pciback' driver.)

7. dom0 kernel config is attached as file 'config-3.8.1'.

8. HVM guest config file:
builder= "hvm"
name= "vga-passthrough"
memory =1024
vcpus=4
device_model_override= '/usr/lib/xen/bin/qemu-dm'
device_model_version= 'qemu-xen-traditional'
disk = [ '/images/ia32e_win7.qcow,qcow2,xvda,rw' ]
vnc=1
serial='pty'
usb = 1
usbdevice = 'tablet'
gfx_passthru=1
pci = ['00:02.0','00:1d.0','07:00.0']  #'00:02.0' is IGD; the other two are mouse and keyboard.

9. I can successfully assign this IGD 4600 (in Core i5-4670 CPU) to the Windows guest. And the IGD can work fine.
   See some attached pictures for more info.


Best Regards,
      Yongjie (Jay)

Hi,

I was trying to compile Xen 4.3-unstable changeset 26666 when I encountered the following error.

/usr/bin/ld: vl.o: undefined reference to symbol 'timer_settime@@GLIBC_2.3.3'
/usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO /lib/x86_64-linux-gnu/librt.so.1 so try adding it to the linker command line
/lib/x86_64-linux-gnu/librt.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[5]: *** [qemu-dm] Error 1
make[5]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote/i386-dm'
make[4]: *** [subdir-i386-dm] Error 2
make[4]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote'
make[3]: *** [subdir-install-qemu-xen-traditional-dir] Error 2
make[3]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666/tools'
make[2]: *** [subdirs-install] Error 2
make[2]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666/tools'
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666'
make: *** [world] Error 2

Related information: http://www.gossamer-threads.com/lists/xen/devel/283347

How can I fix this issue?

Thank you very much.


Hi,

With reference to this thread http://www.gossamer-threads.com/lists/xen/devel/283347, I tried to workaround the above-mentioned problem. The following are steps I have taken to compile and install Xen 4.3-unstable changeset 26666.

cd
hg clone -r 26666 http://xenbits.xensource.com/xen-unstable.hg xen-unstable.hg-cs26666
cd xen-unstable.hg-cs26666
./configure
make world
cd
git clone git://xenbits.xen.org/qemu-xen-unstable.git
cd qemu-xen-unstable
cp -a * /home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote
cd ..
cd xen-unstable.hg-cs26666
sudo -s
./configure
make world
make install

Xen 4.3-unstable changeset 26666 compiles and installs successfully. However...

teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl create /etc/xen/windows7
Parsing config from /etc/xen/windows7
failed to free memory for the domain

teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl list
libxl: error: libxl.c:557:libxl_list_domain: geting domain info list: Permission denied
libxl_domain_infolist failed.

teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl dmesg
libxl: error: libxl.c:4759:libxl_xen_console_read_line: reading console ring buffer: Permission denied

teo-en-ming@intel-core-i5-4430-desktop:~$ sudo xl info
host                   : intel-core-i5-4430-desktop
release                : 3.11.0-rc1-xen-teo.en.ming-sgp
version                : #1 SMP Mon Jul 15 22:07:31 SGT 2013
machine                : x86_64
libxl: error: libxl.c:3938:libxl_get_physinfo: getting physinfo: Permission denied
libxl_physinfo failed.
libxl: error: libxl.c:4320:libxl_get_scheduler: getting domain info list: Permission denied
xen_major              : 4
xen_minor              : 3
xen_extra              : -unstable
xen_version            : 4.3-unstable
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : (null)
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Thu Feb 28 09:22:41 2013 +0100 26666:94ece33caae2
xen_commandline        :
cc_compiler            : gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
cc_compile_by          : root
cc_compile_domain      :
cc_compile_date        : Thu Jul 25 13:47:58 SGT 2013
xend_config_format     : 4


It appears that my Xen 4.3-unstable changeset 26666 installation is broken. How do I fix this issue? Are there any mistakes in the steps I have taken?

Thank you very much.

-- 
Yours sincerely,

Singapore Citizen Mr. Teo En Ming (Zhang Enming)
--------------070802030300070307070503-- --===============1397535898417556142== 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 --===============1397535898417556142==--