WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re : [Xen-devel] Re: Patches for VGA-Passthrough XEN 4.2 unstable

To: komkon555 <komkon555@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re : [Xen-devel] Re: Patches for VGA-Passthrough XEN 4.2 unstable
From: David TECHER <davidtecher@xxxxxxxx>
Date: Tue, 6 Sep 2011 22:17:59 +0100 (BST)
Cc:
Delivery-date: Tue, 06 Sep 2011 14:18:54 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1315343880; bh=Xt+3sHTKENZNaf7TI1rNIHoEuLbYbJmL4t7JQSbAkRA=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=5X4a1GHIFhIn7+yD3lRpPzcASJVJ885DKgHTOTc6rfC2PlyfH9a8KNH9j5Gn7uhOVqWRkGsNBEcF4KvcpxwCHoA0edvQXwqpFdVq7dnksrj4JQ5r2yLEllEn3gp3qrZuWlqjR49yC2jnctD21CMgi7yk8cLp/2opBwh+WDpZcbs=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=NwEnbgYmhcYjevTi0RbU3UDHRUNfYZYW5qETrIRv2v7M1KHxk4+MAR/+ljJg7lpTyN2bWknQJizjwB1i1Tr0NN5DAEtevoiVK78yeRnaWofrvryeu0vTLrGhvPinrZ+qYxeCU+2aOFbSSCXv6Dg3OFzKwOBQikTJUFsCrSsNf2A=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1315310225039-4774097.post@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1314699668477-4749561.post@xxxxxxxxxxxxx> <1314712525082-4750109.post@xxxxxxxxxxxxx> <1314716445148-4750357.post@xxxxxxxxxxxxx> <1314720409505-4750600.post@xxxxxxxxxxxxx> <1314778567400-4753326.post@xxxxxxxxxxxxx> <20110831083832.GD7276@xxxxxxxxxxx> <1314780568949-4753422.post@xxxxxxxxxxxxx> <1314795401771-4754024.post@xxxxxxxxxxxxx> <20110831151913.GE7276@xxxxxxxxxxx> <1315231341254-4770602.post@xxxxxxxxxxxxx> <1315310225039-4774097.post@xxxxxxxxxxxxx>
Reply-to: David TECHER <davidtecher@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
For the tests I've done, I've tried the last driver .i.e 280.26.
 It failed.

So I use the old 275.33 and it works like a charm :) on

- XP Pro 32 bits SP3
- XP Pro 64 bits SP2

I can launch Crysis 2 and play the game :)

Have a look at http://www.youtube.com/watch?v=3SaYO0ERW44

Well I am a little limited with my graphic card (MSI GT 440 1GB for resolution and XP) but it is just enough for me
on a resolution like 1440x900 ou 1600x??? to play the game.

Do not forget to adapt dsd to the requires ranges of your graphic card.

This is what I did for my card

-----------------------------------------------------------------------------------
root@mercury:~# lspci |grep VGA
01:00.0 VGA compatible controller: nVidia Corporation Device 0de0 (rev a1)
root@mercury:~# dmesg | grep 01:00.0 |grep mem
[    3.124546] pci 0000:01:00.0: reg 10: [mem 0xfa000000-0xfaffffff]
[    3.124565] pci 0000:01:00.0: reg 14: [mem 0xc0000000-0xcfffffff 64bit pref]
[    3.124584] pci 0000:01:00.0: reg 1c: [mem 0xd0000000-0xd1ffffff 64bit pref]
[    3.124609] pci 0000:01:00.0: reg 30: [mem 0xfb000000-0xfb07ffff pref]
[    3.199436] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
[    3.199730] pci 0000:01:00.0: BAR 0: reserving [mem 0xfa000000-0xfaffffff flags 0x40200] (d=0, p=0)
[    3.199732] pci 0000:01:00.0: BAR 1: reserving [mem 0xc0000000-0xcfffffff flags 0x14220c] (d=0, p=0)
[    3.199735] pci 0000:01:00.0: BAR 3: reserving [mem 0xd0000000-0xd1ffffff flags 0x14220c] (d=0, p=0)
root@mercury:~# cat gfx_patch/dsdt.asl.patch
--- tools/firmware/hvmloader/acpi/dsdt.asl      2011-08-13 18:43:39.000000000 +0200
+++ tools/firmware/hvmloader/acpi/dsdt.asl      2011-08-13 18:58:25.000000000 +0200
@@ -173,15 +173,43 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2,
                         0x00000000,
                         0x00020000)

+                    /* reserve MMIO BARs of gfx for 1:1 mapping */
                     DWordMemory(
                         ResourceProducer, PosDecode, MinFixed, MaxFixed,
                         Cacheable, ReadWrite,
                         0x00000000,
-                        0xF0000000,
-                        0xF4FFFFFF,
+                        0xFA000000,
+                        0xFAFFFFFF,
                         0x00000000,
-                        0x05000000,
-                        ,, _Y01)
+                        0x01000000)
+
+                    DWordMemory(
+                        ResourceProducer, PosDecode, MinFixed, MaxFixed,
+                        NonCacheable, ReadWrite,
+                        0x00000000,
+                        0xC0000000,
+                        0xCFFFFFFF,
+                        0x00000000,
+                        0x10000000)
+
+                    DWordMemory(
+                        ResourceProducer, PosDecode, MinFixed, MaxFixed,
+                        Cacheable, ReadWrite,
+                        0x00000000,
+                        0xD0000000,
+                        0xD1FFFFFF,
+                        0x00000000,
+                        0x02000000)
+
+                    DWordMemory(
+                        ResourceProducer, PosDecode, MinFixed, MaxFixed,
+                        Cacheable, ReadWrite,
+                        0x00000000,
+                        0xFB000000,
+                        0xFB07FFFF,
+                        0x00000000,
+                        0x00080000,
+                       ,, _Y01)
                 })

                 CreateDWordField(PRT0, \_SB.PCI0._CRS._Y01._MIN, MMIN)



De : komkon555 <komkon555@xxxxxxxxxx>
À : xen-devel@xxxxxxxxxxxxxxxxxxx
Envoyé le : Mardi 6 Septembre 2011 12h57
Objet : [Xen-devel] Re: Patches for VGA-Passthrough XEN 4.2 unstable

            Hallo. I tested the new patches. The patched version of
xen-unstable let start/shutdown Windows XP normally. But the current nvidia
driver is not yet functional:  question-sign in device-manager windows.
This problem is very sadly, because it makes no sense to use gfx-passthrough
for nvidia cards.
            Anyway thank you a lot for patches. I see some progress against
the old one.

P.S. Hardware as above.


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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel