Xen 4 - Patches for VGA PassThrough (NVIDIA)

Jean David TECHER



This document aims at providing all technical details for patches maintenance.

Table of Contents
1. Xen 4.3 (Unstable)
2. Xen 4.2.1 (Stable)
3. Hardware for tests
4. dom_0


Keep in mind that these patches are experimental. If you don't want to loose money then Xen should work with ATI cards without patching.

  • [-] If you aim at testing these patches for Windows 7 or Windows 8 it it not worth having a try

  • [+] It works for Windows XP 32-Bit and Windows XP 64-Bit (Youtube Video)

  • [+] I maintain this patch so I can use/test Linux domU (Ubuntu, Debian, Mint) to play games using Wine.

  • [-] Currently GTX 600 series are not supported .(should work for GTX 560, GT 440, GTX 460 SE ....)

  • [-] Only NVIDIA drivers 275.xx series are usuable

1. Xen 4.3 (Unstable)

2. Xen 4.2.1 (Stable)

Download http://www.davidgis.fr/download/xen-4.2.1_gfx-passthrough-patchs.tar.bz2

Here a quick summary (You should be well advised to care of it)

  1. Due to changeset 25525, don't forget to add this parameter to your configuration file or else while booting your domU you may have critical issues. This setting hasn't been taken into account in my patches.

    pci_msitranslate = 1
  2. Revert changeset 25240. Indeed I need to comment out those modifications in tools/libxl/libxl_pci.c files so I can build Xen and my domUs can boot properly with the expected devices.

  3. A few modifications done by the maintainer Julian Pidancet were introduced from changeset 24782 to changeset 24785. The new file introduced by Julian Pidancet is tools/firmware/hvmloader/rombios.c. It implied that this file had to be patched too

  4. For tests done from changeset 24563 to 24779, path for patch pass-through.c has changed from tools/ioemu-remote/hw/pass-through.c to tools/qemu-xen-traditional-dir-remote/hw/pass-through.c

  5. From changeset 24407 to 24547, patches didnt't work due to changeset 24492. Fixed in changeset 24520

3. Hardware for tests

4. dom_0