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

[Xen-devel] xl: pci completion error

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xl: pci completion error
From: Sergey Tovpeko <tsv.devel@xxxxxxxxx>
Date: Tue, 05 Oct 2010 15:40:10 +0400
Delivery-date: Tue, 05 Oct 2010 04:45:26 -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 :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=guibRYs1/G0ZiqOffRJ02ubpeM06WgXV4Z3ppcgLrLM=; b=Ez6AihiYhhp/7ng99aZAr2UNPAdjUgSiJ2Rpjd0ctSwD2ppbWOxkeW84hs2IBpcQEu XMasquEu19aMyrVPLcDU+QcmXy20ehOzhW7+HUIooHvIYIa/+aAzghgOelQokvea0UAf TqTpAA4671N3qnVBjpHJOCgptWIqVZvKynLlQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=OuCzM0dOSp391/OFzbvfKM0M2GExLHb75IUeWUh3Pvjg42UGQ4CEqqAX3tWxGL8zOF cvD8UdEjLDML/djG/pjriapoXDDfIRvDbSycvUJ18pxvArIlhWBCocIE2WgQXP/PCZXR 5Bw+cN4kIBlh2lD99szlSS6EUH0dZ7NhFtLZQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
Hello, list!

xl reports the error on passthrough-ed pci device removing.

do_pci_remove device 01:00.0
libxl: error: libxl_device.c:448:libxl__wait_for_device_model Device Model not ready libxl: error: libxl_pci.c:858:do_pci_remove Device Model didn't respond in time libxl: error: libxl.c:944:libxl_domain_destroy pci shutdown failed for domid 1 libxl: error: libxl.c:896:libxl_destroy_device_model Couldn't find device model's pid: No such file or directory libxl: error: libxl.c:956:libxl_domain_destroy libxl_destroy_device_model failed for 1 libxl: error: libxl_device.c:307:libxl__devices_destroy /local/domain/1/device is empty



It seems that libxl_pci didn't get the 'pci-removed' status from qemu-dm. Please, have a look who should set this status in qemu-dm. As for me I added xenstore_record_dm_state("pci-removed");
after do_pci_del(par);
in xenstore_process_dm_command_event function.

It fixed up my issue of removing pci devices.

Sergey.






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