From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Tovpeko Subject: xl: pci completion error Date: Tue, 05 Oct 2010 15:40:10 +0400 Message-ID: <4CAB0E9A.5050507@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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.