Akos Szalkai
2011-Mar-08 17:08 UTC
[Xen-users] HVM domain with PCI passthrough cannot reboot
We have a Win 2008 R2 domain with a single PCI slot (00:13.0, an USB controller) passed through to it. We are using the pvops kernel (the stable-2.6.32.x git branch) with Xen 4.0.1 (or 4.0.2-rc2, doesn''t seem to matter). Everything is working great, except for one thing: when we try to reboot the Windows VM, it shuts down correctly, but most of the time it fails to restart with the following error message in xend.log: VmError: failed to assign device 00:13.0: maybe it has already been assigned to other domain, or maybe it doesn''t exist. If we log in to the host after the failed reboot and manually xm start the domain, it does start without problems. From our non-xen-expert viewpoint it looks like the domain tries to restart before it had time to detach the PCI slot from the shut down domain... Does anyone have any pointers how to fix this? Thanks, Akos -- Akos Szalkai <szalkai@2f.hu> Principal IT Consultant, CISA 2F 2000 Szamitastechnikai es Szolgaltato Kft. Tel: (+36-1)-4887700 Fax: (+36-1)-4887709 WWW: http://www.2f.hu/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2011-Mar-08 18:01 UTC
Re: [Xen-users] HVM domain with PCI passthrough cannot reboot
2011/3/8 Akos Szalkai <szalkai@2f.hu>> We have a Win 2008 R2 domain with a single PCI slot (00:13.0, an USB > controller) passed through to it. We are using the pvops kernel (the > stable-2.6.32.x git branch) with Xen 4.0.1 (or 4.0.2-rc2, doesn''t seem > to matter). Everything is working great, except for one thing: when we > try to reboot the Windows VM, it shuts down correctly, but most of the > time it fails to restart with the following error message in xend.log: > VmError: failed to assign device 00:13.0: maybe it has already been > assigned to other domain, or maybe it doesn''t exist. > > If we log in to the host after the failed reboot and manually xm start > the domain, it does start without problems. From our non-xen-expert > viewpoint it looks like the domain tries to restart before it had time > to detach the PCI slot from the shut down domain... > > Does anyone have any pointers how to fix this? >Based upon my understanding you might need to tweak with following in xend-config-sxp (device-create-timeout 100) (device-destroy-timeout 100) or following option # Whether to enable core-dumps when domains crash. #(enable-dump no) But I am not an expert so I might be wrong.Some one else should confirm it. -- http://mightydreams.blogspot.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users