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

RE: [Xen-devel] Fail to passthru PCI device to HVM

To: Jun Koi <junkoi2004@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Fail to passthru PCI device to HVM
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Fri, 4 Sep 2009 14:41:34 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc:
Delivery-date: Thu, 03 Sep 2009 23:41:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <fdaac4d50909032309l64d3a61ah69871af9126274aa@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <fdaac4d50909032309l64d3a61ah69871af9126274aa@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcotJnUeB5uLiMrvQve5V6R7RLwz7QAA5RWA
Thread-topic: [Xen-devel] Fail to passthru PCI device to HVM
Looks the hypercall XEN_DOMCTL_test_assign_device returns a mistake somehow?

Can you please have a look at xen/arch/x86/domctrl.c: arch_do_domctl() and find 
out in "case XEN_DOMCTL_test_assign_device" what the return value is?

When you see the "Error: failed to assign device...", in "xm dmesg", did you 
notice a message like
"XEN_DOMCTL_test_assign_device:  ... already assigned, or non-existent"?


Thanks,
-- Dexuan



-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Jun Koi
Sent: 2009?9?4? 14:09
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Fail to passthru PCI device to HVM

Hi,

I am trying to passthru a PCI device to HVM. I think that I already
successfully unbind the device in Dom0, by verifying like below:

#xm pci-list-assignable-devices
0000:01:00.0

Then I put a line like below into HVM config file:

pci = ['0000:01:00.0']

But creating the HVM failed, with below error:

"Error: failed to assign device 01:00.0: maybe it has already been
assigned to other domain, or maybe it doesn't exist."

The error message seems misleading, as there is no other VM is running
(only Dom0). So how can I fix this problem?

(I am using -unstable, CS 20145:8fc927798476)

Thanks,
J

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

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