xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com>
To: singapore.mr.teo.en.ming@gmail.com
Cc: "Ren, Yongjie" <yongjie.ren@intel.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"xen-users@lists.xen.org" <xen-users@lists.xen.org>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: Intel HD Graphics 4600 Xen VGA Passthrough to Windows 7 Ultimate HVM domU
Date: Thu, 25 Jul 2013 19:50:41 +0800	[thread overview]
Message-ID: <51F11111.809@gmail.com> (raw)
In-Reply-To: <51F0F433.60402@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 7870 bytes --]

On 25/07/2013 17:47, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:
> 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)

How do I use LDFLAGS to solve the compile error?

-- 
Yours sincerely,

Singapore Citizen Mr. Teo En Ming (Zhang Enming)


[-- Attachment #1.2: Type: text/html, Size: 14906 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-07-25 11:50 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-20  9:55 Intel HD Graphics 4600 Xen VGA Passthrough to Windows 7 Ultimate HVM domU Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-20 10:09 ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-22 14:57   ` Ren, Yongjie
2013-07-22 15:11     ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-23 12:03     ` Pasi Kärkkäinen
2013-07-24  9:04       ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-24 10:33         ` Ren, Yongjie
2013-07-24 11:33           ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-25  8:48             ` Ren, Yongjie
2013-07-25  9:47             ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-25 11:50               ` Singapore Citizen Mr. Teo En Ming (Zhang Enming) [this message]
2013-07-25 13:50                 ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-25 15:40                   ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-25 16:02                     ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-24 11:57           ` Pasi Kärkkäinen
2013-07-24 12:27             ` Gordan Bobic
2013-07-25  8:58             ` Ren, Yongjie
2013-07-25  9:07               ` Pasi Kärkkäinen
2013-07-25  9:20                 ` Gordan Bobic
2013-07-25 14:41                   ` [Xen-users] " David Sutton
     [not found]                   ` <CAPCj91JrPRHucisCmBom=0OoXP2rfJ8woH2vFoNpehJsXPpiTA@mail.gmail.com>
2013-07-25 14:51                     ` Gordan Bobic
2013-07-25 15:14                       ` David Sutton
2013-07-25 15:16                       ` G.R.
     [not found]                       ` <CAPCj91J=eCwhYT1H4Gchw+mRHNpXgamO+LrHRoz2rX-CdLKCEw@mail.gmail.com>
2013-07-25 15:21                         ` Gordan Bobic
2013-07-25 15:06                   ` Ren, Yongjie
2013-07-25 15:15                     ` Gordan Bobic
2013-07-24  8:59 ` Pasi Kärkkäinen
2013-07-24  9:52   ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-24 12:17   ` G.R.
2013-07-24 12:30     ` Gordan Bobic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51F11111.809@gmail.com \
    --to=singapore.mr.teo.en.ming@gmail.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xen-users@lists.xen.org \
    --cc=xiantao.zhang@intel.com \
    --cc=yongjie.ren@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).