From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: [PATCH] Fix qemu traditional with PCI passthrough. Date: Tue, 8 Apr 2014 12:44:42 -0400 Message-ID: <1396975483-31442-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXZ8p-0007zv-SH for xen-devel@lists.xenproject.org; Tue, 08 Apr 2014 16:44:56 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: stefano.stabellini@eu.citrix.com, xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com Cc: zhenzhong.duan@oracle.com List-Id: xen-devel@lists.xenproject.org Hey Ian and Stefano, This patch was posted way back last year in July (see http://lists.xen.org/archives/html/xen-devel/2013-07/msg00004.html) and was mentioned to: ">From what I understand following the conversation, I think this is > probably the right way to solve the problem, but given that it's only > really a problem when you load and unload drivers, which is the > uncommon case, I think at this point we should probably hold off on > this one until 4.3.1. > > Stefano, thoughts? I think that's OK. I'll wait to apply the qemu-xen patch until after the release." I think this patch just got lost in the Xen 4.4 release. Dusting it off and reposting. The issue at hand is simple - you boot an PVHVM guest with a PCI passthrough device and in a loop do: #!/bin/bash while (true) do rmmod igbvf killall dhclient modprobe igbvf dhclient eth1 done and you find yourself in distressed to see that after a while it cannot allocate any IRQs. I've tested it and it fixes the issue. Now there was also an qemu-xen version of this patch posted: http://lists.xen.org/archives/html/xen-devel/2013-07/msg00008.html and I just reposted it, see: http://mid.gmane.org/1396975053-16435-1-git-send-email-konrad@kernel.org (or "[PATCH] Fix qemu-xen with PCI passthrough.") hw/pass-through.c | 8 +++++++- hw/pt-msi.c | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) Zhenzhong Duan (1): qemu-xen-trad: free all the pirqs for msi/msix when driver unloads Thanks!