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] Usage of pci-attach

To: "Yosuke Iwamatsu" <y-iwamatsu@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Usage of pci-attach
From: Asim <linkasim@xxxxxxxxx>
Date: Mon, 15 Sep 2008 13:41:42 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 Sep 2008 11:42:19 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=r+tWbZuaNOrfAspFEmAvCWIAiw/EnMTRJIQoJnNX/tU=; b=YGyfGpCLT/4QurwW9hrPkkM1RA5M+PYZiKPoogONAOHT1mx0S1RuzMdouBXl+MQg1T zalYiIO1GsYMTfYalmiSx/8DFN28KS0pEQISSq6z5g8nyLJHzh2TrZV0w3aZveE1A6LN Sqk4zE8PiAmSwcwCdij9PmVLyKJx0sMW/Wj9g=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iDwt3v/YuiKTxuQFYWhTUSbxkhB2LC/xKP7bvN8gCPE45u7w3p3IBFTxutJC5cQ1Sz kmgtDEkRYnbzsWrE1nuQOBphCGjV9Nb+Sc+8SO31+hrQ269WIBly8hoCLyQHwaAFaqFt Pl0rQyGYoUCrF6W2xy2DZ8dis+G7pb4JibtWw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48BF70BD.9090601@xxxxxxxxxxxxx>
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: <7ef321c10809012013m6d005d97mc39c7ba2fc99f6c5@xxxxxxxxxxxxxx> <48BF3689.8030409@xxxxxxxxxxxxx> <7ef321c10809031911y275c405eg263b315a660c293f@xxxxxxxxxxxxxx> <48BF70BD.9090601@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Ok, I could never get this to work without creating the event channel
myself. The reason could be that my do the attach when the domain is
suspended and then the event channel is not setup correctly. So, I
have to issue the event channel create just after the domain resume.
Thanks Yosuke for your help.

Regards,
asim

On 9/4/08, Yosuke Iwamatsu <y-iwamatsu@xxxxxxxxxxxxx> wrote:
> Asim wrote:
>> I could nail down my problem to the xen-store entry for the event
>> channel not being created.  Once I issue: -
>>
>> xenstore-write /local/domain/17/device/pci/0/event-channel 6
>>
>> The PCI device shows up in my domU. Also, after this the network takes
>> quite a while to become active (sometimes its really soon). So,
>>
>> 1. How do I fix the above problem that I dont have to issue a manual
>> store?
>
> I have never experienced this kind of problem. pcifront is responsible
> for writing event-channel node in xenstore, so something might be wrong
> with your domU kernel config or build?
>
>> 2. Is there a poll that goes on here to check for backend changes -
>> can I force it in code so that my network becomes accessible real
>> soon?
>
> I'm not sure what 'network' means, but presume that you want to attach a
> physical NIC to a domain and activate it right away. Perphaps you can do
> that by setting up udev/hotplug scripts inside the domU, but I don't
> know the details.
>
> Thanks,
> -- Yosuke
>
>>
>> Regards,
>> Asim
>>
>> On 9/3/08, Yosuke Iwamatsu <y-iwamatsu@xxxxxxxxxxxxx> wrote:
>>> Hi,
>>>
>>> Asim wrote:
>>>> Hi,
>>>>
>>>> Can anyone tell me if I'm using the pci-attach and detach correctly? I
>>>> am running Xen which has been built with CONFIG_XEN_BACKEND_PASS
>>>> enabled. When I issue the below command to test the hot plug feature
>>>> :-
>>>>
>>>> Device is attached :-
>>>>
>>>> [root@adsl-01 ~]# xm pci-attach 20 01:0a.0
>>>> Error: Device 0000:01:0a.00 is already connected.
>>>> Usage: xm pci-attach <Domain> <PciDev>
>>>>
>>>> Create a new pass-through pci device.
>>> This shows the pci device 01:0a.0 was already attached to your domain.
>>>
>>>> Device is detached:-
>>>> [root@adsl-01 ~]# xm pci-detach 20 01:0a.0
>>>>
>>>> uh?what happenned?
>>> If you got no error message here, you had successfully removed the pci
>>> device from your domain. To check if the device is really hot-removed,
>>> execute 'lspci' command inside domain 20 before and after pci-detach
>>> and compare the results.
>>>
>>>> [root@adsl-01 ~]# xm pci-attach 20 01:0a.0
>>>> Error: Device 0 not connected
>>>> Usage: xm pci-attach <Domain> <PciDev>
>>>>
>>>> Create a new pass-through pci device.
>>> pci-attach was failed for some reason here. The information of xend.log,
>>> dmesg in domu, dmesg in dom0 and the result of 'xenstore-ls -f' would
>>> help us investigating the problem further.
>>>
>>> Regards,
>>> -- Yosuke
>>>
>>>> Am I using this correctly? If any one has used it successfully - kindly
>>>> help me.
>>>>
>>>> Regards,
>>>> Asim
>>>>
>>>> _______________________________________________
>>>> Xen-users mailing list
>>>> Xen-users@xxxxxxxxxxxxxxxxxxx
>>>> http://lists.xensource.com/xen-users
>>>
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>
>

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

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