From mboxrd@z Thu Jan 1 00:00:00 1970 From: David TECHER Subject: Re : Re : Re : Re : Re: Patches for VGA-Passthrough XEN 4.2 unstable Date: Fri, 9 Sep 2011 20:56:50 +0100 (BST) Message-ID: <1315598210.99532.YahooMailNeo@web29815.mail.ird.yahoo.com> References: <1315310225039-4774097.post@n5.nabble.com> <1315343879.61837.YahooMailNeo@web29818.mail.ird.yahoo.com> <1315382742268-4777689.post@n5.nabble.com> <1315389138.56652.YahooMailNeo@web29801.mail.ird.yahoo.com> <1315398360680-4778339.post@n5.nabble.com> <1315401901083-4778494.post@n5.nabble.com> <1315403644525-4778586.post@n5.nabble.com> <1315405372.87224.YahooMailNeo@web29801.mail.ird.yahoo.com> <1315405921936-4778727.post@n5.nabble.com> <1315408931610-4778925.post@n5.nabble.com> <1315554847212-4785386.post@n5.nabble.com> Reply-To: David TECHER Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1610218236==" Return-path: In-Reply-To: <1315554847212-4785386.post@n5.nabble.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: komkon555 , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============1610218236== Content-Type: multipart/alternative; boundary="0-1230709877-1315598210=:99532" --0-1230709877-1315598210=:99532 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Please have a look on http://wiki.xensource.com/xenwiki/VTdHowTo.=0A=0AI've= just applied what it is recommended on the wiki. It works=A0 like a charm.= =0A=0A=0A=0AFor VGA,=0A=3D=3D=3D=3D=3D=3D=3D=3D=0A=0Ayou can use PCI_STUB, = I do not use it as module =0A=0Aroot@mercury:~# grep pci_stub -i /boot/conf= ig-2.6.39.3=0ACONFIG_PCI_STUB=3Dy=0A=0Aroot@mercury:~# lspci |grep VGA=0A01= :00.0 VGA compatible controller: nVidia Corporation Device 0de0 (rev a1)=0A= =0A=0A=0Aroot@mercury:~# lspci -s 01:00.0 -n=0A01:00.0 0300: 10de:0de0 (rev= a1)=0A=0ACreate a script with the following content=0A=0Aroot@mercury:~# g= rep -vE '^(#|$)' start_windows.sh =0Aecho "10de 0de0" > /sys/bus/pci/driver= s/pci-stub/new_id=0Aecho "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.0= /driver/unbind=0Aecho "0000:01:00.0" > /sys/bus/pci/drivers/pci-stub/bind= =0Axl=A0 create /etc/xen/machines/mercury-xen03.cfg=0A=0AFor KeyBoard and M= ouse=0A=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=0AUse p= assthrough. =0A=0Aroot@mercury:~# grep CONFIG_XEN_PCIDEV_BACKEND=3D=A0 /boo= t/config-2.6.39.3=0ACONFIG_XEN_PCIDEV_BACKEND=3Dy=0A=0AI've got two USB con= trollers (1: mouse + keyboard, 2: for sound Logitech USB Speaker)=0A=0Aroot= @mercury:~# lspci |grep USB=0A00:1a.0 USB Controller: Intel Corporation Cou= gar Point USB Enhanced Host Controller #2 (rev 05)=0A00:1d.0 USB Controller= : Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 05)= =0A=0APut it on grub so that dom0 will not use it=0A=0Aroot@mercury:~# grep= permissive /boot/grub/grub.cfg =0A=A0=A0=A0=A0=A0=A0=A0 module=A0 /boot/vm= linuz-2.6.39.3 placeholder root=3DUUID=3D1cd457ae-85f4-4626-8f94-1f444fcf6d= 5c ro nomodeset xen-pciback.permissive xen-pciback.hide=3D(00:1a.0)(00:1d.0= ) quiet=0A=0AIn my=A0 domU configuration file=0A=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0Aroot@mercury:~# grep ^pci /etc/xe= n/machines/mercury-xen03.cfg=0Apci=A0 =3D [ '01:00.0','00:1a.0','00:1d.0' ]= =0A=0A=0A=0A=0A=0A=0A________________________________=0ADe=A0: komkon555 =0A=C0=A0: xen-devel@lists.xensource.com=0AEnvoy=E9 le = : Vendredi 9 Septembre 2011 9h54=0AObjet=A0: Re: Re : Re : Re : [Xen-devel]= Re: Patches for VGA-Passthrough XEN 4.2 unstable=0A=0A=A0 =A0 =A0 =A0 =A0 = Hi. There is the promised report to JavMV: with fixes on dsd are=0Ayour pa= tches also functional. Windows XP starts and GTX260 works perfect=0Awith dr= iver version 275.33.=0A=A0 =A0 =A0 =A0 =A0 Some news more: The best results= I got with this configuration:=0Axen 4.1-unstable changeset 21668 (patched= clearly with these =0Ahttp://lists.xensource.com/archives/html/xen-devel/2= 010-05/msg00441.html=0Apatches , dsd fixed according to David TECHER) + jer= emi xen kernel 2.6.32.45=0A(xenfs static). This configuration works excelle= nt both: with primary and=0Asecondary vga-adapter (GTX260). There are two P= roblem with all=0Aconfigurations:=0A1. DomU can be started only once. Being= =A0 correctly shouted=A0 down, starts=0ADomU no more.=0A2. Physical usb- ke= yboard and mouse can not be assigned to DomU (regular usb=0Aassignment has = no effect, PVUSB crashes)=0A=0ABest regards=0AKom.=0A=0A=0A--=0AView this m= essage in context: http://xen.1045712.n5.nabble.com/Patches-for-VGA-Passthr= ough-XEN-4-2-unstable-tp4406265p4785386.html=0ASent from the Xen - Dev mail= ing list archive at Nabble.com.=0A=0A______________________________________= _________=0AXen-devel mailing list=0AXen-devel@lists.xensource.com=0Ahttp:/= /lists.xensource.com/xen-devel --0-1230709877-1315598210=:99532 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Please hav= e a look on http://wiki.xensource.com/xenwiki/VTdHowTo.
I've just applied what it is recommended on= the wiki. It works  like a charm.

<= /div>


For= VGA,
=3D=3D=3D=3D=3D=3D=3D=3D
= you can use PCI_STUB, I do not use it as module

root@mercury:~# grep pci_stub -i /boot/config-2.6.3= 9.3
CONFIG_PCI_STUB=3Dy

root@mercury:~# lspci |grep VGA
01:00.= 0 VGA compatible controller: nVidia Corporation Device 0de0 (rev a1)


root@mercury:~# lspci -s 01:00.0 -n
01:00.0 0300: 10de:0de0 (re= v a1)

Create a script with the following content

root@mercury= :~# grep -vE '^(#|$)' start_windows.sh
echo "10de 0de0" > /sys/bus/pci/drivers/p= ci-stub/new_id
echo "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.= 0/driver/unbind
echo "0000:01:00.0" > /sys/bus/pci/drivers/pci-stub/b= ind
xl  create /etc/xen/machines/mercury-xen03.cfg

For KeyBo= ard and Mouse
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<= br>
Use passthrough.

root@mercury:~# grep CONFIG_XEN_PCIDEV_BACK= END=3D  /boot/config-2.6.39.3
CONFIG_XEN_PCIDEV_BACKEND=3Dy

= I've got two USB controllers (1: mouse + keyboard, 2: for sound Logitech US= B Speaker)

root@mercury:~# lspci |grep USB
00:1a.0 USB Controller= : Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 05)00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host = Controller #1 (rev 05)

Put it on grub so that dom0 will not use it
root@mercury:~# grep permissive /boot/grub/grub.cfg
  &= nbsp;     module  /boot/vmlinuz-2.6.39.3 placeholder root=3DUUID=3D1cd457ae-85f= 4-4626-8f94-1f444fcf6d5c ro nomodeset xen-pciback.permissive xen-pciback.hi= de=3D(00:1a.0)(00:1d.0) quiet

In my  domU configuration file=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
root= @mercury:~# grep ^pci /etc/xen/machines/mercury-xen03.cfg
pci  =3D = [ '01:00.0','00:1a.0','00:1d.0' ]





De : komkon555 <komkon555@freenet= .de>
=C0 : xen-= devel@lists.xensource.com
Envoy=E9= le : Vendredi 9 Septembre 2011 9h54
Objet : Re: Re : Re : Re : [Xen-devel] Re: Patches for VGA-Passthrough XEN 4.2 unstable

  &nbs= p;       Hi. There is the promised report to JavMV: with fi= xes on dsd are
your patches also functional. Windows XP starts and GTX26= 0 works perfect
with driver version 275.33.
      &nbs= p;   Some news more: The best results I got with this configuration:xen 4.1-unstable changeset 21668 (patched clearly with these
http://lists.xensource.com/archives/html/xen-devel/201= 0-05/msg00441.html
patches , dsd fixed according to David TECHER) + = jeremi xen kernel 2.6.32.45
(xenfs static). This configuration works exc= ellent both: with primary and
secondary vga-adapter (GTX260). There are = two Problem with all
configurations:
1. DomU can be started only once= . Being  correctly shouted  down, starts
DomU no more.
2. Physical usb- keyboard and mouse can not be assigned to DomU (regular usb<= br>assignment has no effect, PVUSB crashes)

Best regards
Kom.
=

--
View this message in context: http://xen.1045712.n5.nabble.com/Patches-for-VGA-P= assthrough-XEN-4-2-unstable-tp4406265p4785386.html
Sent from the Xen= - Dev mailing list archive at Nabble.com.

_________________________= ______________________
Xen-devel mailing list
= Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

--0-1230709877-1315598210=:99532-- --===============1610218236== 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.xensource.com http://lists.xensource.com/xen-devel --===============1610218236==--