From mboxrd@z Thu Jan 1 00:00:00 1970 From: konrad@kernel.org Subject: [PATCH] Fix qemu-xen with PCI passthrough. Date: Tue, 8 Apr 2014 12:37:32 -0400 Message-ID: <1396975053-16435-1-git-send-email-konrad@kernel.org> 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 1WXZ0i-0007LJ-HT for xen-devel@lists.xenproject.org; Tue, 08 Apr 2014 16:36:32 +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: xen-devel@lists.xenproject.org, anthony.perard@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Hey Anthony and Stefano, This patch was posted in the past (see http://lists.xen.org/archives/html/xen-devel/2013-07/msg00008.html) and Stefano said: ""It looks OK to me, I'll have to trust you to have tested this patch properly too.". I don't recall if Zhenzhong did, but I just did with Xen-unstable and the latest of qemu-xen. Without this patch, this loop while (true) do rmmod igbvf killall dhclient modprobe igbvf dhclient eth1 done ends up shorlty exhausting the list of PIRQs and the driver cannot load anymore. With this patch the loop continues on. This has been tested with an 82576 VF. Please pull! hw/xen/xen_pt_config_init.c | 6 ++++-- hw/xen/xen_pt_msi.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) Zhenzhong Duan (1): qemu-xen: free all the pirqs for msi/msix when driver unload