[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Re : Re : Re : Xen VGA Passthrough Questions


  • To: "Teo En Ming \(Zhang Enming\)" <singapore.mr.teo.en.ming@xxxxxxxxx>, Casey DeLorme <cdelorme@xxxxxxxxx>
  • From: David TECHER <davidtecher@xxxxxxxx>
  • Date: Wed, 21 Mar 2012 09:25:52 +0000 (GMT)
  • Cc: "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>
  • Delivery-date: Wed, 21 Mar 2012 09:27:07 +0000
  • 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:Cc:In-Reply-To:MIME-Version:Content-Type; b=D+/WhuE0xX4/0Hfn7FjHSZlzcoybcLA+bYXHYz4ggGBjhUX2NkPg6NFBTlftAk+AySa+fTWD6CRk3OAioBOtpbOZEUW1HscR23+w7TP01ZUzo2duDzZhnNCb1lUey+zw4qOzVv3NP3PfahDp5K/M4Pb2i6Xnoz86SYuJm56j+sA=;
  • List-id: Xen user discussion <xen-users.lists.xen.org>

You need to add nouveau.blacklist=1 in the grub.cfg of your domU

Have access to partition table of your domU using kpartx

kpart -va /dev/path/to/your/LVM/domU

mount /dev/mapper/.../....       /path/where/to/mount

vim //path/where/to/mount/boot/grub/grub.cfg

add nouveau.blacklist=1 to the module line.

Umount /path/where/to/mount

kpart -vd /dev/path/to/your/LVM/domU

boot your domU

Install NVIDIA driver.





De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : Casey DeLorme <cdelorme@xxxxxxxxx>
Cc : David TECHER <davidtecher@xxxxxxxx>; "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mercredi 21 mars 2012 5h06
Objet : Re: [Xen-users] Re : Re : Xen VGA Passthrough Questions

Hi,

How do I stop lightdm display manager and X.org server in Ubuntu 11.10 and unload the nouveau vga driver?

I can run "sudo killall lightdm" and lightdm and X.org X server will be terminated successfully, but I cannot force nouveau to unload at all. It always say nouveau module is in use even if I use "sudo modprobe --force --remove nouveau".

I need to unload the following kernel modules for successful Xen VGA passthrough.
rmmod nouveau
rmmod ttm
rmmod drm_kms_helper
rmmod drm

Please read Deactivating KMS and unloading Nouveau at http://nouveau.freedesktop.org/wiki/KernelModeSetting
But setting "echo 0 > /sys/class/vtconsole/vtcon1/bind" causes the display to hang and I can't do anything more at all.
I can't force nouveau,ttm,drm_kms_helper,drm kernel modules to unload. Help!!!

Also, if I add xen-pciback.hide=(01:00.0) to the module line in GRUB2, the display turns blank while booting and I can't do anything at all. Any ideas?

Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)

On 21/03/2012 00:36, Casey DeLorme wrote:
Hello,

Supposedly both the board & CPU must have VT-d, the E6300 does not:

If pciback was compiled into your kernel (not a module) then you can add "xen-pciback.hide=(01:00.0)" to the module line in your grub.cfg, substituting your lspci device names.

nVidia supposedly requires patches and only works in Windows XP, there are a few Windows 7 success stories, but they seem rare.  Most people have success without patches using AMD cards.

Best of luck.

~Casey DeLorme


On Tue, Mar 20, 2012 at 11:39 AM, Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx> wrote:
Dear David Techer and others,

I thought Intel H61 chipset and MSI motherboards officially don't support VT-x and VT-d? There is no VT-d enabling option in MSI motherboard BIOS.

I want to test Xen VGA passthrough for Windows 8 Consumer Preview 64-bit English HVM domU with my Intel DQ45CB motherboard and Intel Pentium Dual Core E6300 2800 MHz.

By the way, I am using Linux kernel 3.3.0 Final. Should I use PCIBACK or PCI-STUB? If I use pciback, what arguments should I parse to the kernel command line in GRUB2? Please point me to the documentation for kernel command line arguments in the linux kernel source tree.

My graphics card: Palit NVIDIA Geforce 8400 GS PCI Express x16 SGD$44


Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)


On 20/03/2012 23:17, David TECHER wrote:
You're welcome.

Keep in mind that if you are going to upgrade BIOS for your motherboard, those values for your card may changed.

I was in this situation last time  BIOS was upgraded.

It does mean that those values will changed each time you upgrade your motherboad BIOS but having thos values changed after a BIOS upgrade could occur for a specific upgrade.

Don't ask me why...I do not know.

So you will be well advised to heck those values for each BIOS upgrade.

Moreover don't waste your time to test VGA PassThrough for NVIDIA for Windows  7. For Windows 7 use ATI.

I did my tests for playing with wine 1.4/1.5 on domU Ubuntu Lucid 10.04.4 PV HVM (game like Crysis 2) and it rocks :)

My configuration:

Manufacturer: MSI / Product Name: H61MU-E35 (MS-7680)
Bios version: V10.11




De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : David TECHER <davidtecher@xxxxxxxx>
Cc : "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mardi 20 mars 2012 16h02
Objet : Re: Re : Xen VGA Passthrough Questions

Dear David Techer,

Thank you.

I think the following command is sufficient.

dmesg | grep 01:00.0 | grep "pci.*mem"

Yours sincerely,

Teo En Ming (Zhang Enming)

On 20/03/2012 17:54, David TECHER wrote:
Hi Teo,

The 3 first lines with pattern 'pci.*mem' need to be returned

U need to use somethign like

root@gemini:~# lspci |grep VGA
02:00.0 VGA compatible controller: nVidia Corporation Device 0ca2 (rev a2)
root@gemini:~# dmesg|grep 02:00.0 |grep ' pci [0-9].*mem'|head -n3
[    0.174458] pci 0000:02:00.0: reg 10: [mem 0xfb000000-0xfbffffff]
[    0.174466] pci 0000:02:00.0: reg 14: [mem 0xd0000000-0xdfffffff 64bit pref]
[    0.174475] pci 0000:02:00.0: reg 1c: [mem 0xee000000-0xefffffff 64bit pref]

Kind regards



De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; David TECHER <davidtecher@xxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mardi 20 mars 2012 8h39
Objet : Xen VGA Passthrough Questions

Dear David Techer,

I have read through your article on Xen VGA passthrough on http://www.davidgis.fr.

It appears that the following command on your blog doesn't work.

dmesg | grep 01:00.0 | grep BAR

The above command shows nothing at all. Is there an alternative solution?

Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)







_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.