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/
Home Products Support Community News


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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Patches for VGA-Passthrough XEN 4.2 unstable
From: JavMV <javier.manzano@xxxxxxxxxx>
Date: Wed, 18 May 2011 04:47:16 -0700 (PDT)
Delivery-date: Mon, 23 May 2011 02:54:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

Hello, I have been working on VGA-passthrough in the last month.

When Xen was at his version 3.5 there was a few patches to make this work for some graphic cards using the patches developed by Han Weidong and posted here (http://lists.xensource.com/archives/html/xen-devel/2009-08/msg01176.html) and the same patches posted file by file are here (http://lists.xensource.com/archives/html/xen-devel/2010-05/msg00441.html)  but now this patches doesn't work on Xen-4.2 unstable because the source code has changed. Well, as I am really interested on VGA-Passthru I have adapted those patches to the new version of xen. I have attached them for you to try it and want to know if they are still working.

This patch set should work for the same graphic cards that it worked on the past (NVIDIA GT200, Geforce 8400 GS ...).

The steps are the same:
Before all that, you need to read out the VGA Bios of the to-be-passthroughed-
Graphiccard with a tool; i used nvflash.exe under DOS for this task.
The patches assume you saved this file as "vgabios-pt.bin"
1. check out xen unstable:
hg clone http://xenbits.xensource.com/xen-unstable.hg (Or download the tarball xen-unstable.gz which I did)
2. go into there and do an "initial build" so that qemu-dm gets checked-out:
cd xen-unstable.hg; cd tools; make ; make clean
3. apply the patches from within the "xen-unstable.hg" dir, with patch -p0
4. move the vgabios-pt.bin to "tools/firmware/vgabios/"
4. do a "make install"

This is only for primary graphic card passthru, I didn't adapt the patch "qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch" but if anyone need it I can do it too.

Unfortunately these patches don't work for my NVIDIA GTX460 graphic card. If anybody knows how can I make VGA-Passtrhough for this one it would be great! (Or if it is not possible tell me too plz)

I hope you find this helpful.

config.patch (522 bytes) Download Attachment
dsdt.patch (2K) Download Attachment
hvmloader.patch (1K) Download Attachment
Makefile.patch (1K) Download Attachment
passthrough.patch (1K) Download Attachment
rombios.patch (3K) Download Attachment

View this message in context: Patches for VGA-Passthrough XEN 4.2 unstable
Sent from the Xen - Dev mailing list archive at Nabble.com.
Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>