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-users

Re: [Xen-users] Xen 4.1.0 - VGA Passthrough ATI Radeon 4550 - Partial Su

To: Sébastien Gauthier <sebastien@xxxxxxxxx>
Subject: Re: [Xen-users] Xen 4.1.0 - VGA Passthrough ATI Radeon 4550 - Partial Success
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Sun, 15 May 2011 18:44:16 +0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 15 May 2011 08:45:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTimV5N9NpxmZ8rj5a=nv7uyX6ohuUA@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <BANLkTimV5N9NpxmZ8rj5a=nv7uyX6ohuUA@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Mon, May 02, 2011 at 06:38:58PM -0400, Sébastien Gauthier wrote:
>    Hello,
> 
>    I was able to successfully passthrough my ATI Radeon 4550 VGA to a HVM
>    Windows 7 guest.
>    However, after installing ATI/AMD latest Catalyst drivers, I get a BSOD on
>    reboot.
> 
>    Here are the steps I've followed to get there :
> 
>    Motherboard : Intel DQ45CB (with VT-d support)
>    CPU : Intel Core 2 Duo E8400 3.00 Ghz (with VT-d support)
>    Dom0 OS : Debian 6 Squeeze 64-bit
> 
>    1- Install Debian stock Xen Kernel with Dom0 support (2.6.32-5) :
>    apt-get install linux-image-2.6-xen-amd64
> 
>    2- Install Xen required packages
>    apt-get install bcc bin86 gawk bridge-utils iproute libcurl3
>    libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo
>    texlive-latex-base texlive-latex-recommended texlive-fonts-extra
>    texlive-fonts-recommended pciutils-dev mercurial build-essential make gcc
>    libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev
>    patch libvncserver-dev libsdl-dev libjpeg62-dev iasl libbz2-dev
>    e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex ocaml-findlib
>    gcc-multilib xz-utils
> 
>    3- Download and extract Xen 4.1.0 (Current stable version)
>    cd /usr/src/; wget
>    [1]http://bits.xensource.com/oss-xen/release/4.1.0/xen-4.1.0.tar.gz
>    tar xvzf xen-4.1.0.tar.gz
> 
>    4- Apply Mr. Wei Huang's patch (with dynamic detection of BARs) to Xen
>    4.1.0 source code
>    cd /usr/src/xen-4.1.0/tools/ioemu-qemu-xen; touch patchATI.txt
>    (Copy paste in file patchATI.txt, code found here :
>    [2]http://xen.markmail.org/download.xqy?id=l7rw7d62lj27rzei&number=1 )
>    patch -p1 < patchATI.txt
> 
>    5- Compile and install Xen
>    cd /usr/src/xen-4.1.0
>    make xen
>    make tools
>    make stubdom
>    make install-xen
>    make install-tools PYTHON_PREFIX_ARG=
>    make install-stubdom
> 
>    6- Change default script for grub menu to 20_linux_xen :
>    cd /etc/grub.d/; mv 10_linux 50_linux
> 
>    7- Modify /etc/default/grub following entry to a functionnal kernel/xen
>    combo (In my case it was entry 2 (Skipped 0 and 1 which were automatically
>    created with file xen-syms-4.1.0 and didn't boot) :
>    GRUB_DEFAULT=2
> 
>    8- Use pciback to hide VGA (01:00.0 for my box, lspci -v) from host OS (In
>    my case, I had to hide and passthrough ATI audio device (01:00:1) as well)
>    - Note that Dom0 won't have access to VGA adapter anymore after reboot :
>    GRUB_CMDLINE_LINUX="xen-pciback.permissive
>    xen-pciback.hide=(01:00.0)(01:00.1)
>    pci=resource_alignment=01:00.0;01:00.1"
> 
>    9 - To apply changes made during steps 6, 7 and 8
>    update-grub
> 
>    10- Add this line to your /etc/fstab :
>    none            /proc/xen       xenfs   defaults        0       0
> 
>    11- Add this module to your /etc/modules file :
>    xen-evtchn
> 
>    12- Reboot, then start Xend (using SSH obviously)
>    reboot
>    /etc/init.d/xencommons start
>    /etc/init.d/xend start
> 
>    13 - Make sure you have following settings in your guest VM config (I've
>    only tried passthrough with a preinstalled Win7 guest for the moment, I
>    didn't try to go through the whole installation process yet) :
>    gfx_passthru=1
>    pci=[ '01:00.0', '01:00.1' ]
> 
>    14- Start VM with your fingers crossed
> 
>    At this point, I see Windows 7 boot screen, then login screen. After
>    installing latest ATI/AMD drivers and rebooting, I get a BSOD.
> 
>    Hopefully it can help some people getting the initial Xen VGA passthrough
>    setup done.
>    As far as I know, this patch only works with fairly recent ATI adapters.
> 
>    I'm not a Xen expert in any way, so let me know if you have any idea about
>    what's missing or what would be the next troubleshooting steps.
> 

You might need to apply some custom patches for your hardware.
Did you see the posts on xen-devel from amd/ati engineers?
They've worked on Xen VGA passthru recently..

-- Pasi


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

<Prev in Thread] Current Thread [Next in Thread>