xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: David TECHER <davidtecher@yahoo.fr>
To: xen-devel@lists.xensource.com
Subject: Re: Re : Re : Re : Re : Re: Patches for VGA-Passthrough XEN 4.2 unstable
Date: Sat, 15 Oct 2011 03:00:56 -0700 (PDT)	[thread overview]
Message-ID: <1318672856439-4904945.post@n5.nabble.com> (raw)
In-Reply-To: <20110923172115.GI12984@reaktio.net>

Hi

Finally I succeeded to use my graphic card EVGA GTX 460 SE 1024M with Xen
4.2 unstable.

Before I was using my MSI GT 440.

Kernel ---> 3.1.0-rc9 downloaded from
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summary


My kernel's config is attached to this mail.

About Xen:

Download Xen

hg clone -r 23965 http://xenbits.xensource.com/staging/xen-unstable.hg/
xen-unstable.hg-rev-23965-ok

Make a first init build for tools

cd xen-unstable.hg-rev-23965-ok/tools
make -j4
make clean
cd ..

Apply the patches attached to this mail (patch -p0 < ....)

Copy the VGA BIOS extracted using nvlfash 5.100

cp /path/to/VGABIOS.ROM tools/firmware/vgabios/vgabios-pt.bin

Compil again

make -j4 tools

Install

make -j4 install-tools PYTHON_PREFIX_ARG= 

Since my old domU XP 64 bits was using GT 440, I replaced my old graphic
card with the EVGA GTX 460 SE.

Everything was OK (except that it is impossible to restart the domU withtout
restarting the dom0 as usual)

About dsdt.asl.patch file
=========================

For your information concerning the patch for dsd (I've already give the
informations in an other mail but I will give it again)

Get the identifier for your graphic card
root@mercury:/opt/tmp/gfx_patchs_gtx-460-se-evga# lspci |grep VGA
01:00.0 VGA compatible controller: nVidia Corporation Device 0e23 (rev a1)

Use dmesg to get the required ranges
root@mercury:/opt/tmp/gfx_patchs_gtx-460-se-evga# dmesg | grep 01:00.0 |
grep BAR
[    2.481779] pci 0000:01:00.0: BAR 0: reserving [mem 0xf8000000-0xf9ffffff
flags 0x40200] (d=0, p=0)
[    2.481782] pci 0000:01:00.0: BAR 1: reserving [mem 0xd0000000-0xd7ffffff
flags 0x14220c] (d=0, p=0)
[    2.481784] pci 0000:01:00.0: BAR 3: reserving [mem 0xd8000000-0xdbffffff
flags 0x14220c] (d=0, p=0)
[    2.481787] pci 0000:01:00.0: BAR 5: reserving [io  0xe000-0xe07f flags
0x40101] (d=0, p=0)


The 3 ranges [0xf8000000-0xf9fffff], [0xd0000000-0xd7ffffff],
[0xd8000000-0xdbfffff] need to be specify in dsdt.asl.patch

Moreover you need to use the formula

Maximum - Minimum + 1 for the difference.

As a example: for the first range [0xf8000000-0xf9fffff]

Maximum = (0xf9fffff) / Minimum = 0xf8000000 => Difference = 4194303999 -
4160749568 + 1 = 33554432 => hexadecimal = 0x02000000

That the reason why that in the patch, there are

+                        0xF8000000,
+                        0xF9FFFFFF,
                         0x00000000,
-                        0x05000000,
-                        ,, _Y01)
+                        0x02000000)

Do the same for the others ranges

Hope this help.

I do not make test for Windows 7.  I do not plan to try.

David








http://xen.1045712.n5.nabble.com/file/n4904945/config-3.1.0-rc9
config-3.1.0-rc9 
http://xen.1045712.n5.nabble.com/file/n4904945/dsdt.asl.patch dsdt.asl.patch 
http://xen.1045712.n5.nabble.com/file/n4904945/hvmloader.c.patch
hvmloader.c.patch 
http://xen.1045712.n5.nabble.com/file/n4904945/Makefile.patch Makefile.patch 
http://xen.1045712.n5.nabble.com/file/n4904945/pass-through.c.patch
pass-through.c.patch 
http://xen.1045712.n5.nabble.com/file/n4904945/pci.c.patch pci.c.patch 

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

  reply	other threads:[~2011-10-15 10:00 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18 11:47 Patches for VGA-Passthrough XEN 4.2 unstable JavMV
2011-05-23 10:48 ` Stefano Stabellini
2011-05-23 12:35   ` Pasi Kärkkäinen
2011-05-23 12:49     ` Pavel Mateja
2011-05-30 10:53       ` JavMV
2011-05-31 12:10         ` JavMV
2011-06-23 19:18           ` JavMV
2011-06-27 15:33             ` Konrad Rzeszutek Wilk
2011-06-27 15:42               ` JavMV
     [not found] ` <1312297850948-4659036.post@n5.nabble.com>
2011-08-30 10:21   ` komkon555
2011-08-30 13:55     ` JavMV
2011-08-30 15:00       ` komkon555
2011-08-30 16:06         ` JavMV
2011-08-31  8:16           ` komkon555
2011-08-31  8:38             ` Pasi Kärkkäinen
2011-08-31  8:49               ` komkon555
2011-08-31 12:56                 ` komkon555
2011-08-31 15:19                   ` Pasi Kärkkäinen
2011-09-05 14:02                     ` David TECHER
2011-09-06 11:57                       ` komkon555
2011-09-06 21:17                         ` Re : " David TECHER
2011-09-07  8:05                           ` komkon555
2011-09-07  9:45                             ` David TECHER
2011-09-07  9:52                             ` Re : " David TECHER
2011-09-07 12:26                               ` komkon555
2011-09-07 12:51                                 ` Re : " David TECHER
2011-09-07 18:52                                   ` Konrad Rzeszutek Wilk
2011-09-07 19:57                                     ` Re : " David TECHER
2011-09-09  1:45                                   ` Weidong Han
2011-09-09  8:07                                     ` komkon555
2011-09-07 13:25                                 ` komkon555
2011-09-07 13:54                                   ` JavMV
2011-09-07 14:22                                     ` Re : " David TECHER
2011-09-07 14:32                                       ` komkon555
2011-09-07 15:22                                         ` JavMV
2011-09-07 16:21                                           ` komkon555
2011-09-07 16:25                                           ` Re : " David TECHER
2011-09-09  7:54                                           ` komkon555
2011-09-09 12:29                                             ` JavMV
2011-09-09 13:28                                             ` Pasi Kärkkäinen
2011-09-09 16:09                                               ` Wei Huang
2011-09-09 19:56                                             ` Re : " David TECHER
2011-09-10 10:27                                               ` Pasi Kärkkäinen
2011-09-21 13:44                                         ` JavMV
2011-09-21 13:56                                           ` komkon555
2011-09-21 14:08                                             ` JavMV
2011-09-21 14:24                                               ` JavMV
2011-09-21 14:32                                               ` komkon555
2011-09-21 14:40                                                 ` komkon555
2011-09-21 14:47                                                   ` komkon555
2011-09-21 14:52                                                     ` JavMV
2011-09-21 15:13                                                       ` Re : " David TECHER
2011-09-22 12:15                                                         ` JavMV
2011-09-22 12:45                                                           ` komkon555
2011-09-22 12:55                                                             ` JavMV
2011-09-22 17:41                                                               ` JavMV
2011-09-22 18:27                                                           ` Pasi Kärkkäinen
2011-09-22 21:54                                                             ` JavMV
2011-09-23 11:34                                                               ` JavMV
2011-09-23 14:00                                                                 ` JavMV
2011-09-23 14:52                                                                   ` JavMV
2011-09-23 15:12                                                                     ` komkon555
2011-09-23 17:21                                                                   ` Pasi Kärkkäinen
2011-10-15 10:00                                                                     ` David TECHER [this message]
2011-10-26 11:54                                                                       ` Zoltan Hubai
2011-10-26 13:35                                                                         ` Re : " David TECHER
2011-10-27  5:58                                                                           ` Zoltan Hubai
2011-10-27 10:14                                                                             ` Re : " David TECHER
2011-12-05 22:26                                                                               ` n4rC0t1C
2011-12-06 11:22                                                                                 ` Re : " David TECHER
2011-12-06 12:04                                                                                   ` n4rC0t1C
2011-12-06 13:57                                                                                     ` Re : " David TECHER
2011-12-06 15:19                                                                                       ` Tobias Geiger
2011-12-06 15:56                                                                                         ` Re : " David TECHER
2011-12-06 22:28                                                                                         ` David TECHER
2011-12-07 11:01                                                                                           ` n4rC0t1C
2011-12-07 11:44                                                                                           ` Tobias Geiger
2011-12-10  8:12                                                                                   ` Sythrar
2011-12-10 12:29                                                                                     ` n4rC0t1C
2011-12-13 21:03                                                                                       ` Sythrar
2011-12-14  9:43                                                                                         ` Tobias Geiger
2011-12-14 13:37                                                                                           ` n4rC0t1C
2012-02-16 13:38                                                                                           ` Jamesffs
2012-02-17  8:34                                                                                             ` Tobias Geiger
2012-02-17 11:32                                                                                               ` Jamesffs
2012-02-17 16:19                                                                                                 ` Tobias Geiger
2012-02-20 11:55                                                                                                   ` Jamesffs
2012-02-20 12:16                                                                                                     ` Jamesffs
2012-02-20 13:32                                                                                                       ` Tobias Geiger
2011-12-10 12:29                                                                                     ` n4rC0t1C
2011-09-09 11:31 ` Liwei
2011-09-09 16:17   ` Wei Huang
2011-09-09 16:42     ` Liwei
2011-09-12 12:49   ` Tobias Geiger
2012-01-05 23:15   ` romihs
2012-01-06  1:13     ` n4rC0t1C
2012-01-06 14:23       ` Re : " David TECHER
2012-01-06 16:22         ` -+= Lta =+-
2012-01-06 16:34           ` n4rC0t1C
2012-01-06 16:51             ` -+= Lta =+-
2012-01-06 16:58               ` Re : " David TECHER
2012-01-06 17:00                 ` David TECHER

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=1318672856439-4904945.post@n5.nabble.com \
    --to=davidtecher@yahoo.fr \
    --cc=xen-devel@lists.xensource.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).