From: Bruno Cesar Ribas Subject: kvm + pci-assign + cuda Date: Tue, 27 Jul 2010 01:48:37 -0300 Message-ID: <20100727044837.GA8886@c3sl.ufpr.br> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 To: kvm@vger.kernel.org Return-path: Received: from mx.c3sl.ufpr.br ([200.17.202.3]:41029 "EHLO urquell.c3sl.ufpr.br" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350Ab0G0Ey2 (ORCPT ); Tue, 27 Jul 2010 00:54:28 -0400 Received: from localhost (unknown [189.34.89.138]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ribas) by urquell.c3sl.ufpr.br (Postfix) with ESMTPSA id 50D2120007C41 for ; Tue, 27 Jul 2010 01:48:37 -0300 (BRT) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Hi, I just bought two machines AMD-Vi capable with a NVIDIA TESLA. Has anyone tried to assign any NVIDIA to a virtual host and use CUDA on it? I assigned the NVIDIA tesla and installed the nvidia driver, as follows: root@tesla2:~# kvm -name sat -cpu host -smp 16 -daemonize -vnc :$1 \ -localtime -m 60g \ -net nic,macaddr=00:16:3e:aa:aa:05,model=virtio,vlan=112\ -net tap,vlan=112,ifname=sat112\ -drive file=/raw/sat2.raw,if=virtio,boot=on\ -device pci-assign,host=03:00.0 on my virtual host I get: root@sat:~# lspci |grep -i nvidia 00:04.0 3D controller: nVidia Corporation GT200 [Tesla C1060] (rev a1) and loaded the nvidia driver root@sat:~# dmesg ... [ 4.004588] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 256.35 Wed Jun 16 18:42:44 PDT 2010 ... But when i run any app that uses CUDA a get the following on dmesg [ 136.157604] NVRM: RmInitAdapter failed! (0x23:0x2f:639) [ 136.157982] NVRM: rm_init_adapter(0) failed [ 136.161767] NVRM: RmInitAdapter failed! (0x23:0x2f:639) [ 136.162179] NVRM: rm_init_adapter(0) failed [ 136.165351] NVRM: RmInitAdapter failed! (0x23:0x2f:639) [ 136.165695] NVRM: rm_init_adapter(0) failed Did anyone got this working? Or someone can guarantee that it is impossible to do that? Thanks in advance, -- Bruno Ribas - ribas@c3sl.ufpr.br http://www.inf.ufpr.br/ribas C3SL: http://www.c3sl.ufpr.br