Xen Dual VGA Passthrough

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,560
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 31, 2011

From Ubisoft Quebec City Studio Cloud Computing Team (currently hiring):

This video presents one of our experiments featuring 2 fully 3D hardware accelerated VMs using Xen and GFX passthrough.

The host is a Lenovo ThinkStation S20 with 2 NVIDIA GeForce GTX 460 running a xenified (Dom0) version of Ubuntu 10.10 64-bit.
Each VM is running a vanilla Windows XP 32-bit with 4Go of RAM and 4 VCPUs.
The native baseline results are very similar.

The video shows the Unigine Heaven Benchmark 2.5 using the following settings:
• Renderer: DirectX 9
• Resolution: 1680 x 1050
• Shaders: High
• Textures: High
• Filter: Trilinear
• Anisotropy: 4x
• Occlusion: Enabled
• Refraction: Enabled
• Volumetric: Enabled

If you are interested to join our team, please contact: marie-eve.bolduc at ubisoft dot com

--------------------------------------------------------------------------------­-----------

For those interested in reproducing our experiment, here is how we did it:

1. Build a Dom0 kernel for your favorite distro and activate Xen options

We used:
• Ubuntu 10.10 64-bit (Maverick Meerkat)
• Jeremy Fitzhardinge's stable pv-ops kernel

2. Extract your video card BIOS

We used:
• NVFlash

3. Download, patch, build and install Xen

We used:
• Stable Xen 4.1.0
• Tobias Geiger's patches

4. Create a guest image

We used:
• Windows XP 32-bit

5. Passthrough GFX Adapter using pciback

YMMV

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ubicloud)

  • If you Ubisoft folks don't mind sharing, I'm currently doing this to replace aging desktops in my gaming room: Four Radeon 5850's plugged into an MSI 890FXA-GD70 board. The results are *amazing.*

    I'm using VMware for it though, and a major drawback is that I can't use VMware's USB passthrough implementation (which doesn't use IOMMU, it's a USB packet capture/routing thing) refuses to pass HID devices. How do you do it with Xen?

    Great video, guys :)

  • @54v We updated the description of the video so that it now contains information on how we actually did it.

  • Could you guys release a patch to get this working, ive been trying to do this with my dual 470gtx without success :(

  • @nbhusain We updated the description of the video so that it now contains information on how we actually did it.

  • A guide for making this work would be a much appreciated contribution. Let me know if there is anything I can do to help with such a guide.

  • @PvtPapaSmurf We updated the description of the video so that it now contains information on how we actually did it.

Top Comments

  • If I'm getting this right this could mean "bye bye dual boot" for some gaming folks out there.

  • Real GPU performance in a VM. This is really cool stuff.

Video Responses

This video is a response to Proof of Concept XenDesktop vs VMware View
see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • There should be another GPU for the host Ubuntu...

  • So, I just upgraded my rig to support vt-d and I really look forward some dual gaming with my gf on one machine.

    But: c'mon, Ubisoft pays you guys to make Windows Games run in Windows VMs on Linux hosts? Why not just build games that run on Linux and save the licence fees for the VMs, plus maybe not needing *any* VMs? :P That way I would even buy some Ubisoft games during the next Steam sale again ;)

    But still, I like what you made out of Xen there :) Keep up the good work

  • @craftyguy1 I had the exact same problem. There are what appear to be updated patches (just checked, not sure where I found them), but I'm currently trying to work this against 4.2-unstable as the notes show significant progress in this area, and maybe the patches won't be necessary. We'll see, and I'll post back when I know more :P

  • @ubicloud What modifications did yall make to Tobias Gieger's patches? If applied against stable Xen 4.1.0, the make will fail on pass-through.c

  • @ubicloud Very nice! I looked more into it and saw how Xen has the unique "VGA Passthrough" tech that actually exposes the VGA device, option rom and all into the VM; far more sophisticated than just tossing another PCIe device into the machine through IOMMU.

    I was really hoping that I could hack my way into pushing HID devices to the guest machines through ESXi, but VMKernel "won't allow it." Something about the kernel eating the USB HID device before the arbitrator can even see it :(

  • @SmartestButtOfAll We updated the description of the video so that it now contains information on how we actually did it.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more