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: Bug in pci-detach (Was: Re: [Xen-devel] Re: VT-d HowTo Update)

To: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: Bug in pci-detach (Was: Re: [Xen-devel] Re: VT-d HowTo Update)
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Wed, 22 Apr 2009 14:12:20 +1000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>, "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>, "Han, Weidong" <weidong.han@xxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Christian Tramnitz <chris.ace@xxxxxxx>
Delivery-date: Tue, 21 Apr 2009 21:12:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49EE7E8D.6080102@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: <20090422014446.GA30419@xxxxxxxxxxxx> <49EE7E8D.6080102@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Apr 22, 2009 at 11:18:53AM +0900, Akio Takebe wrote:
> Hi, Simon
>
> Simon Horman wrote:
>> On Wed, Apr 22, 2009 at 09:11:58AM +1000, Simon Horman wrote:
>>> On Tue, Apr 21, 2009 at 05:16:14PM +0800, Cui, Dexuan wrote:
>>>> Simon Horman wrote:
>>>>> Hi,
>>>>>
>>>>> in preparation for 3.4.0 I have made a number of updates to the VT-d
>>>>> Howto. I have tried to retain the original information while
>>>>> reorganising things a bit. I have also added information on recent
>>>>> work I have done in this area. 
>>>>>
>>>>> Apologies in advance for any errors, accidental deletions, etc...
>>>>>
>>>>> http://wiki.xensource.com/xenwiki/VTdHowTo
>>>> Hi Simon,
>>>> There is a bug: we can't pci-detach a statically-assigned (I mean: use the 
>>>> pci string in hvm config file) devices for hvm guest.
>>>> Accordong my limited experience, after a device is assigned to hvm guest, 
>>>> ioemu does write the correct vslots value into xenstore, but looks xend 
>>>> can't get the correct value somwhow.
>>>> Could you help to have a look? Thanks!
>>> Sure, I can look into that. Do you have a version that you are worried
>>> about? It did seem to work the last time that I checked.
>>
>> Hi Dexuan,
>>
>> I am seeing this bug too. I'll try and get a fix ASAP.
>>
>
> Does AUTO_PHP_SLOT also support hotplug?
>
> @tools/python/xen/xend/XendDomainInfo.py
>
>     def hvm_destroyPCIDevice(self, vslot):
>         log.debug("hvm_destroyPCIDevice called %s", vslot)
>
>         if not self.info.is_hvm():
>             raise VmError("hvm_destroyPCIDevice called on non-HVM guest")
> ... snip ...
>         if vslot == AUTO_PHP_SLOT:
>             raise VmError("Device @ vslot 0x%x doesn't support hotplug." % 
> (vslot))
>

Hi Takebe-san,

I agree with your analysis, the problem seems to be that
AUTO_PHP_SLOT doesn't support hot-plug.

-- 
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en


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