From: Keir Fraser Subject: Re: Xen, IRQ-sharing and PCI passthrough Date: Wed, 08 Jul 2009 08:31:29 +0100 Message-ID: References: <20090708083513.774b8281@auedv3.syscomp.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090708083513.774b8281@auedv3.syscomp.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Florian Wagner , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 08/07/2009 07:35, "Florian Wagner" wrote: > Do I understand this correctly: For safe operation of a virtual machine > using PCI passthrough and shared interrupts a well behaved operating > system in the vm is necessary. That is an OS that shuts down the mapped > devices correctly before turning off (unload kernel module). > > So what am I to to in the case that someone issues a "xm destroy" on > such a vm? There is no way to cleanly shutdown in such a situation, is > there? > > That's quite a risk for system stability of the host. One thoughtless > "xm destroy" and the whole host is crashed, requiring at a minimum a > cold reset or even a reinstall. We're probably missing a device reset somewhere during domain destruction. Or it may be happening too late. Still there is a limit to VM isolation when IRQs are shared. The best bet is to use MSI, if one of your devices supports it. That would require Xen 3.4. -- Keir